1.0.1 • Published 2 years ago

chat-dialog v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

基于讯飞- 语音识别 与 语音合成功能开发web 端sdk ,包含webAudio录音功能实现

使用 webAudio 录音

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