Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sandurz

Pages: [1]
1
Feature Requests / Re: Global 'VC.Recognized' event?
« on: November 12, 2014, 08:59:15 PM »
You can use this solution:
http://voxcommando.com/forum/index.php?topic=1689.msg14686#msg14686

It generates a VC.Reco event any time a command is recognized, whether or not the confidence level was high enough for the command to be executed.

The event generated by that script includes 6 payloads that can theoretically be used as well, with the 4th payload being the confidence level.
The script can be customized to your preferences, of course.

If you haven't yet used the Python plugin, that needs to be enabled. Save the .py script and then have it load automatically when VC starts up using a VC.Loaded event. http://voxcommando.com/mediawiki/index.php?title=Python#PY.ExecFile

I'll check that out, thanks.

Another important question is "why do you want this?".

Because there may be a better (more efficient) solution.

I want some EventGhost stuff to fire on every recognized command to flash the LED I have set to represent the VoxCommando status: red for standby, green for listening, etc. Got it flashing blue briefly when nothing is recognized and want some green flashes for recognized commands.

2
Feature Requests / Global 'VC.Recognized' event?
« on: November 06, 2014, 12:52:50 PM »
Short of adding one to every action, is there an option to trigger an event on success of any recognized command?

3
Got a working implementation of Play Next Episode Of {show name}

Put the attached .xsp in your smarts folder and use this command:

Code: [Select]
<command id="150" name="Next Episode of {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>XJson.SmartPL</cmdType>
                <params>
                    <param>smarts\nextepisode.xsp</param>
                    <param>{1}</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <params>
                    <param>Playing next episode of {1}</param>
                </params>
                <cmdRepeat>0</cmdRepeat>
            </action>
            <action>
                <cmdType>VC.Pause</cmdType>
                <params>
                    <param>500</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>XJson.Raw</cmdType>
                <params>
                    <param>Player.Open</param>
                    <param>"item": {"file":"special://profile/playlists/mixed/voxsmart.xsp"}</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>play</phrase>
            <phrase>next episode of</phrase>
            <payloadFromXML phraseOnly="True" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">XbmcPayloads\xbmcTvShowTitles.xml</payloadFromXML>
        </command>

And boom! The next unwatched episode of the named show will start playing.


Pages: [1]