Gri*_*ork 5 html javascript google-chrome text-to-speech speech-synthesis
○
我正在尝试制作一个应用程序(仅适用于我自己),可以正确地发音奇怪(幻想)的名字。我找到了 chrome 的 TTS api 和 W3C 的 SpeechSynthesis API,但是看起来 Chrome 在说出剩余的文本之前去除了所有 SSML 标签:
<?xml version="1.0"?>
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<!-- Phoneme representation is cut short to exaggerate problem -->
<phoneme alphabet="ipa" ph="təmei̥"> tomato </phoneme>
</speak>
Run Code Online (Sandbox Code Playgroud)
如何让 JSFiddle 中的 SSML 在 Chrome 中正确发音?
仅供参考,我正在运行 Windows,因此我无法使用特定于 mac 的发音标记。
提前致谢!
| 归档时间: |
|
| 查看次数: |
740 次 |
| 最近记录: |