跳转到内容

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: 1;
codec: "pcm16";
sampleRate: 16000 | 8000 | 24000;

optional maxAmount?: string;

maxDurationSeconds: number;

optional model?: string;

operation: "transcribe" | "translate";

optional targetLanguage?: string;