【文件属性】:
文件名称:Speech_API:HTML5 Web Speech API示例
文件大小:119KB
文件格式:ZIP
更新时间:2021-04-29 06:39:31
JavaScript
语音API
测试Google“网络语音” API的使用,并带有访问和关闭LED的命令(png)。
有关API的更多信息: :
git clone git@github.com:damnemo/Speech_API.git
git clone git://github.com:damnemo/Speech_API.git
为了使用Web Speech API
在本地PC上有两种解决方案
您需要创建一个本地网络服务器。
带有python的Web服务器示例:
python下载和安装3
从包含html文件的目录中打开终端
键入“ python -m http.server 8000”
在以下位置打开浏览器:“ ”
镀Chrome选项
关闭chrome浏览器对于Windows:右键单击目标副本上的chrome.exe->“ C:\ Program Files(x86)\ Goo
【文件预览】:
Speech_API-master
----led_on_off()
--------led_on_off.png(63KB)
--------img()
--------js()
--------led_on_off.html(3KB)
--------css()
----README.md(1KB)
----chrome_local_test.lnk(2KB)