News:

There is now a ChangeLog page on the wiki
New developments are added at the bottom of the page.

Main Menu

Recent posts

#91
VoxCommando Basics and Core Features / Re: Echo Dot Integration 2018
Last post by PegLegTV - August 24, 2022, 03:24:15 PM
sorry for the late reply,

mine doesn't give verbal feedback, with an echo dot it just sends the command but no verbal response, on my phone through the Alexa app mine shows a title card you can change the text on the title card in the lambda script. I used the original lambda script posted in the beginning of this thread.

If I have multiple echo's will it reply to all the echo devices or just the one that issued the command?

Also does Alexa share device variables at this time, or is it still just "room 1" for all devices?

#92
Here is my command xml.  Note that I'm using the GTTS actions here for speech.  If VoxCommando replied with some sort of text it usually gets passed back to Alexa and you hear it both on VC and on the echo.  But for this to work you may need to use my lastest lambda code posted above.

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.3.1.1-->
<command id="47" name="event to voice command" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>{1}&amp;&amp;play movie</ifParams>
    <then>
      <action>
        <cmdType>VC.TriggerEvent</cmdType>
        <params>
          <param>Play.Movie</param>
          <param>{1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.StopMacro</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <action>
    <cmdType>VC.TellVox</cmdType>
    <params>
      <param>{1}</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>LastActionSuccess</ifType>
    <ifParams>&amp;&amp;</ifParams>
    <then>
      <action>
        <cmdType>GTTS.Speak</cmdType>
        <params>
          <param><![CDATA[ ]]></param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>TCP.WebServer.SetResponse</cmdType>
        <params>
          <param>Jarvis does not understand {1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>VC.StopMacro</cmdType>
        <params />
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <action>
    <cmdType>GTTS.GetLastText</cmdType>
    <params />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>LastActionSuccess</ifType>
    <ifParams>{LastResult}&amp;&amp; </ifParams>
    <then>
      <action>
        <cmdType>TCP.WebServer.SetResponse</cmdType>
        <params>
          <param>{LastResult}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>TCP.WebServer.SetResponse</cmdType>
        <params>
          <param>OK</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <event>EchoToVC</event>
</command>
#93
I think it is set in the command actions Kalle.

See attached:
#94
VoxCommando Basics and Core Features / Re: Echo Dot Integration 2018
Last post by Kalle - August 23, 2022, 03:37:49 AM

Hi PegLeg,
do you get a confirmation via Alexa or does Alexa repeat the command?
At the moment I only get "OK" as confirmation and I am sure that she repeated the command before.
Do you know where I can set this in the code?


Kalle
#95
VoxCommando Basics and Core Features / Re: Echo Dot Integration 2018
Last post by PegLegTV - August 19, 2022, 05:51:56 PM
after a lot of testing, I deleted everything and tried again. At first I was getting an error about "utterance conflict detected", it wouldn't let me use the word "off" as an utterance so I removed that from the list and the error went away. I was then able to test the skill and I'm now getting the event to show up in VoxCommando!  ::wiggle

with the short amount of testing that I've done so far I have found several words that wouldn't work to begin with so I had to add them to the utterance list. the word that I haven't gotten to work so far is "please" for example is I say "Lights Please" the event only shows "Lights" for some reason Alexa doesn't want to pass that with the event (not a big problem, I'll just need to make some changes in VC)

as for the invocation words I tried "jarvis jarvis" and "ironman ironman" both required me to say "Alexa tell jarvis jarvis play" or "Alexa tell ironman ironman play". so I thought I would see if it would let me get a way with one invocation word "jarvis", there is an error under the field that says "Invocation name must be at least 2 words." but I pressed "Save Model" button at the top of the page and then pressed Build model. I didn't receive any errors on build, but the error is still present under the invocation words field. I can now say "Alex tell jarvis play" and it works

I used the original node.js code from the tutorial and node.js version 16.

I'll be doing more testing on words and phrase to find what words need to be added to the utterance list but this is a great start in the right direction

Thank you, you guys are always a huge help. (especially because it seems I messed something up the first time around  :bonk ::saddest)


#96
VoxCommando Basics and Core Features / Re: Echo Dot Integration 2018
Last post by Kalle - August 19, 2022, 04:36:04 AM

Now at least it works again.
The problem was my DDNS account, which had not updated the IP address.

@PegLeg: Like you, I changed the invocation name, but I never say the second word, otherwise Alexa always replies with "a problem with your skill.... blah, blah, blah".
It was pure coincidence that I noticed this, because I had not yet become accustomed to the second word.
In other words: If your first phrase is currently "Iron" and "Man" is your second phrase - try "Alexa, tell Iron lights please" - if it works, you can set your invocation name to Jarvis Jarvis or ironman ironman, so that the invocation name rule is met, but always speak only the first phrase to Alexa.


I know it sounds strange, but it worked for me and maybe for you too.


Kalle
#97
Maybe you can use the two words Jar and Viss ?

I upgraded to node.js 12 and it still seems to be working.
#98
VoxCommando Basics and Core Features / Re: Echo Dot Integration 2018
Last post by PegLegTV - August 18, 2022, 01:34:17 PM
hey jitterjames, nice to here from you too  ;D.

I'll take a look at the script and see what I can figure out.

one big change that I'm not a fan of is that the Invocation name now has to be two words, that will make commands a bit more of a mouth full... Alexa tell iron man lights please, Alexa tell iron man play random episodes of future man

please don't upgrade to test it out, I don't want to break your setup.  :bigno ::saddest

good luck with your home sale and enjoy your long weekend
#99
Also, I'm still using node.js version 10.  I'm not sure if I upgrade if it will keep working...
#100
Also...

Hi Pegleg.  It's nice to hear from you!  :biglaugh