rob-mccann/Pi-Voice — pull request #1 by leifdenby (2013-04-14 02:38:05+00:00)
Title: Everthing now in python, multiplatform

I've rewritten the HTTP requests to use the python module 'requests' and used the multiplatform pyaudio and audiotools for recording and converting between formats. It's a bit messy, but it works :)

It would be possible to just run the recording loop continuously and just wait for the audio to go over a certain threshold (like it was done here: https://github.com/jeysonmc/python-google-speech-scripts/blob/master/stt_google.py), but I'm not sure if that's the best approach. It does look like that no data is written until threshold is met, so at least the disk drive won't fill up while waiting for people to say something.

Fun project :)