Disabling Prompt Tones
DisableVoicePrompts
API Description
This API is used to disable prompt tones.
Precautions
- This API is optional. If it is not called, prompt tones are played by default.
- This API is a synchronous API. The returned value is an error code.
Method Definition
1
|
SDKERR disableVoicePrompts(VoicePrompts voicePrompts); |
Parameter Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
voicePrompts |
Yes |
VoicePrompts |
Prompt tone information. |
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()); |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot