chat-dialog
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

基于讯飞- 语音识别 与 语音合成功能开发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();// 开始录音           

/chat-dialog/

    Package Sidebar

    Install

    npm i chat-dialog

    Weekly Downloads

    1

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.51 MB

    Total Files

    32

    Last publish

    Collaborators

    • klaus-1988