KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: why is creating a scripting command making Dragon microphone ignore me completely?
Topic Summary: new at scripting
Created On: 10/15/2008 07:00 PM
Status: Post and Reply
Linear : Threading : Single : Branch
Keyword
 10/15/2008 07:00 PM
User is offline View Users Profile Print this message

Author Icon
robotarms
Junior Member

Posts: 36
Joined: 09/27/2008

 I don't know anything about scripting.

do I have to do something other than just paste in something like

"

HeardWord "switch","to","Skype"
Wait 1000
SendKeys "{Alt+c}m{Enter}"
TTSPlayString "mute"

 I'm guessing that I put this text in between the words main sub and the words end sub because when I put it under the line it said syntax error.

all is fine until I say the command I just made.  Then that colored bar next to my microphone moves around so it can hear sound but it won't command anything I say.  Dragon seems to have gone dead.restarting my computer is the only thingI can do before dragon to recognize commands/speech again.. I have tried this three times with the same outcome



-------------------------
Dns 8 pro+Kb dellxps400 xp
 10/16/2008 09:08 PM
User is offline View Users Profile Print this message

Author Icon
Lunis Orcutt
Top-Tier Member

Posts: 22771
Joined: 10/01/2006

The command you're quoting is designed to be cut and pasted into KnowBrainer which would require opening the KB 2007/8 Command Browser, clicking the Add button, pasting the script and naming your command. In order to use this command in DNS Pro you would have to create a new Advanced-Scripting command and paste the green text in between Sub Main and End Sub in the following form (note that KnowBrainer scripting is a little different from DNS scripting):

Sub Main
         HeardWord "switch","to","Skype"
         Wait 1
         SendDragonKeys "{Alt+c}m{Enter}"
         TTSPlayString "mute"
End Sub

Because we contribute example commands in both KnowBrainer and NaturallySpeaking you might find it easier to click the Reply to Post button to the original question and read the post to verify which way the command was written. We will always utilize
Sub Main and End Sub when creating a DNS Example Command and we will usually maintain the proper spacing. Since you are using both programs you have both options available to you. If you'd like to learn more about command writing a KnowBrainer, check out our VerbalBasic Manual. If you'd like to learn more about command writing in DNS Pro, we recommend Larry Allen’s Scripting for Dragon NaturallySpeaking 9.

-------------------------


Click KB 2012 REV D to Download a 30 Day Evaluation of KnowBrainer 2012
Click SpeechStart+ to Download a 15 Day Evaluation of SpeechStart+

Statistics
27429 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 0 users logged in.
The most users ever online was 2028 on 04/05/2013 at 07:36 PM.
There are currently 185 guests browsing this forum, which makes a total of 185 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2013 FuseTalk™ Inc. All rights reserved.