RecorderManager格式问题
设置format为aac时,在真机上返回的格式为m4a,在开发工具上返回的格式为aac,不知道这是不是bug? var recorderManager = uni.getRecorderManager();
recorderManager.start({
duration: 60000,
sampleRate: 8000,
numberOfChannels: 2,
encodeBitRate: 48000,
format: 'aac',
audioSource: 'auto'
});
recorderManager.onStop(e => {
if (this.recordStatus === 'success') {
console.log(e.tempFilePath)
}
});
setTimeout(() => {
recorderManager.stop();
},3000)