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

TranscriptionRequest Class

Abstract class for all transcription requests
Others
TUnityEvent
The type of event callback performed by TEvents for all event callbacks
TOptions
The type containing all specific options to be passed to the end service.
TEvents
The type containing all events of TSession to be called throughout the lifecycle of the request.
TResults
The type containing all data that can be returned from the end service.

Properties

The current audio input state
Transcription data
An array of all finalized transcriptions

Fields

Whether or not audio is currently activated
Whether or not audio is currently being listened to
Determine whether audio can be activated based on activation error existing
Determine whether audio can be activated based on activation error existing

Protected Functions

Constructor class for transcription requests
Parameters
newOptions
The request parameters to be used
newEvents
The request events to be called throughout it's lifecycle
Set audio input state
virtual void OnCanActivate ( )
Recreates log with specified info
Applies a transcription to the current results
Parameters
transcription
The transcription returned
full
If true the transcription is final, otherwise still being analyzed.
Called when a partial transcription has been set
Called when a full transcription has been set
Implementations need to provide errors when audio input is not found
Called when audio activation begins
Child class audio activation handler needs to call SetAudioInputState when complete
Called when audio activation is in effect and input is being listened to
Called when audio deactivation begins
Child class audio deactivation handler needs to call SetAudioInputState when complete
Check to determine if audio has been sent
Called when audio input state is no longer being listened to

Member Functions

Public request to activate audio input
Public request to deactivate audio input
Ensure audio is activated prior to sending
Ensure audio is deactivated prior to cancellation
Did you find this page helpful?
Thumbs up icon
Thumbs down icon