VoiceAgentLiveClient class

GPT Liveを使用するFoundryのボイスエージェントに接続します。

コンストラクター

VoiceAgentLiveClient(string, TokenCredential, VoiceAgentLiveClientOptions)

GPT Liveクライアントを作成します。

メソッド

connect(string, VoiceAgentLiveClientConnectOptions)

音声エージェントに接続し、サービスがGPT Liveセッションを開始するのを待ちます。

コンストラクターの詳細

VoiceAgentLiveClient(string, TokenCredential, VoiceAgentLiveClientOptions)

GPT Liveクライアントを作成します。

new VoiceAgentLiveClient(endpoint: string, credential: TokenCredential, options?: VoiceAgentLiveClientOptions)

パラメーター

endpoint

string

Foundry プロジェクト エンドポイント。

credential
TokenCredential

Microsoft Entra認証用の認証情報。

options
VoiceAgentLiveClientOptions

既定の接続設定。

メソッドの詳細

connect(string, VoiceAgentLiveClientConnectOptions)

音声エージェントに接続し、サービスがGPT Liveセッションを開始するのを待ちます。

function connect(agentName: string, options?: VoiceAgentLiveClientConnectOptions): Promise<VoiceAgentLiveConnection>

パラメーター

agentName

string

既存のGPT Liveボイスエージェントの名前。

options
VoiceAgentLiveClientConnectOptions

この接続の設定。

戻り値

音声送信やイベント受信が可能な接続済みセッション。