Web Speech API
https://developer.mozilla.org/ja/docs/Web/API/Web_Speech_API
Text-to-Speech
と
Speech Recognition
からなる
Text-to-Speech
では
OS
の読み上げ機能を使用している
Chrome
では
Speech Recognition
の裏側で
Cloud Speech-to-Text
を呼んでいる
sample
https://github.com/mdn/web-speech-api/blob/master/speech-color-changer/script.js
対応チェック
code:js
if ('SpeechRecognition' in window || 'webkitSpeechRecognition' in window) {
...
}