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

이 연결의 설정.

반품

오디오 전송 및 이벤트 수신 준비가 된 연결된 세션.