onShow
Digital human is ready to displayonError
Exception occurred when connecting to digital humanParameter Name | Type | Description |
---|---|---|
msgType | int | Error type |
msgSubType | int | Sub-error type |
msg | String | Exception message |
Value | Description | |
---|---|---|
1000 | Authorization exception | |
1001 | Session creation exception | |
1002 | Resource retrieval exception | |
1010 | IM connection creation failed | |
1011 | Rendering service returned exception | |
1020 | RTC status exception | |
1030 | Rendering service actively closed | |
1040 | IM connection lost | |
1050 | RTC connection lost |
onVideoTrack
RTC media channel created successfullyParameter Name | Type | Description |
---|---|---|
track | VideoTrack | Video media channel |
onAudioSamples
Local audio sampling data callbackonTtsSpeakStart
Digital human starts playing TTS synthesized audioonTtsSpeakText
Text content of TTS played by digital humanonTtsSpeakStop
TTS text playback completedonSpeakStart
Digital human starts speakingonSpeakText
Text content spoken by digital humanonSpeakStop
Digital human finished speakingonAsrResult
ASR recognition content callbackParameter Name | Type | Description |
---|---|---|
wavUrl | String | Network address of WAV audio |
interrupt | boolean | Whether to interrupt the current speaking state |
Parameter Name | Type | Description |
---|---|---|
text | String | Text content for the digital human to say |
interrupt | boolean | Whether to interrupt the current speaking state |
Parameter Name | Type | Description |
---|---|---|
text | String | Express your question to the digital human |
interrupt | boolean | Whether to interrupt the current speaking state |