Author Topic: Prefix Question  (Read 2316 times)

0 Members and 3 Guests are viewing this topic.

Hiryu

  • Contributor
  • ***
  • Posts: 53
  • Karma: 2
    • View Profile
Prefix Question
« on: December 22, 2014, 07:58:12 PM »
Is there a way to make the prefix act a bit like Siri or Google Now, in that you can pause after invoking the prefix (say Jarvis), and that VC will be listening for a command for a window of time?

I ask only I've been conditioned to invoke first, and then say the command, rather than having to formulate the command and say everything in one go.

Ideally for me, VC would normally be on Standby (yellow status). I would want to invoke the prefix, there would be a tone to let me know VC is listening, and then be given a window of time (say 30 seconds or a minute) in which to to say the command.  After which, VC would go back into standby. 

Not sure how to go about it, but thought I would get some advice and pointers and then try to figure it out from there.  Thanks!

Hiryu

  • Contributor
  • ***
  • Posts: 53
  • Karma: 2
    • View Profile
Re: Prefix Question
« Reply #1 on: December 22, 2014, 08:29:17 PM »
Sorry -- also another question.  TTSSpeakSync -- is it by nature uninterruptable?

I use it in some commands so that VC isn't talking over itself and executing speech in order, one after another.  But I can't seem to use "Stop talking" (TTS.Stop) over VC while it is saying something with TTS.SpeakSync.  I think it works when it is just normal TTS.Speak.

Advice?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Prefix Question
« Reply #2 on: December 22, 2014, 08:53:29 PM »
Is there a way to make the prefix act a bit like Siri or Google Now, in that you can pause after invoking the prefix (say Jarvis), and that VC will be listening for a command for a window of time?

I ask only I've been conditioned to invoke first, and then say the command, rather than having to formulate the command and say everything in one go.

Ideally for me, VC would normally be on Standby (yellow status). I would want to invoke the prefix, there would be a tone to let me know VC is listening, and then be given a window of time (say 30 seconds or a minute) in which to to say the command.  After which, VC would go back into standby. 

Not sure how to go about it, but thought I would get some advice and pointers and then try to figure it out from there.  Thanks!
No, not with a prefix, because that is not how prefix works.  You are talking about the pay attention command (which executes the action VC.On).  You can use a phrase like "Jarvis" for the pay attention command and set VC to automatically return to standby after a period of time in the options.

Of course you can also play a wav file either by using an action in your command or by setting this in the options, where you can specify sounds for On, Off, Standby or when a command is recognized.

I believe prefix mode is better though.  If you can get used to it.  Much easier and faster, and using a prefix also improves recognition accuracy for the rest of your command.
« Last Edit: December 22, 2014, 09:43:27 PM by jitterjames »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Prefix Question
« Reply #3 on: December 22, 2014, 08:58:31 PM »
Sorry -- also another question.  TTSSpeakSync -- is it by nature uninterruptable?

I use it in some commands so that VC isn't talking over itself and executing speech in order, one after another.  But I can't seem to use "Stop talking" (TTS.Stop) over VC while it is saying something with TTS.SpeakSync.  I think it works when it is just normal TTS.Speak.

Advice?
That is correct.  That is the nature of SpeakSync.

Just use Speak.  It will not interrupt or talk over itself.  Multiple TTS.Speak actions will normally be spoken correctly in order. (You are basically just queuing up more text for it to say.)  You do need to use SpeakSync though if you want to wait until the TTS is finished before doing something else, such as turning the volume back up, or showing an OSD message etc.

Soda97

  • Contributor
  • ***
  • Posts: 69
  • Karma: 1
    • View Profile
Re: Prefix Question
« Reply #4 on: January 13, 2015, 11:32:49 AM »
Can speak or play sound after a prefix is recognized so that I can make it say "yes sir" and sounds more AI like?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Prefix Question
« Reply #5 on: January 13, 2015, 12:08:07 PM »
You are thinking of the pay attention command. It does not make sense for a prefix. See my post above: http://voxcommando.com/forum/index.php?topic=1925.msg16580#msg16580

Soda97

  • Contributor
  • ***
  • Posts: 69
  • Karma: 1
    • View Profile
Re: Prefix Question
« Reply #6 on: January 13, 2015, 01:50:55 PM »
Sorry, you're right.  It didn't work before maybe coz I didn't restart it.

How to return to standby if no command given after 3 sec?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Prefix Question
« Reply #7 on: January 13, 2015, 01:55:17 PM »
How to return to standby if no command given after 3 sec?

Use "Idle Event" in the main options tab.

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

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Re: Prefix Question
« Reply #8 on: January 13, 2015, 02:00:03 PM »
take a look at "Idle-Event" in the Optons-Tab

http://voxcommando.com/mediawiki/index.php?title=Options#Idle_Event
***********  get excited and make things  **********

Soda97

  • Contributor
  • ***
  • Posts: 69
  • Karma: 1
    • View Profile
Re: Prefix Question
« Reply #9 on: January 13, 2015, 02:09:41 PM »
Thank you, got it.

But it cancel out VC.OnSingle right? 

It doesn't return back if I do issue a command, only after x sec.


Never mind scratch that. It works after a restart.
« Last Edit: January 13, 2015, 02:16:17 PM by Soda97 »