Skip to content

A small Javascript library for browser-based real-time speech recognition, which uses Recorderjs for audio capture, and a WebSocket connection to the Kaldi GStreamer server for speech recognition.

License

Notifications You must be signed in to change notification settings

Kaljurand/dictate.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dictate.js

dictate.js is a small Javascript library for browser-based real-time speech recognition. It uses Recorderjs for audio capture, and a WebSocket connection to the Kaldi GStreamer server for speech recognition.

API

The API is modeled after Android's SpeechRecognizer. See the source code of lib/dictate.js and the usage in demos/demo.js.

Running the demos

The demos connect to the public services running on wss://bark.phon.ioc.ee that offer Estonian and English speech recognition.

The demos are available here. (Note that in order to use a wss-service the HTML-pages must be loaded over https.)

To run the demos on localhost, start a local HTTP server, e.g.:

python3 -m http.server 8081

and then open e.g. http://localhost:8081/demos/mob.html.

Browser support

Known to work in:

  • Mozilla Firefox 73.0.1 on Ubuntu 19.10
  • Chrome 80 on Android 10
  • Opera 56.1 on Android 10
  • various iOS and Windows devices (see #27)

Issues:

  • Google Chrome 81.0 on Ubuntu 19.10 (WebSocket connection to 'wss://...' failed: Error in connection establishment: net::ERR_SSL_OBSOLETE_VERSION)

See also

About

A small Javascript library for browser-based real-time speech recognition, which uses Recorderjs for audio capture, and a WebSocket connection to the Kaldi GStreamer server for speech recognition.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •