HTML文本到语音在Windows 7中不起作用
为文本到语音应用程序创建了代码,但什么也没发生。怎么了?我正在使用Windows7HTML文本到语音在Windows 7中不起作用,html,text-to-speech,Html,Text To Speech,为文本到语音应用程序创建了代码,但什么也没发生。怎么了?我正在使用Windows7 <html> <head> <body> Set sapi=CreateObject("sapi.spvoice") <button id="Speak">Speak</button> <button id="SaveAudio">Save Audio to File<
<html>
<head>
<body>
Set sapi=CreateObject("sapi.spvoice")
<button id="Speak">Speak</button>
<button id="SaveAudio">Save Audio to File</button>
<textarea id="Data" style="height: 100%; width: 75%; font-size: 22pt" name="Data">
</textarea>
<textarea id="TextStatus" style="width: 20%; height: 20%;font-size: 16pt; border:none"></textarea>
</div>
</body>
</html>
设置sapi=CreateObject(“sapi.spvoice”)
通话
将音频保存到文件
`Set sapi=CreateObject(“sapi.SpVoice”);将失败,因为SAPI对象对脚本编写不安全。请参阅以查看一些备选方案。Set sapi=CreateObject(“sapi.spvoice”)这是什么?javascript?内置函数文本到语音。。。。