语音合成事件的问题 [英] Problems with events of speechSynthesis

查看:36
本文介绍了语音合成事件的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 SpeechSynthesisUtterance API 开发一个小应用.

I am working on a small app using SpeechSynthesisUtterance API.

我尝试在单词之间启动一个小功能(当它们被发音时):

I try to launch a small function betweens words (when they are enunciated) :

我使用 boundary 事件:<代码>myWords.onboundary = 函数(){...};

但它不起作用...也许我不明白边界效应是如何工作的.

But it doesn't work...Maybe i don't understand how works boundaries effect.

拜托,你能帮我吗?

谢谢,

托马斯

推荐答案

这个简化的示例 说明事件没有被触发.并且 this bug 讨论了这个问题,但得出的结论是使用在 Linux 或 Windows 上对我不起作用的本地语音"...

This boiled-down sample illustrates the event not being fired. And this bug discusses this problem, but came to the conclusion to use the "native voice" which didn't work for me on Linux or Windows...

这篇关于语音合成事件的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆