RealtimeSessionInput
type RealtimeSessionInput = { input: { channels: 1; codec: "pcm16"; sampleRate: 16000 | 8000 | 24000; }; maxAmount?: string; maxDurationSeconds: number; model?: string; operation: "transcribe" | "translate"; targetLanguage?: string;};创建实时转写或翻译会话所需的音频格式、时长与预算参数。
input: { channels: 1; codec: "pcm16"; sampleRate: 16000 | 8000 | 24000;};channels
Section titled “channels”channels: 1;codec: "pcm16";sampleRate
Section titled “sampleRate”sampleRate: 16000 | 8000 | 24000;maxAmount?
Section titled “maxAmount?”optional maxAmount?: string;maxDurationSeconds
Section titled “maxDurationSeconds”maxDurationSeconds: number;model?
Section titled “model?”optional model?: string;operation
Section titled “operation”operation: "transcribe" | "translate";targetLanguage?
Section titled “targetLanguage?”optional targetLanguage?: string;本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。