web-audio-recorder
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

介绍

基于AudioWorkletNode实现的录音功能, 用户可录制语音拿到WAV数据 实现文章可见 https://juejin.cn/post/7310787455112413219

安装

npm i web-audio-recorder

使用

const recorder = new Recorder();

开始录音

	recorder.startRecord();

暂停录音

    recorder.suspendRecord();

继续录音

    recorder.continueRecord();

结束录音

    recorder.stopRecord();

获得WAV数据

    recorder.getWavData();

获得WAV BLob数据

    recorder.getWavDataBlob();

播放录音

    recorder.play();

Package Sidebar

Install

npm i web-audio-recorder

Weekly Downloads

3

Version

1.0.5

License

ISC

Unpacked Size

25.7 kB

Total Files

5

Last publish

Collaborators

  • mouche