Table of Contents

Class RealtimeAssistant

public class RealtimeAssistant : AIAssistant
Inheritance
object
RealtimeAssistant
Inherited Members

Fields

onReceiveInputTranscription

public StreamingTextEvent onReceiveInputTranscription

Field Value

StreamingTextEvent

onReceiveText

public StreamingTextEvent onReceiveText

Field Value

StreamingTextEvent

onReceiveTranscript

public StreamingTextEvent onReceiveTranscript

Field Value

StreamingTextEvent

onWebSocketStateChanged

public UnityEvent_OnWebSocketStateChanged onWebSocketStateChanged

Field Value

UnityEvent_OnWebSocketStateChanged

Properties

Api

public override Api Api { get; }

Property Value

Api

EnableTextToSpeech

public bool EnableTextToSpeech { get; }

Property Value

bool

Instructions

public string Instructions { get; }

Property Value

string

Microphone

public string Microphone { get; set; }

Property Value

string

RealtimeModel

public Model RealtimeModel { get; set; }

Property Value

Model

Recorder

public RealtimeAudioRecorder Recorder { get; }

Property Value

RealtimeAudioRecorder

SpeechAudioFormat

public RealtimeAudioFormat SpeechAudioFormat { get; set; }

Property Value

RealtimeAudioFormat

SpeechAudioVolume

public float SpeechAudioVolume { get; set; }

Property Value

float

SpeechModel

public Model SpeechModel { get; set; }

Property Value

Model

SpokenLanguage

public SystemLanguage? SpokenLanguage { get; set; }

Property Value

SystemLanguage?

Voice

public Voice Voice { get; set; }

Property Value

Voice

Methods

Awake()

protected override void Awake()

ConfigureRealtimeSession()

public UniTask ConfigureRealtimeSession()

Returns

UniTask

CreateRealtimeConnection()

public UniTask CreateRealtimeConnection()

Returns

UniTask

InitializeAsync()

public override UniTask InitializeAsync()

Returns

UniTask

SafeGetProfile()

protected RealtimeAssistantProfileBase SafeGetProfile()

Returns

RealtimeAssistantProfileBase

StartRecording()

public void StartRecording()

StopRecordingAsync()

public UniTask<AudioClip> StopRecordingAsync()

Returns

UniTask<AudioClip>