![]() |
KnowBrainer Speech Recognition | ![]() |
Topic Title: HeardWord with <dictation> Topic Summary: How does one combine the two in a script Created On: 08/11/2021 10:52 AM Status: Post and Reply |
|
![]() |
![]() |
- Edgar | - 08/11/2021 10:52 AM |
![]() |
![]() |
- Alan Cantor | - 08/11/2021 12:44 PM |
![]() |
![]() |
- Edgar | - 08/11/2021 02:37 PM |
![]() |
![]() |
- PG LTU | - 08/12/2021 10:18 AM |
![]() |
![]() |
- Edgar | - 08/12/2021 12:27 PM |
![]() |
![]() |
- Alan Cantor | - 08/12/2021 01:26 PM |
![]() |
![]() |
- Edgar | - 08/12/2021 03:14 PM |
![]() |
![]() |
- wristofdoom | - 08/24/2021 01:19 PM |
![]() |
![]() |
- monkey8 | - 08/12/2021 03:36 PM |
![]() |
![]() |
- Edgar | - 08/12/2021 03:44 PM |
![]() |
![]() |
- monkey8 | - 08/12/2021 03:52 PM |
![]() |
![]() |
- monkey8 | - 08/12/2021 05:00 PM |
![]() |
![]() |
- PG LTU | - 08/12/2021 05:22 PM |
![]() |
![]() |
- monkey8 | - 08/14/2021 11:28 AM |
![]() |
![]() |
- Edgar | - 08/12/2021 07:21 PM |
![]() |
![]() |
- Edgar | - 08/14/2021 03:14 PM |
![]() |
![]() |
- Mav | - 08/24/2021 03:07 AM |
![]() |
![]() |
- Edgar | - 08/24/2021 10:53 AM |
![]() |
![]() |
- Mav | - 08/25/2021 04:02 AM |
![]() |
![]() |
- Edgar | - 08/24/2021 02:42 PM |
![]() |
![]() |
- wristofdoom | - 08/24/2021 07:26 PM |
![]() |
|
That was my exact experience. I tested it on a single word - it worked fine. I sent it off to my beta tester who immediately tried it on three words and it failed. I have now played around with splitting up <dictation> - still no success: Sub Main Dim selection, another As String Dim words() As String' dimension a string array Dim dictation As String Dim k As Integer Dim result As String
selection = Chr(34) & "select" & Chr(34) & ", " dictation=ListVar2 words=Split(dictation," ") For k = 0 To UBound(words) selection = selection & Chr(34) & words(k) & Chr(34) & ", " Next selection = Mid(selection, 1, Len(selection) - 2) ' MsgBox selection' string is now built perfectly: ""select", "over", "the"" ' HeardWord selection' does not work another = "select over the" ' HeardWord another' does not work 'HeardWord "select", "over", "the" ' works just fine Wait 0.4 ' SendKeys "{Esc}", 1 Select Case ListVar1 ' […] Case "Strikethrough", "Strike Out", "Strikeout" SendKeys "%s", 1 End Select End Sub ------------------------- -Edgar |
|
|
|
![]() |
|
I wonder if EmulateRecognition would work around this restriction?
Yes, of course because it takes but a single string sequence that can include spaces and is easily accessible in the command browser without referencing or registering anything. So, using the dictation variable and some processing to come up with a string to "recognize" is a natural.
In fact, that was the first "real" reason I had to come up with pgEmulate as detailed more here because I was using AutoHotKey to recognize a command that then passed an utterance to the recognizer. So, if I said "Strikethrough|Strikeout something" I first send the "select something" to Dragon, and if that something is "that" it selects the last utterance like saying "select that" or else it has Dragon search the viewport for the "something" to select, and then apply the strikethrough|strikeout in your case or uppercasing, camelcasing, titlecasing, etc. I was implementing. -------------------------
|
|
|
|
![]() |
|
I cannot get even the simplest Advanced Scripting command to compile with EmulateRecognition: Sub Main EmulateRecognition "copy that" End Sub EmulateRecognition -> **ERROR** (10551) Expecting a constant, vulvar name or function name. It's like I might be missing a Reference but I have tried a shotgun approach of adding all of the dragon-related references without any success. BTW I am running DPI 15.3 but I cannot imagine that something this simple is broken in this version of Dragon. ------------------------- -Edgar |
|
|
|
FuseTalk Standard Edition v4.0 - © 1999-2022 FuseTalk™ Inc. All rights reserved.