![]() Registered Member ![]()
|
remotely rate songs and announce titles with lirc and espeak (w/example .lircrc)
Fri Aug 24, 2007 6:14 pm
No one asked, but I thought it might help if I posted what I managed to accomplish in ubuntu feisty today. It seems that no one has covered this yet.
I can already use my streamzap remote to control amarok's basic functions, but I added the ability to give a rating (w/ voice feedback) and to vocally announce the artist, title, or current rating. For example, I figured out that you can open a terminal and announce the current song with the following line:
(dcop pulls the info from amarok, then tee sends the info to espeak) However, this command will not work with irexec in the .lircrc file! Does anyone know why?
Anyway, heres my workaround... I made three text files with the following names: amarok_say_artist
amarok_say_title
amarok_say_rating
(Dcop pulls the info from amarok, tee puts the info in a text file, then espeak reads the text file.) Then I made the three files executable:
I can run the files in two ways:
Now that that those are set up, here they are at the end of my .lircrc:
(The & helps keep irexec from hanging on that line.) You can see a list of other amarok functions by typing:
I hope this gives you enough info to figure it out if you are trying to set something like this up yourself. |
![]() Moderator ![]()
|
Re: remotely rate songs and announce titles with lirc and espeak (w/example .lircrc)
Fri Aug 24, 2007 10:37 pm
nice work! I love it when people come up with unique ways to interface with Amarok
![]()
"There are two theories to arguing with women. Neither one works."
. If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss" |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]