Class RealtimeAssistant
Inheritance
object
RealtimeAssistant
Assembly: .dll
Syntax
public class RealtimeAssistant : AIDevKitComponent
Properties
AudioOutputEnabled
Declaration
public bool AudioOutputEnabled { get; set; }
Property Value
AudioRecorder
Declaration
public RealtimeAudioRecorder AudioRecorder { get; }
Property Value
Type |
Description |
RealtimeAudioRecorder |
|
Declaration
public RealtimeAudioFormat InputAudioFormat { get; set; }
Property Value
Declaration
public int InputSampleDurationMs { get; set; }
Property Value
Declaration
public SampleRate InputSampleRate { get; set; }
Property Value
Type |
Description |
SampleRate |
|
Instructions
Declaration
public string Instructions { get; set; }
Property Value
Declaration
public RealtimeAudioFormat OutputAudioFormat { get; set; }
Property Value
OutputAudioVolume
Declaration
public float OutputAudioVolume { get; set; }
Property Value
RTMModel
Declaration
public Model RTMModel { get; set; }
Property Value
STTModel
Declaration
public Model STTModel { get; set; }
Property Value
SilenceDurationMs
Declaration
public int SilenceDurationMs { get; set; }
Property Value
SilenceThreshold
Declaration
public float SilenceThreshold { get; set; }
Property Value
SpokenLanguage
Declaration
public SystemLanguage SpokenLanguage { get; set; }
Property Value
Type |
Description |
SystemLanguage |
|
TranscriptOutputEnabled
Declaration
public bool TranscriptOutputEnabled { get; set; }
Property Value
Voice
Declaration
public Voice Voice { get; set; }
Property Value
Methods
Declaration
public UniTask ConfigureSession()
Returns
CreateConnection(bool)
Declaration
public UniTask CreateConnection(bool autoManageWebSocketState = false)
Parameters
Type |
Name |
Description |
bool |
autoManageWebSocketState |
|
Returns
SetAudioData(float[])
Declaration
public void SetAudioData(float[] audioData)
Parameters
Type |
Name |
Description |
float[] |
audioData |
|
SetMicrophone(string)
Declaration
public void SetMicrophone(string microphoneDeviceName)
Parameters
Type |
Name |
Description |
string |
microphoneDeviceName |
|
StartRecording()
Declaration
public void StartRecording()
StopRecording()
Declaration
public void StopRecording()