Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including chat-dialog with all npm packages installed. Try it out:

var chatDialog = require("chat-dialog")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

chat-dialog v1.0.1

使用 webAudio 录音 ````js // 初始一个录音类 const recorder = new Recorder({callback:(e) => { console.log('录音结束回到=', e)}); // 注册一个监听回调 两种回调任选其一使用 recorder.callback = (e) => { console.log('录音结束回到=', e) player.src = e.audioURL } recorder.stop(); // 停止录音 recorder.start();// 开始录音 ````

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free