Sage runs on Node.js, so you must have that installed, along with npm.
Note: These instructions are relevant as of July 28, 2015.
Sage uses Google APIs for speech-to-text conversion. This requires an API key.
To obtain an API key for the Google Speech API, follow these steps:
- Join the Chromium Dev Group on Google Groups. This unhides the Speech API in the developer console.
- Go to the Google Developers Console and create a project.
- In the sidebar on the left, click on "APIs & auth", then click on "APIs".
- Search for "Speech", and click on Speech API. Click on "Enable".
- Now you have access to the Speech API. To get your API key, click on "Credentials" under "APIs & auth".
- Create a public key.
Keep your API key handy for configuration.
Install this repo globally with NPM:
$ npm install -g ajay-gandhi/sage
This will install this repo and its Node.js dependencies.
The speakable
module uses SoX to record audio
(for speech to text conversion), so install sox
:
$ sudo apt-get install sox # linux
$ brew install sox # mac
The text-to-speech module uses the espeak
executable, so install that as well:
$ sudo apt-get install espeak # linux
$ brew install espeak # mac
All the required dependencies for Sage are now installed. Keep reading to add optional APIs (e.g. news), or see Usage to configure and run Sage.
These APIs really increase the usability of Sage, since they add modules such as WolframAlpha.
Sign up for a WolframAlpha API key to take advantage of WolframAlpha's powerful knowledge engine. See Modules for usage.
- Go to WolframAlpha's developer page.
- Sign in or create an account.
- Go to "My Apps" at the top of the page, and choose "Get an AppID".
- Choose any name and description for you application, then continue.
Keep your API key handy for configuration.