Created
August 7, 2018 16:47
-
-
Save oHervis/d5c8d3578712d799a34acead41b70ba8 to your computer and use it in GitHub Desktop.
WebSpeech API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SpeechApi from './SpeechApi'; | |
window.addEventListener('DOMContentLoaded', () => { | |
if (SpeechApi) { | |
const speechRecognition = new SpeechTranscription(); | |
speechRecognition.render(); | |
return; | |
} | |
document.getElementById('main').innerHTML = 'API não esta disponível'; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment