WebSpeech前端语音播报简单实现
//首先导入该js <script type='text/javascript' src='/pcQuery/js/WebSpeech.js'></script> //第二步:在你需要读取的地方执行就ok <script> $(function(){ WebSpeech.ready(function() { WebSpeech.server = 'http://120.24.87.124/cgi-bin/ekho2.pl'; WebSpeech.setVoice('en'); WebSpeech.speak('你好,欢迎使用WebSpeach!'); }); }) </script>
js下载地址:
链接:https://pan.baidu.com/s/1Mfqw3wU07Qw5PL--xwLtxw 密码:59ar
//首先导入该js<script type='text/javascript' src='/pcQuery/js/WebSpeech.js'></script> //第二步:在你需要读取的地方执行就ok<script> $(function(){ WebSpeech.ready(function() { WebSpeech.server = 'http://120.24.87.124/cgi-bin/ekho2.pl'; WebSpeech.setVoice('en'); WebSpeech.speak('你好,欢迎使用WebSpeach!'); }); })</script>————————————————版权声明:本文为CSDN博主「枯枫叶」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/gelinwangzi_juge/article/details/82800088