Author Topic: Downloading a playing a podcast  (Read 2305 times)

0 Members and 1 Guest are viewing this topic.

Darcy

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
    • View Profile
Downloading a playing a podcast
« 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Downloading a playing a podcast
« Reply #1 on: July 03, 2016, 04:31:37 PM »
What do you normally use to play podcasts or other media like music?

Darcy

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
    • View Profile
Re: Downloading a playing a podcast
« Reply #2 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.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Downloading a playing a podcast
« Reply #3 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>

Darcy

  • Jr. Member
  • **
  • Posts: 10
  • Karma: 0
    • View Profile
Re: Downloading a playing a podcast
« Reply #4 on: July 24, 2016, 07:25:19 PM »
Works like a charm. Thanks!