JavaScript 为语音计时
我正在寻找一种方法来计算某人在仅使用 HTML5 的网页上说出一段文本所需的输入时间。
我研究了 x-webkit-speech 并可以记录句子,但正在寻找一种对输入进行计时的方法,例如“onwebkitspeechstart”
<input id="speech" type="text" speech x-webkit-speech onwebkitspeechstart="alert('Timer Start');" onwebkitspeechend="alert('Timer End');"/>
还有人知道如何更改 webkit 语音在认为语音之前等待的时间量已结束,以允许句子之间有更长的停顿。
我已经在这个主题上做了很多谷歌搜索,但找不到支持的属性/事件的列表。
I'm looking for a way to time the input it takes for someone to speak a block of text on a webpage only using HTML5.
I've looked into the x-webkit-speech and can record the sentence but am looking a way to time the input for instance "onwebkitspeechstart"
<input id="speech" type="text" speech x-webkit-speech onwebkitspeechstart="alert('Timer Start');" onwebkitspeechend="alert('Timer End');"/>
Also does anyone know how to change the amount of time the webkit speech waits before it thinks the speech has ended to allow for longer pauses between sentences.
I've done a lot of Googling on the subject but can't find a list of supported attributes/events.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
来自原始海报的评论,他错误地认为他们不被允许“自我回答”,但确实弄清楚了这一点。
From a comment from the Original Poster who thought incorrectly that they were not allowed to "Self-Answer" but did figured this out.