[英]Webkit Speech api - general questions
I'm using webkit-speech on google chrome. 我在google chrome上使用webkit-speech。 demo: https://www.google.com/intl/en/chrome/demos/speech.html
演示: https : //www.google.com/intl/zh-CN/chrome/demos/speech.html
And I have a couple of questions: 我有几个问题:
How can I recognize when a person stop talking? 我如何识别一个人何时停止说话?
Is there a way to leave the microphone on for infinity? 有没有办法让麦克风保持无限远? it turns grey after about 30 seconds silence, and i want it to work for infinity..
大约30秒钟的静音后,它变成灰色,我希望它可以无限工作。
on this demo, there is not an "Allow button" when trying to speak, but on my website - i used the same code - every time i try to start using, it pops up a bar saying: "Allow" or "Disallow" for microphone input. 在此演示中,尝试讲话时没有“允许按钮”,但是在我的网站上-我使用了相同的代码-每次尝试开始使用时,它都会弹出一个条:“允许”或“禁止”用于麦克风输入。
Is there a way to check "When user stopped talking" or something like that? 有没有办法检查“用户停止讲话时”或类似的内容? (I now check "if text on the text box hasnt changed in the last 2 seconds", and that creates a lag between the command and the function execution)
(我现在检查“如果文本框上的文本在最近2秒钟内没有更改”,这会在命令和函数执行之间产生延迟)
is there a way to make this code viable on mobile? 有没有办法使此代码在移动设备上可行? on mobile it says: "you need a version of chrome that is heigher than 25", and if I could make it viable for mobile, that would make my life easier..
在移动设备上显示:“您需要的Chrome版本要比25高”,如果我可以在移动设备上使用它,那将使我的生活更轻松。
Notes: 笔记:
How to fix 3: I guess that you are using HTTP protocol and not HTTPS. 如何解决3:我猜您使用的是HTTP协议,而不是HTTPS。 If you will use HTTPS, the user will not need to "allow" each time, but only once in the used lifetime.
如果您将使用HTTPS,则用户无需每次都“允许”,而在所使用的生存期内仅需一次。 I too wander about all of the other 4, so if you figure it out, i'd love you to send me how.
我也徘徊在其他所有4个项目上,所以如果您知道了,我希望您能给我发送。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.