This is the an agent that handles the voice processing for the "Hey Foxy" application.
The following are prerequisites for running the Foxy Client:
- Mac OSX ONLY!
- nodejs >= 7.10.0
- sox
- snowboy
- Firefox browser https://www.mozilla.org/en-US/firefox/
(If you already installed node via nvm you can skip this step)
Follow the directions from NodeJS to install on your platform.
First, clone this repo:
$ git clone https://github.com/tamarahills/foxycli.git
Install portaudio and sox:
$ brew install portaudio sox
$ pip install pyaudio
Download the Snowboy binaries at http://docs.kitt.ai/snowboy/#downloads
$ cd foxycli
$ npm install
Download the "Hey Foxy" model from https://snowboy.kitt.ai/dashboard:
- mkdir foxycli/resources
- Search on "Hey Foxy"
- Record a few samples while you are there (Optional)
- Click on the "download icon"
- Save "Hey_Foxy.pmdl" to the foxycli/resources directory.
$ cd foxycli
$ node index.js
See instructions at https://github.com/tamarahills/foxyext to install and start the extensions. To verify that Foxy is working, you can use the following commands:
Hey Foxy, what's the weather in Seattle
Hey Foxy, set a timer for ten minutes
Hey Foxy, play some NPR
Hey Foxy, play some (jazz|classical|rock)
Hey Foxy, add that to pocket (requires pocket integration)
Hey Foxy, turn the kitchen light on (requires integration with https://github.com/mozilla-iot/gateway)
$ cd foxycli
$ npm test