User avatar
with ice cream
Posts: 173
Joined: Mon Jul 30, 2012 7:25 am

Internet stream player, news, email, twitter announcer

Mon Jul 30, 2012 7:07 pm

Hi,

I worked on this for a few days now and moved quite a lot of obstacles out of the way. The main problems I solved (mostly by digging through this forum): audio/stream (mplayer) output from the headphone jack with just one clicking noise at the beginning, espeak text-to-speech with mbrola voices (w/ one click at the end), email fetching, filtering, twitter grabbing, and hour announcement on the hour.

Now I want to bring it all together and would welcome pointers in the right direction. My idea is to listen to a webstream (with mpd, I guess) and have events that may interrupt the playback: subjects of incoming mail get read (fetchmail/maildrop), tweets are read every half hour/randomly (twidge). There might be other events/triggers for which I haven't found or decided on a protocol yet (HTTP POST perhaps).

What setup do you recommend where I can have audio events (espeak output) interrupt audio playback . Also, I might want to turn the stream playback on or off (a physical switch?) and keep the other stuff running. How can remote processes communicate with the PI in real-time, IRC, webserver, IMAP idle? What are your suggestions?

In sum: I am hoping for suggestions for interruptable audio playback and a way for real-time communication.

Any pointers are appreciated. Thanks.

digdan
Posts: 2
Joined: Sat Sep 29, 2012 7:36 pm

Re: Internet stream player, news, email, twitter announcer

Mon Oct 01, 2012 7:28 pm

Let me know if you figure out mbrola voiceson on the pi

User avatar
with ice cream
Posts: 173
Joined: Mon Jul 30, 2012 7:25 am

Re: Internet stream player, news, email, twitter announcer

Tue Oct 02, 2012 6:22 am

digdan wrote:Let me know if you figure out mbrola voiceson on the pi
Frankly I can't recall if I did it or if it came with it but I have espeak installed with mbrola voices:

Code: Select all

$ espeak --voices=en
Pty Language Age/Gender VoiceName       File        Other Langs
 2  en-uk          M  english           en/en       (en-gb 2)(en 2)
 3  en-uk          M  english-mb-en1    mb/mb-en1   (en 2)
 2  en-us          M  english-us        en/en-us    (en-r 5)(en 3)
 5  en-sc          M  en-scottish       en/en-sc    (en 4)
 5  en             M  default           default
 5  en-uk-rp       M  english_rp        en/en-rp    (en-uk 4)(en 5)
 5  en-uk-north    M  lancashire        en/en-n     (en-uk 3)(en 5)
 5  en-us          M  us-mbrola-2       mb/mb-us2   (en 7)
 5  en-us          F  us-mbrola-1       mb/mb-us1   (en 8)
 5  en-us          M  us-mbrola-3       mb/mb-us3   (en 8)
 9  en             M  en-german         mb/mb-de4-en
 9  en             F  en-german-5       mb/mb-de5-en
 9  en             M  en-greek          mb/mb-gr2-en
 9  en             M  en-romanian       mb/mb-ro1-en
 5  en-uk-wmids    M  english_wmids     en/en-wm    (en-uk 9)(en 9)
10  en             M  en-dutch          mb/mb-nl2-en
10  en             F  en-french         mb/mb-fr4-en
10  en             M  en-french         mb/mb-fr1-en
10  en             F  en-hungarian      mb/mb-hu1-en
10  en             F  en-swedish-f      mb/mb-sw2-en
 5  en-wi          M  en-westindies     en/en-wi    (en-uk 4)(en 10)
11  en             M  en-afrikaans      mb/mb-af1-en
11  en             F  en-polish         mb/mb-pl1-en
11  en             M  en-swedish        mb/mb-sw1-en

 $ espeak --voices=de
Pty Language Age/Gender VoiceName       File        Other Langs
 5  de             M  german            de
 6  de             M  german-mbrola-2   mb/mb-de2
 6  de             M  german-mbrola-4   mb/mb-de4
 6  de             M  german-mbrola-6   mb/mb-de6
 7  de             F  german-mbrola-5   mb/mb-de5
 7  de             F  german-mbrola-7   mb/mb-de7
I tried experimenting with festival but I seem to be lacking the festvox wrappers (I thinks that is what I need) for the mbrola voices, so I gave up. Perhaps this helps you.

Return to “Graphics, sound and multimedia”