Ich benutze zurzeit das Script von Jitterhames http://voxcommando.com/forum/index.php?topic=1140.0 (bischen abgeändert)
I don't know if this is the reason for
all of your difficulties, but I can see several errors in the Shoutcast code. It looks like the code was not copied correctly. This may have been causing your initial problems.
The main problems are:
{Match.1}} should be {Match.{1}} in several places. [See the original code]
The "Shoutcast genre" command's VC.TriggerEvent action is probably not passing the parameter {LastResult} properly.
Your code says:
<cmdString>playRadioMatch&amp;&amp;{LastResult}</cmdString>But {LastResult} should be passed as the payload (i.e. the second parameter), not within the first parameter of the command string as it is currently in your code. In your code, VoxCommando is creating an event named "playRadioMatch&amp;&amp;[Random number]". In other words, it is not creating the event named "playRadioMatch" that you need to trigger the next command.
The code should be:
<?xml version="1.0" encoding="utf-16"?>
<command id="817" name="shoutcast genre" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Stop</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString>suche Radiosender {1}</cmdString>
<cmdRepeat>0</cmdRepeat>
</action>
<action>
<cmdType>Scrape</cmdType>
<cmdString>http://www.shoutcast.com/radio/{1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<cmdString>href="(.*?)".*?class="playbutton</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<cmdString>import random</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>PY.ExecString</cmdType>
<cmdString>result = random.randint(1,{#M})</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<cmdString> {#M} Radiosender gefunden, spiele nummer {LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
action>
<cmdType>VC.TriggerEvent</cmdType>
<cmdString>playRadioMatch&&{LastResult}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>VC.Standby</cmdType>
<cmdString />
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>shoutcast, inizialisiere radiowiedergabe</phrase>
<phrase>genre, station</phrase>
<payloadList>Alternative,Blues,Classical,Country,Decades,Easy Listening,Electronic,Metal,Oldies,New Age,Pop,Public Radio,Rap,Reggae,Rock,</payloadList>
</command>
The problem with your stream not playing is because of the VC.TriggerEvent error. If you copy the above and paste it into your tree, replacing your current 'shoutcast genre' command, that should fix the streaming problem for shoutcast.
With regard to XBMC-related issues, I will leave that to others here. I don't use XBMC.