Reponsivevoicejs TTS无效

时间:2017-04-18 16:04:09

标签: html text-to-speech

我有一个简单的网页,我正在尝试将文字转换为语音,因此一旦突出显示一个单词,就会使用TTS向用户说出。据我所知,你只需要一行代码,这个脚本可以帮助我解决可能无法解决的问题。

<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?
family=Open+Sans" />
<script src="https://code.responsivevoice.org/responsivevoice.js"></script>
</head>
<body>
<div class="nav-arrow" onClick="location.href='sam.html';"></div>
<div class="nav-arrow" >  </div>
<h2>Can you help Sam to draw a ship and sail across the ocean?</h2>
<div class='contain-boat'>
<div class='bottom'>
<div class='window'></div>
<div class='window window-2'></div>
<div class='window window-3'></div>
<div class='window window-4'></div>
</div>
<div class='pole'></div>
<div class='flag'></div>
<div class='sail'></div>
<div class='sail sail-2'></div>
</div>
</body>
</html>

0 个答案:

没有答案