Author Topic: Help needed on optional spoken part in command  (Read 3668 times)

Richie67

  • Guest
Help needed on optional spoken part in command
« on: August 02, 2017, 02:34:36 PM »
Hello everybody this is my first post and question on the forum.

So this is the command I have:

Magic Avenger [1..9] [1..4] Check In
 
The result of course is being able to say "Magic Avenger (1-1 until 9-4) Check In.
What I like to do is make the part Avenger [1..9] [1..4] optional.
So this is what I thought I had to do:

Magic [Avenger;] [1..9;] [1..4;] Check In

But this doesn't work, as soon as I enter the last (red) semicolon i get this notification:

Multipart commands cannot contain duplicate entries. Please remove any duplicate entries.

So what's the way to go here?

Thanks in advance :D


TheThingIs

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 278
    • HCS Voicepacks
Re: Help needed on optional spoken part in command
« Reply #1 on: August 02, 2017, 02:58:15 PM »
Try:

Magic Avenger [1..94] Check In
The Singularity profile - One profile to rule them all and at HCS we bound them ;)

You see, TheThingIs, eventually you'll be allright.

megs

  • Guest
Re: Help needed on optional spoken part in command
« Reply #2 on: August 03, 2017, 04:55:49 AM »
in fact 1..4 are duplicate entries with 1..4..9 when all of them a optionnals, if all of them are optionals the computer cant know if it is the first optional part, or the other... you must do a choice.
try to fixe first part, and set optional second part.

in efficient way, if you want to get a number from 1 to 94 do TheThingIs solution.

or make more than one command.... you should do this:
Code: [Select]
test [avenger;too;titi;][1..9;null;0][1..4;] check in ( 1..9;null;0 needed, next 1..4 can be set with first null;0 )
test [avenger;too;titi;] check in ( alone without ranges but avenger possible)


or all in one:
Code: [Select]
test [avenger;too;titi;][1 1;1 2;1 3;1 4;1 5;...................;9 4;] check inin this way there is no conficts...
« Last Edit: August 03, 2017, 05:33:01 AM by megs »

Richie67

  • Guest
Re: Help needed on optional spoken part in command
« Reply #3 on: August 03, 2017, 11:28:54 AM »
Thank for the response  :D

Try:

Magic Avenger [1..94] Check In

If this is used, wouldn't VA listen for i.e, eleven instead of one one, and ninety four instead of nine four?
Need to do some testing on that.....


or all in one:
Code: [Select]
test [avenger;too;titi;][1 1;1 2;1 3;1 4;1 5;...................;9 4;] check inin this way there is no conflicts...

I think this is the best way to do it, little bit more number typing, but who's counting ;)

Thanks again,
Richard

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Help needed on optional spoken part in command
« Reply #4 on: August 03, 2017, 11:41:46 AM »
Try:

Magic Avenger [1..94] Check In

If this is used, wouldn't VA listen for i.e, eleven instead of one one, and ninety four instead of nine four?
I actually had the same suggestion typed up that megs posted(In fact I had a VoiceAttack snippet to generate the variations for you), but TheThingIs provided the better option; The speech engine will accept "one one" as "11" and so forth, which means it'll both save you the typing, and work the way you wanted it to.