Skip to main content

Vocola2 (for Natlink)

Project description

Synopsis

Vocola is a voice command language — a language for creating commands to control a computer by voice — created by Rick Mohr. Two versions are available: Vocola 2 works with Dragon NaturallySpeaking (DNS) and Vocola 3 works with Windows Speech Recognition (WSR) on Windows 8, 7, and Vista. This repository contains the source code for Vocola 2. While DNS and WSR handle the heavy lifting, Vocola (pronounced "vo-CO-luh") concentrates on features and ease of use. In particular, Vocola offers the following:

Easy to use:

  • Simple, concise command syntax—most commands are one-liners
  • Easy to view and modify commands
  • Changed commands are loaded automatically
  • Large set of useful sample commands
  • Free

Features:

  • Create commands which capture any dictated words
  • Use concise number ranges, optional words, and inline word lists
  • Specify different actions for variable words
  • Speak a continuous sequence of commands
  • Re-use work with include files and user-defined functions

Complete documentation can be found at the Vocola website.

Examples

Here are four voice commands defined in Vocola:

Copy That = {Ctrl+c};
Copy to WordPad = {Ctrl+a}{Ctrl+c} AppBringUp(WordPad);
1..40 (Left | Right | Up | Down) = {$2_$1};
Sort by (Date=e | Sender=n | Subject=s) = {Alt+v}o $1;

The first is a simple keystroke command—saying "Copy That" sends the keystroke Control-C, which copies the current selection to the clipboard. The great majority of commands needed for controlling a computer by voice are simple keystroke commands like this.

The second command, invoked by saying "Copy to WordPad", copies a window of text (Control-A selects all text and Control-C copies it) and brings up the WordPad editor (using the built-in function AppBringUp).

The third command allows controlling the cursor, by saying for example "3 Left" to move left three characters, or "6 Down" to move down six lines. Spoken words match variable terms on the left and are substituted into the keystroke sequence on the right. For example, when saying "3 Left" the spoken "3" matches the numeric range 1..40 and the spoken "Left" matches the alternative set (Left | Right | Up | Down). The keystroke sequence {Left 3} is constructed and sent, and the cursor moves left three characters.

The fourth command allows sorting messages in Mozilla's Thunderbird Mailer, by saying "Sort by Date", "Sort by Sender", or "Sort by Subject". The matched word "Date", "Sender", or "Subject", causes the appropriate keystroke "e", "n", or "s" to be inserted into the keystroke sequence, choosing the desired option in Thunderbird's View > Sort menu.

Why a custom voice command language?

Other systems for defining voice commands are grafted onto existing programming languages. This means you can program any behavior you want, but you're stuck with the syntactic overhead of the base language. In contrast, Vocola is designed specifically as a voice command language, not as a general-purpose programming language. This means you can write quickly and concisely the great majority of voice commands you need, and use another language in the few cases where you need more power.

When I (Rick) switched from the Dragon Macro Language to Vocola I was able to convert all but two of my 200+ Dragon macros (achieving a source line count reduction of roughly 6:1) and at this writing use well over 1,000 Vocola commands.

Installation

Natlink and Vocola2 have been upgraded to Python 3

-First install Natlink to the latest version.

The current Vocola2 is partly stable, and can be installed via pip: -pip install vocola2

Instructions for installing the latest released version can be found at http://vocola.net/v2/InstallVocola.asp

Instructions for the developers

To install the version checked out in your git repository, -first uninstall vocola:

pip uninstall vocola2

-In your root of your repository:

pip install -e .

-You can now edit the files in your (Forked) repository, the changes will reflect the state of you packages in the site-packages directory immediately.

-When you are satisfied with a release, take the following steps: -change the release number in init.py of vocola2.

  • update the version number requirement of any dependancies in pyproject.toml.. -do a local pip uninstall vocola2 -commit and push your git directory

Then:

flit build
flit publish

Tests

To be written: describe and show how to run the tests with code examples.

Contributors

To be written: let people know how they can dive into the project, include important links to things like issue trackers, irc, twitter accounts if applicable. Contact contributors.

License

MIT (see LICENSE.txt)

Location of Samples

sample commands installed with Vocolas2 will be installed in: the Lib\site-packages\vocola2\samples subfolder of your Python installation. Good ones to start with include msedge.vcl for sending commands to Microsoft Edge.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vocola2-3.1.10.dev1.tar.gz (751.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vocola2-3.1.10.dev1-py3-none-any.whl (770.2 kB view details)

Uploaded Python 3

File details

Details for the file vocola2-3.1.10.dev1.tar.gz.

File metadata

  • Download URL: vocola2-3.1.10.dev1.tar.gz
  • Upload date:
  • Size: 751.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vocola2-3.1.10.dev1.tar.gz
Algorithm Hash digest
SHA256 7f7994a18ee97c63c3cf0bbdb900086b7370728e477ca7f87a2c9cd36c7035d6
MD5 f8a19aaaab1083786cb93b5a8cc5f7a2
BLAKE2b-256 6053ae99cc80e4c874c9266c34a54d25161d7a504f693eacb6802293e90efef4

See more details on using hashes here.

Provenance

The following attestation bundles were made for vocola2-3.1.10.dev1.tar.gz:

Publisher: python-publish.yml on dictation-toolbox/Vocola2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vocola2-3.1.10.dev1-py3-none-any.whl.

File metadata

  • Download URL: vocola2-3.1.10.dev1-py3-none-any.whl
  • Upload date:
  • Size: 770.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for vocola2-3.1.10.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ffc01cbbc8777635b1379d3567d91fb16d9035ea3edf12325e1363d866c7402
MD5 417454bfb460386545e455fcffaa6448
BLAKE2b-256 79542845aa194b98805c83cbe6a776a11ca5da6723aa537f09466edab71a8f65

See more details on using hashes here.

Provenance

The following attestation bundles were made for vocola2-3.1.10.dev1-py3-none-any.whl:

Publisher: python-publish.yml on dictation-toolbox/Vocola2

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page