|
NaturallySpeaking Unofficial Information Pages
The Insider's Guide to Dragon NaturallySpeaking by Joel Gould |
Controlling NatSpeakLast Modified: October 14, 2000 One of the goals of Natlink was to allow people to control Dragon NaturallySpeaking by writing Python scripts. In the Natlink package, I include two scripts which hint at some of the power of the NatLink system. Remember to refer to natlink.txt for more details on the NatLink functions used in these scripts. In addition, I have developed a PowerPoint presentation, VoiceCoders.ppt, which describes how to use NatLink to replace Dragon NaturallySpeaking's dictation subsystem. Although I do not expect most people to go to that extreme, the presentation doe sinclude some useful information about how to control Dragon NaturallySpeaking from Python. trainuser.pyTrainuser.py is a Python program which uses NatLink to allow you to create and enroll a new user from recordings. Trainuser.py assumes that you have made recordings using the SaveWave program (which you will find in your c:\NatSpeak\programs directory). SaveWave creates recordings in NIST wave format (.nwv) where multiple utterances are save together in one file. SaveWave also save the transcripts in a companion file with a .lst extension. In order to use trainuser.py, you must follow these steps:
transcribe.pyTranscribe.py is a Python program which uses NatLink to transcribe a series of recordings made with the Dragon NaturallyMobile recorder. I write transcribe.py because I wanted to transcribe about 200 files which I recorded during my Grand Canyon raft trip. However, I did not want the transcriptions smashed together in one paragraph. Instead, I want each recording prefixed with the date and time the recording was made. In order to use transcribe.py, you must follow these steps:
CaveatsI am supplying these sample programs as examples of how to use NatLink. Both trainuser.py and transcribe.py actually do something useful but they are not robust enough for general use. You should be somewhat familiar with Python and NatLink before you try to use these programs. Refer to the file natlink.txt in the NatLinkSource directory. This file contains most of the documentation for NatLink functions. This web page (http://www.synapseadaptive.com/joel/ControllingNatSpeak.html) was last modified on October 14, 2000. The contents of this page are (c) Copyright 1998-1999 by Joel Gould. All Rights Reserved. See Copyright Information for more details. |