Updated on 2023-03-23 GMT+08:00

Disabling Prompt Tones

Function

This API is used to disable prompt tones.

Function Prototype

disableVoicePrompts(voicePromptsInfo: VoicePromptsInfo, onDisableVoicePromptsResult?: (ret: SDKERR, reason: string) => void): voiddisableVoicePrompts(voicePromptsInfo: VoicePromptsInfo, onDisableVoicePromptsResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
voicePromptsInfo Y VoicePromptsInfo Prompt tone information.
onDisableVoicePromptsResult Y (ret: SDKERR, reason: string) => void Callback of disabling prompt tones.
Table 2 VoicePromptsInfo
Parameter Mandatory Type Description
isDisableMutePrompt Y boolean Whether to disable the mute prompt tone.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string) => void

Table 3 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.