ferrinweb / voice-input-button2

New version of voice input button using new interface of iflytek voice dictation (the stream version). 基于讯飞新版语音听写(流式版) api 的语音输入按钮 vue 组件。
96 stars 16 forks source link

怎么获取识别前的录音源文件 #71

Closed keke195 closed 1 year ago

keke195 commented 1 year ago

我想要不仅拿到语音识别的文字结果,还想要拿到录音源文件,怎么实现?

ferrinweb commented 1 year ago

二开请参考这个位置 lib/recorder/index.js, line: 30,建议以事件的形式抛出音频缓冲区数据,在组件外部接收并编码音频数据。