VoiceAttack
General => How Do I? => Topic started by: Woofington on May 28, 2016, 07:44:04 PM
-
So here is an example, I want to be able to say "Thank you computer" and have my voice attack command respond with one of many possible responses such as "You're welcome." or "Not a problem" etc etc
I can think of a couple ways to go about this (setting a random value and doing conditionals for each value with a text-to-speech variant in each condition) but I was wondering if there was a defacto simple/gold standard way to do this?
-
Put them all in the same Say command, separated by a semicolon ;
If you use sounds, you'll have to use conditional branches.
-
No not variants to what I say, variants to what my text to speech responds with to a single command.
-
Right. Here's an example from mine, when I say "thanks" or thank you". In the box for the text that is would say I have:
You're welcome;Quite welcome;yes sir;absolutely
-
Oh I see thanks! Testing around its too bad you can't use optional words too for a bit of east in writing more natural variations.
-
Oh I see thanks! Testing around its too bad you can't use optional words too for a bit of east in writing more natural variations.
You can, it's in the documentation (http://www.voiceattack.com/files/voiceattackhelp.html) too, under "Dynamic command sections"
You're [quite;] welcome;yes sir
Will execute a command when "You're welcome", "You're quite welcome", or "yes sir" are spoken.
-
No I understand that, but I am saying I would like the text to speech module (when my computer responds to a command) to accept option parameters.
-
The text right above the TTS input box actually states "Note that you can use square brackets for dynamic responses (see documentation for more info)", which works in the exact same way the commands do.
I.E.
You're [quite;] welcome;yes sir
Will randomly speak "You're welcome", "You're quite welcome", or "yes sir".
I'll admit there isn't actually a section in the documentation for "dynamic responses", but the syntax is the same as "Dynamic command sections".
-
I am an idiot, sorry guys!
edit: nvm
-
edit: nvm
Is that not what you're looking for then?
-
Yeah I got it, my edit was for something else, thanks for the help guys!