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

为何单独从源码里面检出来, 一直识别不出来呢。。也不报错 #23

Closed 2410024100 closed 4 years ago

2410024100 commented 4 years ago

我放到了我项目里面,当成组件调用

2410024100 commented 4 years ago

有时会报错: 6f07efde-650f-49c0-b92d-8975d21daf5d:46 Uncaught ReferenceError: WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_arrayfromdefault is not defined at Object.to16BitPCM (6f07efde-650f-49c0-b92d-8975d21daf5d:46) at Object.transaction (6f07efde-650f-49c0-b92d-8975d21daf5d:17) at onmessage (6f07efde-650f-49c0-b92d-8975d21daf5d:9)

ferrinweb commented 4 years ago

应该是开发环境依赖版本不匹配造成的

2410024100 commented 4 years ago

报错跟这个问题是一样的。。。虽然我是语音听写。。。我试试看。 https://github.com/ferrinweb/voice-input-button2/issues/2

不过刚刚看了我项目里面。。。早已装了那个依赖

2410024100 commented 4 years ago

问下大佬。。。在内嵌在钉钉app 里面打开网页。。就获取不到录音设备。。无法录音。是怎么回事呢。。。其他端目前是正常

ferrinweb commented 4 years ago

这个需要看钉钉App中的webview是否支持第三方页面录音了

2410024100 commented 4 years ago

这个需要看钉钉App中的webview是否支持第三方页面录音了

好的,谢谢大佬回复。。。。目前还是直接用了大佬的插件引入。 封装成自己的组件会报错。。也不知道什么问题。

2410024100 commented 4 years ago

`import locales from './locales.json' const defaultConfig = {

color: '#333', tipPosition: 'top', tipTextColor: '#f2f2f2', tipBackgroundColor: '#4b667d', tipShadowColor: 'rgba(0,0,0,.1)', interactiveMode: 'press', returnMode: 'increment', language: 'zh_cn', vad_eos: 3000 } export default { props: {

tipTextColor: String,  // 这里算一个
tipBackgroundColor:  String,   // 这里算一个
tipShadowColor:  String,    // 这里算一个

color: String,
tipPosition: String,

........ },`

对了,有个问题跟大佬汇报下。。。mixins混合里面,我发现有几个属性不会生效,要写在在props里才生效

ferrinweb commented 4 years ago

谢谢反馈,我闲下来检查下

liuyvhang commented 4 years ago

问下大佬,在edge下worker的postMessage无效,请问怎么解决?

zhaoxiaozhao1 commented 4 years ago

Error in created hook: "TypeError: Cannot read property 'getUserMedia' of undefined" 这是什么为什么呀

ferrinweb commented 4 years ago

Error in created hook: "TypeError: Cannot read property 'getUserMedia' of undefined" 这是什么为什么呀

参考是不是这个原因:#24

zhaoxiaozhao1 commented 4 years ago

ok,谢谢

创建的挂钩中出现错误:“ TypeError:无法读取未定义的属性'getUserMedia'” 这是什么为什么呀

参考是不是这个原因:#24 ok,谢谢

zhaoxiaozhao1 commented 4 years ago

问一下,在node_modules里边修改了voice-input-button.vue文件, 项目npm run dev 后,修改的内容没有体现出来需要怎么搞啊?谢谢哦

ferrinweb commented 4 years ago

默认引用的是 dist/voice-input-button.js 文件。如果需要直接引用组件,则使用 import voiceInputButton from 'voice-input-button2/src/lib'

zhaoxiaozhao1 commented 4 years ago

默认引用的是 dist/voice-input-button.js 文件。如果需要直接引用组件,则使用 import voiceInputButton from 'voice-input-button2/src/lib'

好的

upholdjx commented 4 years ago

image

HTTP Authentication failed; no valid credentials available

npm 安装了填写了key相关的一点击录音就报这个错

ferrinweb commented 4 years ago

验证失败,检查鉴权配置。

keke195 commented 1 year ago

有时会报错: 6f07efde-650f-49c0-b92d-8975d21daf5d:46 Uncaught ReferenceError: WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_arrayfromdefault is not defined at Object.to16BitPCM (6f07efde-650f-49c0-b92d-8975d21daf5d:46) at Object.transaction (6f07efde-650f-49c0-b92d-8975d21daf5d:17) at onmessage (6f07efde-650f-49c0-b92d-8975d21daf5d:9)

请问你这个是怎么解决的,我也报这个错