【发布时间】:2019-02-09 15:10:24
【问题描述】:
我想用麦克风播放录制的音频。
将其记录为 32 位数组后
let left = e.inputBuffer.getChannelData(0);
let tempLeftChannel = this.state.leftChannel;
tempLeftChannel.push(new Float32Array(left));
this.setState({ leftChannel: tempLeftChannel });
现在在 leftChannel 数组中,我有一大块音频数据。现在,我想在浏览器中播放它们。我该怎么做?
【问题讨论】:
标签: web-audio-api