Home | Vocola 2 | Vocola 3 |
|
|
Follow these steps to create a Vocola extension project using the code in the simple example.
Follow these instructions to install and test an extension:
Note that if an extension uses a third-party DLL you must currently copy that DLL to the Vocola Bin installation folder.
Now you're ready to create voice commands which call your extension functions. For example, the following commands could be used to test the functions in the Simple extension:
Hello World = Simple.LogHelloWorld(); Subtract One From 1..9 = Simple.Subtract($1, 1); |
Saying "Hello World" writes the phrase "Hello, world!" to the Vocola log window. Saying "Subtract One From 7" sends the keystroke "6".
You can set breakpoints and examine variable values in extension code using the Visual Studio debugger. To launch the debugger choose Debug > Attach to Process... and select the Vocola.exe process. Or, another option is to call the .NET function System.Diagnostics.Debug.Break from the function you want to debug.
If you want to share your extension you can build beautiful documentation automatically using XML comments in your code, the Sandcastle Help File Builder, and the VocolaFunctions Sandcastle presentation style installed with Vocola. The function library documentation was built this way, and you can see the XML documentation comments in the function library source code. Further details available on request.