The beginnings of a Star Trek-like computer. Run the program, speak into your microphone and hear the response from your speakers.
Ask it a question like "What was the temperature in London on the 13th July 1982?"
- python: audiotools
- python: pyaudio
- python: requests
- python: quepy
- python: numpy
- Wolfram Alpha API key - note, their free, non-commercial licence is limited to 2,000 queries/month.
- Internet connection
- Make sure you've got all the requirements installed
- set the Wolfram Alpha API key as an environment variable
How it works
When you run the command, it listens to the microphone. Once it detects noise has returned to silence, it then sends the user's voice to Google who convert it to text. We then query Wolfram Alpha with what the user said. We send the response to Google TTS which then reads the response out to the user.
- Use Julius speech recogition as an always-on listener for the word "computer". Use that to trigger listen.sh.
- Run the Julius recogniser as a service
- Allow plugins to self-regulate their results by weighting them. listen.py chooses the highest weighted.
- Allow plugins to run asynchronously.
- Allow user to specify tts/stt engine as a command line option
- Create debian package so the program can be easily installed on the Raspberry Pi