Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.65 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.65 KB

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.:

# Python 2
python -m SimpleHTTPServer

# Python 3
python -m http.server

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

Browser support

Known to work in:

  • Google Chrome 54.0 on Ubuntu 16.04
  • Firefox 49.0.2 on Ubuntu 16.04
  • Firefox 49.0.2 on Android 7.1.1

Known NOT to work in:

  • Google Chrome 54.0 on Android 7.1.1

See also