Skip to content

PlatformAudioClient

This content is not available in your language yet.

令牌档平台直连面(AgentSession.platform 挂载点)

speak(input, options?): Promise<SpeechData>;

文字转语音:POST /t1/tts → SpeechData(audio 恒在场);失败 throw PlatformRequestError

SpeakInput

PlatformAudioCallOptions

Promise<SpeechData>


transcribe(input, options?): Promise<TranscriptData>;

语音转文字:POST /t1/asr → TranscriptData;失败 throw PlatformRequestError

TranscribeInput

PlatformAudioCallOptions

Promise<TranscriptData>