Class RealtimeService
Inheritance
object
RealtimeService
Assembly: .dll
Syntax
public static class RealtimeService
Methods
CreateSession(Model, Model, SystemLanguage, Action<float[]>, Action<float[]>, Action<AudioClip>, Action<string>, Action<string>, Action<string>, Action<string>, Action<string>, Action<ErrorResponse>, Action<string>, FunctionManager, bool, bool, bool)
Declaration
public static RealtimeSessionController CreateSession(Model rtmModel = null, Model sttModel = null, SystemLanguage spokenLanguage = null, Action<float[]> onReceiveAudio = null, Action<float[]> onReceiveAudioDone = null, Action<AudioClip> onReceiveAudioClip = null, Action<string> onReceiveText = null, Action<string> onReceiveTextDone = null, Action<string> onReceiveTranscript = null, Action<string> onReceiveTranscriptDone = null, Action<string> onReceiveInputTranscriptionSuccess = null, Action<ErrorResponse> onReceiveInputTranscriptionFailed = null, Action<string> onSessionStateChanged = null, FunctionManager functionManager = null, bool enableAudio = true, bool enableTranscript = true, bool autoManageWebSocketState = false)
Parameters
Type |
Name |
Description |
Model |
rtmModel |
|
Model |
sttModel |
|
SystemLanguage |
spokenLanguage |
|
Action<float[]> |
onReceiveAudio |
|
Action<float[]> |
onReceiveAudioDone |
|
Action<AudioClip> |
onReceiveAudioClip |
|
Action<string> |
onReceiveText |
|
Action<string> |
onReceiveTextDone |
|
Action<string> |
onReceiveTranscript |
|
Action<string> |
onReceiveTranscriptDone |
|
Action<string> |
onReceiveInputTranscriptionSuccess |
|
Action<ErrorResponse> |
onReceiveInputTranscriptionFailed |
|
Action<string> |
onSessionStateChanged |
|
FunctionManager |
functionManager |
|
bool |
enableAudio |
|
bool |
enableTranscript |
|
bool |
autoManageWebSocketState |
|
Returns
CreateSession(RealtimeEventReceiverBase, Model, Model, SystemLanguage, bool, bool, bool)
Declaration
public static RealtimeSessionController CreateSession(RealtimeEventReceiverBase customEventReceiver, Model rtmModel = null, Model sttModel = null, SystemLanguage spokenLanguage = null, bool enableAudio = true, bool enableTranscript = true, bool autoManageWebSocketState = false)
Parameters
Type |
Name |
Description |
RealtimeEventReceiverBase |
customEventReceiver |
|
Model |
rtmModel |
|
Model |
sttModel |
|
SystemLanguage |
spokenLanguage |
|
bool |
enableAudio |
|
bool |
enableTranscript |
|
bool |
autoManageWebSocketState |
|
Returns