RecorderManager.start()设置mp3后录取的文件是mpeg不是mp3?
使用这个获取的录音文件 recorderManager.start({
duration: 600000,
// frameSize: 20,
audioSource: 'auto',
format: 'mp3',
sampleRate: 44100,
encodeBitRate: 64000
// numberOfChannels: 1
})
recorderManager.onFrameRecorded(onFrameRecorded)
recorderManager.onInterruptionEnd(() => {
isSoundRecording.value = false
recorderManager.stop()
})
recorderManager.onStop((res) => {
// console.log(res, 'stop')
audioToText(res.tempFilePath).then((audiores) => {
console.log(audiores, 'audio')
})
})
但是服务端接收到的文件类型为audio/mpeg,而且文件名称后缀为.mp3,但是文件类型不是audio/mp3