Author Topic: Internet Radio  (Read 22285 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Internet Radio
« Reply #60 on: August 16, 2014, 02:17:02 PM »
There is nothing wrong with the xml.  I also recommend purging your cache.

- File >> Purge Cache
- File >> Full Restart

You should also check that you don't have duplicate group names for some reason.

If none of that helps you should post a full log.

Hiryu

  • Contributor
  • ***
  • Posts: 53
  • Karma: 2
    • View Profile
Re: Internet Radio
« Reply #61 on: August 16, 2014, 03:24:59 PM »
It's the weirdest thing -- I had tried all that, purging the cache, full restart, closing down the application and then restarting.  Going through all of that again.  For some reason, it just kept giving me the same log message.  Waited a while, came back to it, restarted VC and then it started working!

Seems ok for now -- thanks!

Sorry -- didn't mean to imply that the XML wasn't working, I knew it had to be some user error or something going on with the PC on my end.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Internet Radio
« Reply #62 on: August 16, 2014, 04:07:53 PM »
Sorry -- didn't mean to imply that the XML wasn't working, I knew it had to be some user error or something going on with the PC on my end.
I didn't think you were implying anything, but sometimes older XML is no longer valid so I thought I should point out that it was still working for us.
« Last Edit: August 16, 2014, 04:26:09 PM by jitterjames »

lja

  • Sr. Member
  • ****
  • Posts: 145
  • Karma: 5
    • View Profile
Re: Internet Radio
« Reply #63 on: October 02, 2014, 12:50:46 PM »
Re: Reply #12 on: August 21, 2013, 10:29:21 am

I have been playing with this but so far, have been unable to get it to work. Before I continue, is the code still valid?  

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Internet Radio
« Reply #64 on: October 02, 2014, 01:12:02 PM »
No, looks like the Shoutcast site has changed its stripes, so the XML posted here at http://voxcommando.com/forum/index.php?topic=1140.msg9864#msg9864 is no longer valid.

The history panel gives a pretty good indication of this if you try the commands. When it scrapes the Shoutcast site and tries to find matches for the regular expression, no matches are found.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

lja

  • Sr. Member
  • ****
  • Posts: 145
  • Karma: 5
    • View Profile
Re: Internet Radio
« Reply #65 on: October 02, 2014, 01:21:47 PM »
No, looks like the Shoutcast site has changed its stripes, so the XML posted here at http://voxcommando.com/forum/index.php?topic=1140.msg9864#msg9864 is no longer valid.

The history panel gives a pretty good indication of this if you try the commands. When it scrapes the Shoutcast site and tries to find matches for the regular expression, no matches are found.

Thanks.

lja

  • Sr. Member
  • ****
  • Posts: 145
  • Karma: 5
    • View Profile
Re: Internet Radio
« Reply #66 on: October 03, 2014, 05:17:29 PM »
I have setup folder called "Net Radios" and in this folder are a number of internet stations, each with a specific payload.
To date using a variation of phrases for each station e.g. What station is this, Name this station etc., have had success.
Would like to ask: "What station is this" for each station, while the station is streaming using the same phrase.
If this is possible, would like some help please. Thanks.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Internet Radio
« Reply #67 on: October 03, 2014, 05:32:11 PM »
I have setup folder called "Net Radios" and in this folder are a number of internet stations, each with a specific payload.

By "setup folder" do you mean "command group"? http://voxcommando.com/mediawiki/index.php?title=Groups

If so, could you please post your Net Radios command group xml?  http://voxcommando.com/mediawiki/index.php?title=XML_on_the_forum#Posting_Your_Code_to_the_Forum

It will be easier for us to understand what you've accomplished so far and what you're still trying to do.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

lja

  • Sr. Member
  • ****
  • Posts: 145
  • Karma: 5
    • View Profile
Re: Internet Radio
« Reply #68 on: October 03, 2014, 05:59:10 PM »
By "setup folder" do you mean "command group"? http://voxcommando.com/mediawiki/index.php?title=Groups

If so, could you please post your Net Radios command group xml?  http://voxcommando.com/mediawiki/index.php?title=XML_on_the_forum#Posting_Your_Code_to_the_Forum

It will be easier for us to understand what you've accomplished so far and what you're still trying to do.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.3-->
<commandGroup open="False" name="Net Radios Test" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="387" name="Listen to Net Radios" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Which radio station would like to to listen to?|What station did you have in mind?|Sure, I can turn on the radio. What station should I tune to?</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Listen to net radios</phrase>
  </command>
  <command id="361" name="What are my options?" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="This is the easiest method but not the most sophisticated. There are almost always different ways to skin a cat in VC.">
    <action>
      <cmdType>PayloadXML.GetRandomP</cmdType>
      <params>
        <param>payloads\internet radios.xml</param>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.MatchConcat</cmdType>
      <params>
        <param>{CR}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>What are my options?</phrase>
  </command>
  <command id="211" name="Smooth Jazz Florida" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.PlayStream</cmdType>
      <params>
        <param>http://198.58.106.133:11094/</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Now playing Smooth Jazz Florida</param>
        <param>30000</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>play smooth jazz florida, stream florida jazz </phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">net radios payloads\smooth jazz florida.xml</payloadFromXML>
  </command>
  <command id="255" name="stop the stream" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.StopStream</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>stop the stream, stop playing</phrase>
  </command>
  <command id="440" name="get Florida Jazz song info" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Scrape.UserAgent</cmdType>
      <params>
        <param>http://38.96.175.21:8802</param>
        <param>Mozilla</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>System.SetClipboardText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>Current.Song:.*?&lt;b&gt;(.*?).-.(.*?)&lt;/b&gt;</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Artist: {Match.1.1}{cr}Song: {Match.1.2}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>This is the song {Match.1.2}, by the artist {Match.1.1}.</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>smooth jazz florida song info</phrase>
  </command>
  <command id="234" name="What station is this" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PayloadXML.GetRandomP</cmdType>
      <params>
        <param>net radios payloads\smooth jazz florida</param>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.MatchConcat</cmdType>
      <params>
        <param>{CR}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>What station is this</phrase>
  </command>
  <command id="240" name="The Source KJAC" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.PlayStream</cmdType>
      <params>
        <param>http://149.255.33.76:8110/</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Play the source</phrase>
  </command>
  <command id="239" name="get The Source song info" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Scrape.UserAgent</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>System.SetClipboardText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>Current.Song:.*?&lt;b&gt;(.*?).-.(.*?)&lt;/b&gt;</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Artist: {Match.1.1}{cr}Song: {Match.1.2}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>This is the song {Match.1.2}, by the artist {Match.1.1}.</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>the source song info</phrase>
  </command>
  <command id="231" name="What station is this" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>PayloadXML.GetRandomP</cmdType>
      <params>
        <param>net radios payloads\the source</param>
        <param>100</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.MatchConcat</cmdType>
      <params>
        <param>{CR}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{Match.1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>What station is this, Name this station</phrase>
  </command>
</commandGroup>


https://dl.dropboxusercontent.com/u/19298307/net%20radios%20payloads/smooth%20jazz%20florida.xml

https://dl.dropboxusercontent.com/u/19298307/net%20radios%20payloads/the%20source.xml
« Last Edit: October 03, 2014, 06:13:45 PM by lja »

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Internet Radio
« Reply #69 on: October 03, 2014, 10:31:11 PM »
Thanks for posting your xml. I wouldn't have understood what was happening without being able to see your commands.

I've made some revisions to your command group. Within each command, I've added a description to try to explain what is happening.

If you copy the command group into your tree, you can open up each command to read the explanation.

I recommend that you delete your current command group before trying to use this new version, because otherwise you'll have two groups in your tree that use the same command phrases and VC will get confused. If you want to revert back to your original commands, you can simply grab them again from this thread.

You'll also need to download the attached payload xml file and place it in your "net radio payloads" folder.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.3-->
<commandGroup open="True" name="New Net Radios" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="393" name="Listen to Net Radios" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Which radio station would like to to listen to?|What station did you have in mind?|Sure, I can turn on the radio. What station should I tune to?</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>Listen to net radios</phrase>
  </command>
  <command id="367" name="What are my options?" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="This reads (scrapes) your payload xml file with all the radio station names. It finds the first phrase for each station name (because the file includes different ways to say the same station name -- e.g. &quot;Smooth Jazz Florida&quot; or just &quot;Smooth Jazz&quot;). It then creates a list of all the stations by concatenating (joining together) all of the stations it has matched. {CR} is a carriage return. It makes sure that each match found  is listed on its own line.&#xD;&#xA;&#xD;&#xA;This is more complicated than you need for your simple list of 2 stations. But if you eventually want to add different ways to say the same station name then this solution should be more robust.">
    <action>
      <cmdType>File.Read</cmdType>
      <params>
        <param>net radio payloads\internet radio stations.xml</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.RegEx</cmdType>
      <params>
        <param>&lt;phrase&gt;(.*?)[,|&lt;]</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.MatchConcat</cmdType>
      <params>
        <param>{CR}</param>
        <param>20</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>{LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>What are my options?</phrase>
  </command>
  <command id="217" name="Play shoutcast radio station" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Since both of your radio stations (Smooth Jazz &amp; The Source) are Shoutcast stations, you don't need to have so many separate commands. Payloads allow you to re-use command structures when they follow all the same rules.&#xD;&#xA;&#xD;&#xA;For these Shoutcast stations, you need just one single payload xml file. Each radio station has a phrase -&gt; value pair of &quot;radio station name&quot; -&gt; &quot;URL&quot;. When you ask VC to play a radio station, it looks for the station name and finds the associated URL in the payload XML file. The syntax {1} refers to the payload value. In this command, when you ask for a specific station, it will consult the payload XML station, find the associated URL, and then use that URL in all 3 actions that you can see above.&#xD;&#xA;&#xD;&#xA;Previously, you had 2 payload XML files, but you weren't actually passing the payload values to the command. Instead, you had hard-coded the URL in each command. VC was looking in those files for the radio station name, but it did nothing at all with the URL (payload value).">
    <action>
      <cmdType>Sound.PlayStream</cmdType>
      <params>
        <param>{1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>nowplaying</param>
        <param>{1}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>PayloadXML.GetPhrase</cmdType>
      <params>
        <param>net radio payloads\internet radio stations.xml</param>
        <param>{1}</param>
        <param>Random</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>Now playing {LastResult}</param>
        <param>30000</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>Now playing {LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>play </phrase>
    <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">net radio payloads\internet radio stations.xml</payloadFromXML>
  </command>
  <command id="268" name="stop the stream" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>Sound.StopStream</cmdType>
      <params />
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>Results.SetVar</cmdType>
      <params>
        <param>nowplaying</param>
        <param>no radio</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>stop the stream, stop playing</phrase>
  </command>
  <command id="453" name="get song info" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="In your &quot;play [radio station x]&quot; command, I added an action that stores the radio station URL as a variable called &quot;nowplaying&quot;. This allows VC to &quot;know&quot; what station is currently playing. Then we can use that variable in other commands. Here we are using it to tell VC which radio station URL to scrape to find out what song is playing.&#xD;&#xA;&#xD;&#xA;If you stop the internet radio stream, the &quot;nowplaying&quot; variable is set to &quot;no radio&quot;. (See the &quot;stop the stream&quot; command.) Here in this command, I tell VC that if the &quot;nowplaying&quot; variable contains the words &quot;no radio&quot; it should do nothing at all (exit this macro). Otherwise, it should look up the currently playing song info at the URL provided.">
    <if ifBlockDisabled="False" ifNot="False">
      <ifType>(A)Contains(B)</ifType>
      <ifParams>{var.nowplaying}&amp;&amp;no radio</ifParams>
      <then>
        <action>
          <cmdType>VC.StopMacro</cmdType>
          <params />
          <cmdRepeat>1</cmdRepeat>
        </action>
      </then>
      <else>
        <action>
          <cmdType>Scrape.UserAgent</cmdType>
          <params>
            <param>{var.nowplaying}</param>
            <param>Mozilla</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>System.SetClipboardText</cmdType>
          <params>
            <param>{LastResult}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>Results.RegEx</cmdType>
          <params>
            <param>Current.Song:.*?&lt;b&gt;(.*?).-.(.*?)&lt;/b&gt;</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>OSD.ShowText</cmdType>
          <params>
            <param>Artist: {Match.1.1}{cr}Song: {Match.1.2}</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
        <action>
          <cmdType>TTS.Speak</cmdType>
          <params>
            <param>This is the song {Match.1.2}, by the artist {Match.1.1}.</param>
          </params>
          <cmdRepeat>1</cmdRepeat>
        </action>
      </else>
    </if>
    <phrase>song info, what song is this, what's playing right now</phrase>
  </command>
  <command id="247" name="What station is this" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="In your &quot;play [radio station x]&quot; command, I added an action that stores the radio station URL as a variable called &quot;nowplaying&quot;. This allows VC to &quot;know&quot; what station is currently playing. Then we can use that variable in other commands -- to scrape the correct station to find out what song is playing, and here, we use the now playing variable to look up the associated radio station name from your&quot;internet radio stations&quot;  payload XML file.">
    <action>
      <cmdType>PayloadXML.GetPhrase</cmdType>
      <params>
        <param>net radio payloads\internet radio stations.xml</param>
        <param>{var.nowplaying}</param>
        <param>Random</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>This is {LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>TTS.Speak</cmdType>
      <params>
        <param>This is {LastResult}</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <phrase>What station is this, Name this station</phrase>
  </command>
</commandGroup>

If you haven't yet done so, I highly recommend that you watch the 2 "Editing & Building Commands" video tutorials. http://voxcommando.com/mediawiki/index.php?title=Video_Tutorials#Core_Concepts

Or if you've already watched those, perhaps re-watch them after reviewing my comments in the attached commands. Payloads are powerful and important tools in VoxCommando -- central to how it functions. It's important to genuinely understand how they work.
« Last Edit: October 03, 2014, 10:42:43 PM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Internet Radio
« Reply #70 on: October 03, 2014, 10:33:43 PM »
By the way, to attach files to a post, you can click on "Additional Options" below the post field. There you'll see an Attach: "Choose File" option.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

lja

  • Sr. Member
  • ****
  • Posts: 145
  • Karma: 5
    • View Profile
Re: Internet Radio
« Reply #71 on: October 04, 2014, 12:41:25 AM »
By the way, to attach files to a post, you can click on "Additional Options" below the post field. There you'll see an Attach: "Choose File" option.

Thanks. I missed that.

lja

  • Sr. Member
  • ****
  • Posts: 145
  • Karma: 5
    • View Profile
Re: Internet Radio
« Reply #72 on: October 04, 2014, 12:57:06 AM »
Re Reply #69

@Nime5ter. Thanks. Works nicely. Will again review videos. In the interim I have a question. Based on your notes, am I correct that only stations of the same as in shoutcast will work as per your code? In other words, a station like radio paradise would not work if added to the payload. However other shoutcast stations could be added and will work. Thanks.

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 2012
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Internet Radio
« Reply #73 on: October 04, 2014, 08:28:42 AM »
Yes, that's what I indicated -- but mainly this has to do with the "get song info" command. That command scrapes the Shoutcast stream URL to retrieve song information. Since different sites work differently, that command will not work for Radio Paradise.

However, you could still add the Radio Paradise stream's URL (http://stream-tx4.radioparadise.com:80/mp3-128) to your payload XML file and issue the command to listen to Radio Paradise.

The command asking "What station is this" will also work, because it is not trying to scrape a website; it is looking up that information locally, in your payload XML file.

In theory, you could add a separate command to get the song info for Radio Paradise (using the xml that James has posted previously) -- just make sure to make the phrasing unique in order to distinguish that query from the one you're using for the Shoutcast stations.
« Last Edit: October 04, 2014, 08:51:20 AM by nime5ter »
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

lja

  • Sr. Member
  • ****
  • Posts: 145
  • Karma: 5
    • View Profile
Re: Internet Radio
« Reply #74 on: October 04, 2014, 05:27:49 PM »

Thanks.
« Last Edit: October 04, 2014, 05:52:33 PM by jitterjames »