Skip to navigation

VoiceAgentAPIEvents

Add the following line to your scenario code to use the events: require(Modules.QwenCloud);

View as Markdown

Values

Unknown
'QwenCloud.VoiceAgentAPI.Unknown'

The unknown event.

Error
'QwenCloud.VoiceAgentAPI.Error'
SessionCreated
'QwenCloud.VoiceAgentAPI.SessionCreated'
SessionUpdated
'QwenCloud.VoiceAgentAPI.SessionUpdated'
InputAudioBufferSpeechStarted
'QwenCloud.VoiceAgentAPI.InputAudioBufferSpeechStarted'
InputAudioBufferSpeechStopped
'QwenCloud.VoiceAgentAPI.InputAudioBufferSpeechStopped'

VAD detected the end of speech. In smart_turn mode, reason turn_invalid means the turn was rejected. https://docs.qwencloud.com/api-reference/qwen-audio-realtime/server-events#input-audio-buffer-speech-stopped

InputAudioBufferCommitted
'QwenCloud.VoiceAgentAPI.InputAudioBufferCommitted'
InputAudioBufferCleared
'QwenCloud.VoiceAgentAPI.InputAudioBufferCleared'
ConversationItemCreated
'QwenCloud.VoiceAgentAPI.ConversationItemCreated'
ConversationItemDeleted
'QwenCloud.VoiceAgentAPI.ConversationItemDeleted'
ConversationItemRetrieved
'QwenCloud.VoiceAgentAPI.ConversationItemRetrieved'
ConversationItemInputAudioTranscriptionDelta
'QwenCloud.VoiceAgentAPI.ConversationItemInputAudioTranscriptionDelta'
ConversationItemInputAudioTranscriptionCompleted
'QwenCloud.VoiceAgentAPI.ConversationItemInputAudioTranscriptionCompleted'
ConversationItemInputAudioTranscriptionFailed
'QwenCloud.VoiceAgentAPI.ConversationItemInputAudioTranscriptionFailed'
ConversationItemAmbientAudioTranscriptionDelta
'QwenCloud.VoiceAgentAPI.ConversationItemAmbientAudioTranscriptionDelta'
ConversationItemAmbientAudioTranscriptionCompleted
'QwenCloud.VoiceAgentAPI.ConversationItemAmbientAudioTranscriptionCompleted'
ResponseCreated
'QwenCloud.VoiceAgentAPI.ResponseCreated'
ResponseDone
'QwenCloud.VoiceAgentAPI.ResponseDone'

A model response finished. status can be completed, cancelled, or failed. https://docs.qwencloud.com/api-reference/qwen-audio-realtime/server-events#response-done

ResponseOutputItemAdded
'QwenCloud.VoiceAgentAPI.ResponseOutputItemAdded'
ResponseOutputItemDone
'QwenCloud.VoiceAgentAPI.ResponseOutputItemDone'
ResponseContentPartAdded
'QwenCloud.VoiceAgentAPI.ResponseContentPartAdded'
ResponseContentPartDone
'QwenCloud.VoiceAgentAPI.ResponseContentPartDone'
ResponseTextDelta
'QwenCloud.VoiceAgentAPI.ResponseTextDelta'
ResponseTextDone
'QwenCloud.VoiceAgentAPI.ResponseTextDone'
ResponseAudioTranscriptDelta
'QwenCloud.VoiceAgentAPI.ResponseAudioTranscriptDelta'
ResponseAudioTranscriptDone
'QwenCloud.VoiceAgentAPI.ResponseAudioTranscriptDone'
ResponseAudioDone
'QwenCloud.VoiceAgentAPI.ResponseAudioDone'

Assistant audio output finished. Audio bytes arrive as media, not this event. https://docs.qwencloud.com/api-reference/qwen-audio-realtime/server-events#response-audio-done

ResponseFunctionCallArgumentsDelta
'QwenCloud.VoiceAgentAPI.ResponseFunctionCallArgumentsDelta'
ResponseFunctionCallArgumentsDone
'QwenCloud.VoiceAgentAPI.ResponseFunctionCallArgumentsDone'
VoiceprintAudioListInProgress
'QwenCloud.VoiceAgentAPI.VoiceprintAudioListInProgress'
VoiceprintAudioListCompleted
'QwenCloud.VoiceAgentAPI.VoiceprintAudioListCompleted'
VoiceprintAudioListFailed
'QwenCloud.VoiceAgentAPI.VoiceprintAudioListFailed'
WebSocketError
'QwenCloud.VoiceAgentAPI.WebSocketError'

The WebSocket error response event.

ConnectorInformation
'QwenCloud.VoiceAgentAPI.ConnectorInformation'

Contains information about the connector.