VoxCommando

VoxNastics (User Guides and Mods) => Integration Ideas => Topic started by: Bray90820 on June 14, 2017, 10:47:04 PM

Title: Vox Echo integration issue
Post by: Bray90820 on June 14, 2017, 10:47:04 PM
Kida a noob here so I am still learning stuff but I am using Vox To send commands to my echo I have a command that runs a CMD process then reads and speaks a text file the only way I could get it to read the text file was if I disabled TTS.GetLastText and Results.SetVar in the EchotoVC event most of the time it works fine sometimes the command gets stuck and only tells me what was last spoken

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<!--C:\Users\Aaron\Desktop\VcGroup_Plex.xml-->
<!--This commandGroup xml file was exported from VoxCommando-->
<VoiceCommands version="2.2.3.5">
    <commandGroup open="True" name="Plex" enabled="True" prefix="" priority="0" requiredProcess="" description="">
        <command id="750" name="TV Shows" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
            <action>
                <cmdType>Launch.CMD</cmdType>
                <params>
                    <param>Powershell C:\Users\Aaron\Alexa\Plex\TV_Show.ps1 &gt; C:\Users\Aaron\Alexa\Plex\Output.txt</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>VC.Pause</cmdType>
                <params>
                    <param>500</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>File.Read</cmdType>
                <params>
                    <param>C:\Users\Aaron\Alexa\Plex\Output.txt</param>
                    <param>0</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <action>
                <cmdType>TTS.Speak</cmdType>
                <params>
                    <param>{LastResult}</param>
                </params>
                <cmdRepeat>1</cmdRepeat>
            </action>
            <phrase>When did this Episode Air</phrase>
        </command>
    </commandGroup>
</VoiceCommands>
Title: Re: Vox Echo integration issue
Post by: nime5ter on June 19, 2017, 01:15:47 PM
Kida a noob here so I am still learning stuff but I am using Vox To send commands to my echo

Hi,

It's a bit difficult to make suggestions based on the info provided. Firstly, the Amazon Echo tutorial provided on the forum allows us to send commands from the Echo to Vox, not the other way around, so it's not clear what you mean when you say that you're trying to use Vox to send commands to the Echo.

If you mean that you're using the Echo as a microphone to try to send commands to VC, then the command XML that James posted here (http://voxcommando.com/forum/index.php?topic=2682.msg23144#msg23144) should work as long as every step of the tutorial has been followed to the letter, without any changes or revisions.

Maybe it would help for us to see the Vox log file after you've issued the command above so that we can see what is happening.

http://voxcommando.com/mediawiki/index.php?title=Log