VoxCommando

Help and Support (Using VoxCommando) => Sonos => Topic started by: Darcy on July 03, 2016, 03:53:41 PM

Title: Downloading a playing a podcast
Post by: Darcy on July 03, 2016, 03:53:41 PM
I'm posting this request here as it doesn't seem to fit anywhere else.

I'm new to VC and am slowing building my capabilities.  For my next activity, I'm at a loss of where to start.  It seems simple.  I want to play the latest new podcast from CBC.  The URL is:

http://podcast.cbc.ca/mp3/hourlynews.mp3

Many thanks.
Title: Re: Downloading a playing a podcast
Post by: jitterjames on July 03, 2016, 04:31:37 PM
What do you normally use to play podcasts or other media like music?
Title: Re: Downloading a playing a podcast
Post by: Darcy on July 03, 2016, 06:57:15 PM
Currently I have a sonos system and stream it.  I use VC to control my sonos.  What I would like is to say "Latest CBC  news" and VC fetches the mp3 and then plays it on my sonos.

I was able to have VC scrape the Reuters News website and TTS the headlines to my sonos.  Actually I found the code in the forum and updated it.  Works well, but I would like the CBC version.
Title: Re: Downloading a playing a podcast
Post by: jitterjames on July 03, 2016, 08:39:57 PM
OK.  The fact that you wanted to play this on Sonos is kind of an important piece of information!

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.2.1-->
<command id="825" name="Play latest CBC  news" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Sonos.SetURI</cmdType>
    <params>
      <param>http://podcast.cbc.ca/mp3/hourlynews.mp3</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Play latest C.B.C.  news</phrase>
</command>
Title: Re: Downloading a playing a podcast
Post by: Darcy on July 24, 2016, 07:25:19 PM
Works like a charm. Thanks!