News:

There is a soft-mute function which we use with the commands like "What song is this?" There is one for system volume, one for each of: MediaMonkey, XBMC, iTunes, MediaPortal.

Main Menu

Commands and Responses - I just moved over from VA.

Started by Cassan0va, June 09, 2016, 05:42:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nime5ter

#15
Along the lines of:

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.1.9-->
<command id="132" name="open door lock" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="This command assumes that Homeseer returns a value of 0 when &quot;unlocked&quot; and 1 when &quot;locked&quot;. It also assumes that if the value isn't 0, it will be 1. But you don't need to use the &quot;else&quot;. You could use multiple &quot;if&quot; cases instead, as in your pseudo-code. Just leave the Else section empty and add more logic blocks as desired.">
  <action>
    <cmdType>Scrape</cmdType>
    <params>
      <param>http://(HS3 URL)/HomeSeer_REST_API.aspx?function=getdeviceinfo&amp;param1=(DEVICE NAME OF YOUR LOCK)</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>Results.RegEx</cmdType>
    <params>
      <param>value="(\d)"</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{Match.1}&amp;&amp;0</ifParams>
    <then>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>The door is already open.|No need. Your door was not locked.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else>
      <action>
        <cmdType>Scrape</cmdType>
        <params>
          <param>(URL to open the door lock)</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
      <action>
        <cmdType>TTS.Speak</cmdType>
        <params>
          <param>OK. I'm unlocking the door.|Unlocking door.|Your door is now open.</param>
        </params>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </else>
  </if>
  <phrase>Open the door, Unlock the door</phrase>
</command>
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)

Cassan0va

#16
You are prob right, gonna play around with kodi and do some more house hold tasks. Read the news, time, events, calendar etc.

Just to grasp VC, just feels abit overwhelming.

Well recording is an option, wanted the feel of more natural speaking or even AI sort.

nime5ter

#17
I don't know whether you want English feedback or another language, but some of Ivona's voices are quite good  (no TTS voice is perfect).

Be sure to get a SAPI5 voice. Text Aloud sells individual Ivona SAPI5 voices for US$45, which is not a terrible price.

Once you've installed the voice, it should show up in the TTS plugin window the next time you open VC.

You can also experiment with adjusting the voice synthesis rate (speed), pitch, and so on if you are not happy with the default settings.

(e.g. http://voxcommando.com/forum/index.php?topic=2138.msg18558#msg18558)

You could always use TTS for some situations but record some of the feedback, of course.

I cannot stop you from feeling overwhelmed, but I think if you are not in a rush to finish your ambitious project you will have more fun with it.

Speaking only for myself -- finding a solution to a challenging problem and learning new ways to use the program is pretty much my favourite hobby.
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)