API reference
API reference
Select your platform
No SDKs available
No versions available

VoiceSDKListenerBinding Class

Extends AndroidJavaProxy

Member Enumerations

Enumeration StoppedListeningReason

NoReasonProvided
= 0
Inactivity
= 1
Timeout
= 2
Deactivation
= 3

Fields

VoiceEvents VoiceEvents[Get]
TelemetryEvents TelemetryEvents[Get]

Member Functions

VoiceSDKListenerBinding
( IVoiceService voiceService,
IVCBindingEvents bindingEvents )
Callback for listening start
void onStartListening ( )
Callback for listening completion
void onStoppedListening
( int reason )
Request submission callback
Parameters
requestId
The associated unique request identifier
Partial transcription set
Parameters
transcription
requestId
void onPartialTranscription
( string transcription )
Final transcription received
Parameters
transcription
requestId
void onFullTranscription
( string transcription )
Callback when early response data has been received
Parameters
responseJson
The unparsed json data
requestId
The associated unique request identifier
void onPartialResponse
( string responseJson )
Called when user request cancellation has occured
Parameters
requestId
The associated unique request identifier
void onAborted ( )
Called when an error message has been received
Parameters
error
The error itself
message
The error message
errorBody
The full body of the message
requestId
The associated unique request identifier
void onError
( string error,
string message,
string errorBody )
Callback when response data has been received
Parameters
responseJson
The unparsed json data
requestId
The associated unique request identifier
void onResponse
( string responseJson )
void onMicLevelChanged
( float level,
string requestId )
void onMicLevelChanged
( float level )
void onMicDataSent
( string requestId )
void onMicDataSent ( )
void onMinimumWakeThresholdHit
( string requestId )
void onMinimumWakeThresholdHit ( )
void onRequestCompleted
( string requestId )
void onRequestCompleted ( )
void onServiceNotAvailable
( string error,
string message )
void onAudioDurationTrackerFinished
( long timestamp,
double duration )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon