Closed leifdenby closed 11 years ago
Nice! And thanks for the osx check for the 'say' command in there.
I'll merge this later today.
Note that the wolframalpha
Python module is not currently listed as a requirement.
That python google speech link actually looks like what we need :)
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 :)