speech-to-text
Advanced tools
Comparing version 0.3.5 to 0.3.6
{ | ||
"name": "speech-to-text", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "A speech to text module.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -1,5 +0,7 @@ | ||
# speech-recognition | ||
# Speech To Text | ||
Speech to text module. | ||
A speech recognition module. | ||
It's designed to listen continuously to a user (i.e. pauses are ok), and then converting the speech to text. | ||
## Install | ||
@@ -33,2 +35,10 @@ | ||
The constructor will throw an error if speech recognition is not supported by the browser. | ||
```` | ||
// Check to see if this browser supports speech recognition | ||
if (!('webkitSpeechRecognition' in window)) { | ||
throw new Error("This browser doesn't support speech recognition. Try Google Chrome."); | ||
} | ||
```` | ||
### startListening | ||
@@ -35,0 +45,0 @@ |
6678
50