Events
Add the following line to your scenario code to use the events:
require(Modules.QwenCloud);
Constants
Triggered after the end of the audio stream sent through a Qwen Cloud WebSocket (1 second of silence).
Parameters
client:
The QwenCloud.VoiceAgentAPIClient instance.
mediaInfo:
OptionalInformation about the audio stream that can be obtained after the stream stops or pauses (1 second of silence).
tag:
string
OptionalSpecial tag to name audio streams sent over one WebSocket connection. With it, one can send 2 audios to 2 different media units at the same time.
Triggered when the audio stream sent through a Qwen Cloud WebSocket starts playing.
Parameters
client:
The QwenCloud.VoiceAgentAPIClient instance.
customParameters:
{[key: string]: string}
OptionalCustom parameters.
encoding:
string
OptionalAudio encoding formats.
tag:
string
OptionalSpecial tag to name audio streams sent over one WebSocket connection. With it, one can send 2 audios to 2 different media units at the same time.