Internet Radio: Tune-In For Emacspeak
1 Internet Radio: Tune-In For Emacspeak
I just checked in the ability to browse, search and play radio-stations from TuneIn on the Emacspeak Audio Desktop.
1.1 Pre-Requisites
- xsltproc for xsl stylesheet processing.
- Linux mplayer for playing streams, preferably the latest version
2 Simple Usage Summary
- M-x emacspeak-wizards-tune-in-radio-browse brings up the browse interface.
- M-x emacspeak-wizards-tune-in-radio-search prompts for a query and brings up search results.
- Both browse and search get the results back as an OPML feed, which gets displayed as a simple Web page within the Emacs Web Browser (EWW if using 24.4).
- Items identified as (link) are themselves OPML feeds and can be opened via command emacspeak-feeds-opml-display.
- The initial browse buffer is set up to use opml-display when you click on link items.
- You can play (audio) links by invoking command emacspeak-webutils-play-media-at-point — this command is bound to _; in EWW.
- You need to provide an interactive prefix argument to the above command to indicate that it is a playlist — so you actually press C-u ; on audio links.
- Many of the audio links do not return a playlist – they instead return a link that is a pointer to a playlist. Newer versions of mplayer will throw a security error — you can tell mplayer to follow them by invoking the earlier command with two prefix args so C-u C-u ;.
- All this works about 90% of the time. In some cases – depending on whether the server failed to generate the right
mimetype for the play URL etc, you may need to run
curl --silent <url>
where <url> is the URL of the audio link, then pass that resulting URL to command emacspeak-m-player-url.
Share And Enjoy!