evancohen / sonus-electron-boilerplate

Example of sonus running in electron
MIT License
14 stars 0 forks source link

sonus-electron-boilerplate

Example of Sonus running in electron for OSX and Linux.

What you get: customizable offline hotword detection and streaming recognition for your stand-alone desktop application.

Getting Started

  1. Clone Repo
  2. Get build dependencies (since we'll be compiling some modules from scratch)
    npm install -g nan
    sudo apt-get install libatlas-base-dev
  3. Install (and keep native electron cache away from your normal cache). This will take some time depending on the speed of your system.
    HOME=~/.electron-gyp npm install
  4. Add your Google Cloud Speech keyfile.json to the root
  5. Run npm start
  6. Say "Sonus" and then whatever you want

Known issues

As noted in snowboy#126, there are issues finding cblas_sdot on linux systems. The fix mentioned there has not been tested in this repo yet, but I'm working on a solution.