Author Topic: Unusal problem with listen command  (Read 4968 times)

0 Members and 1 Guest are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Unusal problem with listen command
« Reply #15 on: January 15, 2014, 05:05:43 PM »
I just tested with this command and the trial of the brian voice and it works fine for me for some reason.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="1022" name="Pay attention" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="" loopMax="" description="">
  <action>
    <cmdType>VC.On</cmdType>
    <cmdString />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <cmdString>yes</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Listen,start listening, pay attention</phrase>
</command>

But this is not the preferred way to do it.  It would be better to use the TTS.SpeakSync action first, and then do VC.On

philby85

  • $upporter
  • Jr. Member
  • *****
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Unusal problem with listen command
« Reply #16 on: January 15, 2014, 05:14:05 PM »
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="31" name="Listen" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>VC.On</cmdType>
    <cmdString />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <action>
    <cmdType>TTS.Speak</cmdType>
    <cmdString>yes</cmdString>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>computer, start listening, pay attention</phrase>
  <event>Amulet.On</event>
</command>


Thanks James for your help. I will try as suggested.

cheers

Phil
« Last Edit: January 21, 2015, 12:40:23 PM by nime5ter »

philby85

  • $upporter
  • Jr. Member
  • *****
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Unusal problem with listen command
« Reply #17 on: January 15, 2014, 05:18:38 PM »
Hi James,

I tried as you suggested and Yes worked fine.

cheers

Phil

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Unusal problem with listen command
« Reply #18 on: January 16, 2014, 05:18:22 AM »
Hi Phil,

here is a listen command with a bit more human touch. With this command VC will give you diffrent answers, depends on how you ask for listen. Example: If you say "good morning computer", VC responds with "good morning Phil, I hope you slept well" or when you say "good evening computer" it responds with "good evening Phil ...".
This command use a "optional" payloadList at first, so it is not necessary to use "good morning, ..." if you want to trigger the command. If you use only "listen", "pay attention" or "computer" ..., VC switch to ON-Mode without any response.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<command id="160" name="Listen" enabled="true" alwaysOn="True" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{1}&amp;&amp;good morning</ifParams>
    <then>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <cmdString>{1} Phil, I hope you slept well.</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{1}&amp;&amp;good evening</ifParams>
    <then>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <cmdString>{1} Sir, nice to hear you. | {1}, nice to meet you.</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)==(B)</ifType>
    <ifParams>{1}&amp;&amp;good afternoon</ifParams>
    <then>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <cmdString>{1} Sir, nice to hear you. | {1}, nice to meet you.</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <if ifBlockDisabled="False" ifNot="False">
    <ifType>(A)Contains(B)</ifType>
    <ifParams>hi-hello&amp;&amp;{1}</ifParams>
    <then>
      <action>
        <cmdType>TTS.SpeakSync</cmdType>
        <cmdString>{1} Phil, nice to hear you. | {1} Phil, nice to meet you.</cmdString>
        <cmdRepeat>1</cmdRepeat>
      </action>
    </then>
    <else />
  </if>
  <action>
    <cmdType>VC.On</cmdType>
    <cmdString />
    <cmdRepeat>1</cmdRepeat>
  </action>
  <payloadList optional="true">good morning, good afternoon, good evening, hi, hello</payloadList>
  <phrase>start listening, pay attention, listen, computer</phrase>
</command>


have fun

Kalle
***********  get excited and make things  **********

philby85

  • $upporter
  • Jr. Member
  • *****
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Unusal problem with listen command
« Reply #19 on: January 17, 2014, 12:15:36 AM »
Thank you Kalle,

I appreciate all your help. I have copied this command and I am enjoying the human touch aspect. Touches like this, make it all seem more interactive.

Thanks again !

cheers

Phil

Stealth

  • Jr. Member
  • **
  • Posts: 40
  • Karma: 1
    • View Profile
Re: Unusal problem with listen command
« Reply #20 on: December 27, 2014, 06:48:26 AM »
Hi I'm having a similar issue when trying to remove the prefix option

I have upgraded my system to use the Amulet remote control mic and it works well using the prefix mode.  However when I remove the check mark from the prefix mode box in options I do a full restart, raise the remote speak a command which appears to be recognised on but the command wont action.

If I put the check mark back in again, restart speak the command, this time with the prefix the command actions ok.

Can anyone help?

Thanks

Steve

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Unusal problem with listen command
« Reply #21 on: December 27, 2014, 08:44:47 AM »
I don't think this is related to the problem above.

To give a command without a prefix VoxCommando must be ON (green).

If VoxCommando is ON then you can give a command with or without a prefix.

If VoxCommando is green and you are giving a command and it is recognising you but not doing the command then something is odd.

In that case:

1 Pay attention to what is appearing in the history panel of VoxCommando.
2 Tell us what version number of VC you are using.
3 Post a complete log.

http://voxcommando.com/mediawiki/index.php?title=Options#Prefix_Mode

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

Stealth

  • Jr. Member
  • **
  • Posts: 40
  • Karma: 1
    • View Profile
Re: Unusal problem with listen command
« Reply #22 on: December 28, 2014, 03:37:03 AM »
James thank you for your reply. I re-installed the software and changed the idle timeout and it now seems to be working ok.

Kindest regards

Steve