语音转文字的可选参数。

interface VoiceParams {
    format?: string;
    sampleRate?: number;
    bitsPerSample?: number;
    channels?: number;
}

Properties

format?: string

语音格式,例如 amrmp3pcm

sampleRate?: number

采样率。

bitsPerSample?: number

采样位深。

channels?: number

声道数。