News:

VoxCommando supports plugins for a wide variety of programs and devices. Contact us if you want to create your own.

Main Menu

Abspielen eines Filmes durch Namen

Started by vampb, April 24, 2014, 09:54:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vampb

Moin liebe Community !

Ich bin erst seit kurzem beim Rumtesten vom VoxCommando und bin auch relativ begeistert von der Software. Eine Sache bekomme ich allerdings nicht hin und vielleicht kann mir da jemand weiter helfen.

Ich möchte gerne durch Ansagen eines Titels diesen direkt über XBMC abspielen wollen.
Ich habe also die neuste Version vom VoxCommando 1 installiert und alle Befehle, die vorgegeben sind, haben auch funktioniert (also die, die ich bis jetzt gesprochen habe)
Mir ist allerdings aufgefallen, daß in der deutschen "XBMC 12 Frodo.zip" config solch ein Befehl mit Ansage des Titels nicht enthalten ist.
Also habe ich in die englische Config File reingeschaut und siehe da, da ist doch tatsächlilch etwas:


       <command id="373" name="Play Movie {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
           <action>
               <cmdType>XJson.Raw</cmdType>
               <cmdString>Player.Open&amp;&amp;"item": {"movieid": {1}}</cmdString>
               <cmdRepeat>1</cmdRepeat>
           </action>
           <phrase>Play</phrase>
           <phrase>film, films, movie, movies, moving picture</phrase>
           <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovieIDs.xml</payloadFromXML>
       </command>


Das habe ich dann mit ins Deutsche übertragen und nur die "Phrases" angepasst.
Wenn ich nun das Kommando abgebe, wird es zwar richtig erkannt, allerdings wird der Titel nicht abgespielt und ich bekomme einen "Parse Error".
Kennt das vielleicht jemand ?


Danke und Gruß,
Boris

Kalle

#1
Hallo Boris und willkommen im VC Forum.
Könnte verschiedene Ursachen haben, bitte schau Dir zuerst dieses Video an, hier wird genau beschrieben wie und was Du in XBMC und VC einstellen musst und schreibe ob es danach funkioniert.
Das xjson-plugin in VC muss aktiviert sein.

https://www.youtube.com/watch?v=O-9QNjEdNhI

Du kannst uns auch noch deine voxLog.txt posten, welche Du im VC verzeichnis findest.

Gruß
Kalle
***********  get excited and make things  **********

jitterjames

Also, please post the xml for the new command you have created, not for the original command.

vampb

Hi !

Ja, ich habe alles soweit gemacht, wie es in dem Video erklärt wird.

Hier mein neues Kommando:

        <command id="489" name="Spiele Video{1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>XJson.Raw</cmdType>
                <cmdString>Player.Open&amp;&amp;"item": {"movieid": {1}}</cmdString>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>spiele, starte</phrase>
            <phrase>video</phrase>
            <payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcMovies.xml</payloadFromXML>
        </command>


Hier der Fehler aus der Log:

24.04.2014 22:59:00 1 guessed text:starte video Beispiel ?? (XBMC TV+Filme)
24.04.2014 22:59:00 1 Rulename: root # Semantics: 2
24.04.2014 22:59:00 1 Group: XBMC TV+Filme Speech: starte video Beispiel
24.04.2014 22:59:00 1 semanticID: 489
24.04.2014 22:59:00 1 kvp: command | 489
24.04.2014 22:59:00 1 kvp: payload1 | <489:Beispiel>nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos --/Beispiel/Beispiel.mp4
24.04.2014 22:59:00 1 id from payload: 489
24.04.2014 22:59:00 1 semanticID: 489
24.04.2014 22:59:00 1 kvp: command | 489
24.04.2014 22:59:00 1 kvp: payload1 | <489:Beispiel>nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos --/Beispiel/Beispiel.mp4
24.04.2014 22:59:00 1 id from payload: 489
24.04.2014 22:59:00 1 alternate:starte video Beispiel
24.04.2014 22:59:00 1 doCommand:Spiele Video {1}
24.04.2014 22:59:00 1 action repeat set to: 1
24.04.2014 22:59:00 1 Action:  XJson.Raw - Player.Open&&"item": {"movieid": nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos--/Beispiel/Beispiel.mp4}
24.04.2014 22:59:00 1 [action] XJson.Raw:Player.Open&&"item": {"movieid": nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos --/Beispiel/Beispiel.mp4}

24.04.2014 22:59:00 1 [plugin] Sending json request:
24.04.2014 22:59:00 1 [plugin] {"jsonrpc": "2.0", "method": "Player.Open", "params":{"item": {"movieid": nfs://10.1.1.1/volumeUSB1/usbshare/-- Videos--/Beispiel/Beispiel.mp4}},"id": "0"}
24.04.2014 22:59:01 508 [plugin] {
  "error": {
    "code": -32700,
    "message": "Parse error."
  },
  "id": null,
  "jsonrpc": "2.0"
}


nime5ter

#4
Hallo Boris,

You are using the wrong payloadxml file.

Compare the English command in your first post to the German command. You will see that you should be using the payloadxml file "xbmcMovieIDs.xml", not "xbmcMovies.xml".

Hoffentlich, das wird es das Problem lösen.

The correct file should have been automatically generated when you generated all of your XML.

You can double-click on the "wrong" payloadXML file in your "Spiele Video{1}" command, within your command tree (http://voxcommando.com/mediawiki/index.php?title=File:Tree_editor.png). Browse to the correct file and select it, save, and save again.

@nime: only a small correction in the german grammar (I hope it is ok for you)  ::)
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)

vampb

Arrgh, you are right !
Now its working ! :)
Thanks a lot for your support !

nime5ter

Quote from: nime5ter on April 24, 2014, 06:51:46 PM
@nime: only a small correction in the german grammar (I hope it is ok for you)  ::)

Yes, please do! Thanks Kalle.  :hugs

Stupid Google translator ... SUCKS.
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

Quote from: vampb on April 24, 2014, 07:00:22 PM
Arrgh, you are right !
Now its working ! :)
Thanks a lot for your support !

Well, that was easy. :)

We're happy to help. Thanks for providing all the information we asked for. This is why we always ask people to post their commands, instead of just describing them.
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)