如何解析recordermanager.onframerecorded的bufferframe帧?
你好,想问下recorderManager.onframerecorded的frameBuffer含义是什么?我用的是mp3,现在需要分析音频的频率,不知道怎么处理这些数据,这些数据含义是什么
以下是打出来的console日志
const options = { duration: duration, sampleRate: this .data.sample_rate, numberOfChannels: 1 , encodeBitRate: this .data.encodeBitRate, format: 'mp3' , frameSize: 1,
recorderManager.onFrameRecorded((res) => { var curTimemillis = new Date().getTime(); that.setData({ curTimemillis: curTimemillis }) const { frameBuffer } = res; console.log(frameBuffer); }) |