Updated on 2024-07-30 GMT+08:00

Disabling Prompt Tones

DisableVoicePrompts

API Description

This API is used to disable prompt tones.

Precautions

  1. This API is optional. If it is not called, prompt tones are played by default.
  2. This API is a synchronous API. The returned value is an error code.

Method Definition

1
SDKERR disableVoicePrompts(VoicePrompts voicePrompts);

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

voicePrompts

Yes

VoicePrompts

Prompt tone information.

Table 2 VoicePrompts parameter

Parameter

Mandatory

Type

Description

disableMutePrompt

Yes

boolean

Whether to disable the mute prompt. The value true indicates that the mute prompt is disabled, and the value false indicates that the mute prompt is enabled.

Return Values

Sample Code

1
2
3
4
VoicePrompts voicePrompts = new VoicePrompts();
voicePrompts.setDisableMutePrompt(true);
SDKERR result = HWMBizSdk.getBizOpenApi().disableVoicePrompts(voicePrompts);
Log.i(TAG, "result code:" + result.getValue() + " desc:" + result.getDescription());