Author Topic: Need help  (Read 3769 times)

0 Members and 1 Guest are viewing this topic.

Bahraini.75

  • Jr. Member
  • **
  • Posts: 33
  • Karma: 3
    • View Profile
Need help
« on: December 25, 2017, 05:44:13 PM »
 Hi
I saw your YouTube:

https://youtu.be/sz6_1Igfx-s

And i try it and its work with me
But i need to use voxwav with voxcommando to control arduino and the relays with different way
Like control my car like start the engine lock doors
Lights and to give me some information about my car stetus like fuel percentage temperature
Thank you

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Need help
« Reply #1 on: December 26, 2017, 09:01:32 AM »
Hi, welcome to the VC forum.

That sounds like a complex project. We don't personally have any experience interfacing an Arduino with a car.

Someone here might be able to help you interface VoxCommando with a functioning Arduino project.

1. Which parts of your project do you already have working?
2. Which part do you need help with?

The Arduino relay video that you watched is an extremely simple example, where no information gets passed from the Arduino to your computer.

Starting your engine and locking the doors is probably fairly similar (assuming you already know how to control your car from an Arduino).

To get status information from the car requires passing information to VoxCommando. Here are is an example demonstrating two-way communication.
« Last Edit: December 26, 2017, 11:39:59 AM by jitterjames »
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)

Bahraini.75

  • Jr. Member
  • **
  • Posts: 33
  • Karma: 3
    • View Profile
Re: Need help
« Reply #2 on: December 29, 2017, 09:09:36 AM »
Thank you for your reply
I find other way to do this
https://youtu.be/ePmty0Vjz8Y
Its easy way but instead of Jarvis i use voxcommando by useing batch file
I hope i help someone here with this link

My question now is how Can i ask voxcommando to do this

https://youtu.be/55lfdlVZHOc
 
I hope i get someone help me

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Need help
« Reply #3 on: December 29, 2017, 10:13:18 AM »

My question now is how Can i ask voxcommando to do this

https://youtu.be/55lfdlVZHOc
 

What exactly do you want to do?  Please don't just post a video link.  Explain your intentions and what specifically you need help with.

Bahraini.75

  • Jr. Member
  • **
  • Posts: 33
  • Karma: 3
    • View Profile
Re: Need help
« Reply #4 on: December 29, 2017, 10:42:32 AM »
Hi there
What i want is
When i ask vox turn light on or only the word “light“  vox reply me which light or which room or do you want me to turn it on or off “like conversation between me and vox”


Thank you for your reply

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Need help
« Reply #5 on: December 29, 2017, 11:13:33 AM »
If you look around the forum a bit you'll find this has been discussed a few times.

Here is an example of something similar: http://voxcommando.com/forum/index.php?topic=2705.msg23191

This is not really something that VoxCommando does very well, although there are ways to accomplish what you want.  You need to learn how to use VoxCommando and then get a bit creative.

You can use some combination of Logic blocks, payload XML, variables, enabling/disabling groups, and possibly commands that require confirmation to get it working the way you want.

But the truth is that this type of "conversation" with the computer , while amusing, is extremely impractical.  It is so much easier and more efficient if you want to turn a light on to just say "Turn the bathroom light on".  It may give you a warm fuzzy feeling to be able to do it long way with a back and forth conversation with the computer, but after doing that once or twice you will find it a lot of work for nothing, both to create the command and then to use it.  Also voice recognition works much much better when you use full sentences.  If you have short commands like "lights" or "bathroom" you will find that you get a lot of "false positives".

Important basics:
http://voxcommando.com/forum/index.php?topic=1004.0

Logic Block

Command Confirmation

Groups
See also: http://voxcommando.com/mediawiki/index.php?title=Actions#Enable

User Variables

Payloads

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Need help
« Reply #6 on: December 29, 2017, 11:34:02 AM »
Here is one way to do what you want, assuming you have Wemo switches named: office, bedroom, bathroom, desk, kitchen, basement, entrance, attic

You can say "turn the lights on" or just "lights on" or "turn lights off".  Then you are prompted to say which lights.

If you want to just be able to say "lights" and then specify which lights, and then specify whether they are on or off, you must understand the example and then extend the concept, but I really don't recommend anyone try to do that.

Note: if you don't know what to do with the XML below please read: http://voxcommando.com/mediawiki/index.php?title=XML_on_the_forum

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.3.8-->
<groupCollection open="True" name="Lights the hard way">
  <commandGroup open="True" name="initiate" enabled="True" prefix="" priority="0" requiredProcess="" description="">
    <command id="414" name="Turn lights on" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
      <action>
        <cmdType>Results.SetVar</cmdType>
        <params>
          <param>LightState</param>
          <param>{1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <params>
          <param>Which lights would you like to turn {1}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>Group.Enable</cmdType>
        <params>
          <param>What lights?</param>
          <param>30</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <phrase optional="true">turn, turn the</phrase>
      <phrase>lights</phrase>
      <payloadList>on, off</payloadList>
    </command>
  </commandGroup>
  <commandGroup open="True" name="What lights?" enabled="False" prefix="" priority="0" requiredProcess="" description="">
    <command id="415" name="what lights: {1}" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
      <action>
        <cmdType>OSD.ShowText</cmdType>
        <params>
          <param>Okay turning the {1} lights {Var.LightState}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <if ifBlockDisabled="False" ifNot="False">
        <ifType>(A)==(B)</ifType>
        <ifParams>{Var.LightState}&amp;&amp;on</ifParams>
        <then>
          <action>
            <cmdType>Wemo.SetState</cmdType>
            <params>
              <param>{1}</param>
              <param>{Var.LightState}</param>
            </params>
            <cmdRepeat>1</cmdRepeat>
          </action>
        </then>
        <else />
      </if>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>Okay turning the {1} lights {Var.LightState}</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <phrase optional="true">the</phrase>
      <payloadList>office, bedroom, bathroom, desk, kitchen, basement, entrance, attic</payloadList>
      <phrase optional="true">lights, spot, floods, lamp</phrase>
    </command>
  </commandGroup>
</groupCollection>
« Last Edit: December 29, 2017, 04:47:02 PM by nime5ter »

Bahraini.75

  • Jr. Member
  • **
  • Posts: 33
  • Karma: 3
    • View Profile
Re: Need help
« Reply #7 on: December 29, 2017, 12:15:07 PM »

Thank you for helping me