recorderManager.start 怎样配置才能让录音文件大小最小

发布于 7 年前作者 baimin15232 次浏览最后编辑 7 年前来自 ask

const options = {

duration: 598000, //指定录音的时长,单位 ms

sampleRate: 16000, //采样率

numberOfChannels: 1, //录音通道数

encodeBitRate: 96000, //编码码率

format: ‘mp3’, //音频格式,有效值 aac/mp3

frameSize: 6, //指定帧大小,单位 KB

}

//开始录音

recorderManager.start(options);

0 回复
暂无回复