https://github.com/t-mullen/speech-to-text-stream
Simple streaming speech recognition for Chrome.
https://github.com/t-mullen/speech-to-text-stream
Last synced: about 2 months ago
JSON representation
Simple streaming speech recognition for Chrome.
- Host: GitHub
- URL: https://github.com/t-mullen/speech-to-text-stream
- Owner: t-mullen
- License: mit
- Created: 2018-04-30T23:14:54.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-01T00:27:19.000Z (about 7 years ago)
- Last Synced: 2025-01-05T19:22:32.298Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# speech-to-text-stream
[](https://standardjs.com)
Simple text-stream wrapper around the WebSpeech SpeechRecognizer API for Google Chrome.
Also see [text-to-speech-stream](https://github.com/RationalCoding/text-to-speech-stream).
## Usage
```javascript
var recognizer = new SpeechToTextStream()button.onclick = function () {
recognizer.start() // Can only be started by user interaction
}recognizer.on('data', function (token) {
// token is one spoken word
})recognizer.on('speechstart', function (token) {
// speech has been recognized
})recognizer.on('speechend', function (token) {
// speech has stopped or paused
})
```