![]() |
KnowBrainer Speech Recognition | ![]() |


|
Topic Title: Empty list element Topic Summary: optional element in command name possible? Created On: 01/02/2012 10:40 AM Status: Post and Reply |
|
![]() |
- Stephan Kuepper | - 01/02/2012 10:40 AM |
![]() |
- Matt Chambers | - 01/02/2012 01:19 PM |
![]() |
- Stephan Kuepper | - 01/04/2012 04:03 AM |
![]() |
- Matt Chambers | - 01/04/2012 09:06 AM |
![]() |
- Stephan Kuepper | - 01/04/2012 10:44 AM |
![]() |
- Matt Chambers | - 01/04/2012 11:13 AM |
![]() |
- monkey8 | - 01/04/2012 12:51 PM |
![]() |
- Stephan Kuepper | - 01/05/2012 03:45 AM |
![]() |
- mdl | - 03/17/2012 01:48 AM |
![]() |
- Stephan Kuepper | - 03/19/2012 04:38 AM |
|
|
|
|
Hi all, in a command name that utilises a list, would it be possible to have the option of an empty entry? I'd like to write command that can be issued with or without saying "please". I'm thinking of a list <please> that contains the entry "Please" as well as an empty line so I can choose whether to say "please" or not. I'd like to use that list in a variety of commands, therefore a list consisting of "command" and "command please" would only scratch the surface. I tried an empty line between two list entries, but that doesn't work. A double \\ behind an entry doesn't work either (should equate a silent spoken form). Any ideas, anyone? Stephan ------------------------- www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de |
|
|
|
|
|
|
|
|
As far as I know, it isn't possible. You could create the command with please in the name, then clone it without. Or you could use please in the list, like: 2/2 2/2 please Or you could use Vocola. :-) Matt
------------------------- |
|
|
|
|
|
|
|
|
Hi Matt, thank you for the reply. Vocola is not an option. It doesn't even work in German. With a list 2/2 you mean adding a spoken form (the / should be \\ in DNS 11)? Good idea in principle. I found that it works in some environments, but not in all. I tried a simple Sendkeys Listvar1 command which works fine if the list contains no spoken forms but fails when it contains them. Fortunately there are other possibilities in this case. Happy New Year, Stephan ------------------------- www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de |
|
|
|
|
|
|
|
|
Try the Mid instruction, as in SendKeys Mid(ListVar1,1,InStr(ListVar1,"\" ------------------------- |
|
|
|
|
|
|
|
|
Matt, might be due to the autoformatting, but I can't get it to work. I take it that the smiley should be a closed bracket ) Could it be that there should be two backslashes instead of one to conform with DNS 11 new vocabulary format? My list for testing looks like this: Wort 1\\wort eins Stephan ------------------------- www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de |
|
|
|
|
|
|
|
|
I don't know, except that I agree about the smiley! I'm using 11.5, so I doubt that is the problem, although my lists have only one "\", perhaps because they were imported from earlier versions? You might take a look in the help file for the Mid and Instr iinstructions. ------------------------- |
|
|
|
|
|
|
|
|
Stephan the delimiting character that you need to use with the Mid line of script that Matt has given you is a single backslash (\) and would need to be a single backslash for the line of script to work. All that the Mid instruction does is extract the string one side of the backslash. Lindsay going back to your original question, I have often wished for something similar but unfortunately you can't have an empty entry in a normal list or a complex list as a spoken form. With a complex list you can have an empty entry as a written form but not as a spoken form. ------------------------- |
|
|
|
|
|
|
|
|
Thank you Lindsay, the single backslash did the trick. In the words of a British sports reporter, I learned things that I never even knew! Stephan ------------------------- www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de |
|
|
|
|
|
|
|
|
Vocola works fine in German to the best of my knowledge. The main commands (e.g., "load voice commands"
|
|
|
|
|
|
|
|
|
Thank you for the hint, but Vocola is not an option for various reasons. Best, Stephan ------------------------- www.egs-vertrieb.de - Speech Recognition Blog - Forum: www.immer-eine-Nuance-besser.de |
|
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2013 FuseTalk™ Inc. All rights reserved.