rob-mccann / Pi-Voice

A hackday project. Run the program, speak into your microphone and hear the response from your speakers.
317 stars 37 forks source link

Everthing now in python, multiplatform #1

Closed leifdenby closed 11 years ago

leifdenby commented 11 years ago

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 :)

rob-mccann commented 11 years ago

Nice! And thanks for the osx check for the 'say' command in there.

I'll merge this later today.

michaelmior commented 11 years ago

Note that the wolframalpha Python module is not currently listed as a requirement.

rob-mccann commented 11 years ago

That python google speech link actually looks like what we need :)