jacroe / pidora

A Raspberry Pi Radio. Includes Pandora (via pianobar) and NPR Hourly News
http://pidora.jacroe.com/
GNU General Public License v3.0
38 stars 12 forks source link

Where is the speaker output? #66

Closed parkererickson closed 9 years ago

parkererickson commented 9 years ago

I am fairly new to python and this project really interested me. I was wondering where in the program it outputted the songs/NPR/other. I would like to add weather forecasts(already have a parser and text-to-speech program) and other podcasts that I can play as a "station" and not on a regular time basis. Thanks in advance!

jacroe commented 9 years ago

Each program handles its own output; Pidora itself doesn't do anything with the audio. So to do your weather forecasts, you'll need to use your text-to-speech program to either play it over the speakers itself or generate a mp3/wav/ogg file and use your favorite command-line program to play that.

parkererickson commented 9 years ago

Ok. Thank you. How would I pause the music to do this?

jacroe commented 9 years ago

I would take a look at the code in bar-update.py. It pauses* the music to play NPR radio and then restarts it.

*Or rather it doesn't let pianobar continue playing.

parkererickson commented 9 years ago

Thanks for the help! Still working on the TTS portion.

jacroe commented 9 years ago

No problem! Looking forward to seeing what you come up with!