【文件属性】:
文件名称:voiceassistant:简单的应用程序语音识别
文件大小:41KB
文件格式:ZIP
更新时间:2021-04-30 21:01:36
JavaScript
语音应用
简单的应用程序语音识别
添加的选项助手:语音:
const dictate = ( ) => {
recognition . start ( ) ;
recognition . onresult = ( event ) => {
const speechToText = event . results [ 0 ] [ 0 ] . transcript ;
paragraph . textContent = speechToText ;
if ( event . results [ 0 ] . isFinal ) {
if ( speechToText . includes ( 'what is the time' ) ) {
speak ( getTime ) ;
} ;
i
【文件预览】:
voiceassistant-main
----index.html(960B)
----images()
--------microphone.png(16KB)
----README.md(665B)
----Capture.PNG(38KB)
----index.js(2KB)
----style.css(649B)