Speech recognition framework
Project description
Dragonfly offers a powerful Python interface to speech recognition and a high-level language object model to easily create and use voice commands. Dragonfly supports following speech recognition engines:
Dragon NaturallySpeaking (DNS), a product of Nuance
Windows Speech Recognition (WSR), included with Microsoft Windows Vista and freely available for Windows XP
Basic example
A very simple example of Dragonfly usage is to create a static voice command with a callback that will be called when the command is spoken. This is done as follows:
from dragonfly.all import Grammar, CompoundRule # Voice command rule combining spoken form and recognition processing. class ExampleRule(CompoundRule): spec = "do something computer" # Spoken form of command. def _process_recognition(self, node, extras): # Callback when command is spoken. print "Voice command spoken." # Create a grammar which contains and loads the command rule. grammar = Grammar("example grammar") # Create a grammar to contain the command rule. grammar.add_rule(ExampleRule()) # Add the command rule to the grammar. grammar.load() # Load the grammar.
The example above is very basic and doesn’t show any of Dragonfly’s exciting features, such as dynamic speech elements. To learn more about these, please take a look at the project’s documentation here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file dragonfly-0.6.4rc3.dev-r57.zip
.
File metadata
- Download URL: dragonfly-0.6.4rc3.dev-r57.zip
- Upload date:
- Size: 309.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46aaf139422551fc4cb4d495d387e2e9f82deca51509ad6e45fe64c98ff9c512 |
|
MD5 | a59f1a65f0525d3fc2d0f668ad1ecf11 |
|
BLAKE2b-256 | f60338593ee21f554fa4e71df0dc8494d57f3d77aeaa04e0661ef6c7c72aecfa |
File details
Details for the file dragonfly-0.6.4rc3.dev_r57-py2.5.egg
.
File metadata
- Download URL: dragonfly-0.6.4rc3.dev_r57-py2.5.egg
- Upload date:
- Size: 208.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b898a7e93011cd3ed91850aaa62fe99a36e58166e3edc2c8a8ae24f42978452 |
|
MD5 | 79bafdc45c583f7cc404932576d4b0ef |
|
BLAKE2b-256 | 14f073d02d3feb8f841bfd6958ea14a5a326e6b7e9bac4127834bea7ae20fb3b |
File details
Details for the file dragonfly-0.6.4rc3.dev-r57.win32.exe
.
File metadata
- Download URL: dragonfly-0.6.4rc3.dev-r57.win32.exe
- Upload date:
- Size: 163.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 374f84f24057a74508b99a29ff7f1651000e4557694aa514e46c7442dcbbf1f6 |
|
MD5 | 2baefa90bcf809f8407c5167eb1b9899 |
|
BLAKE2b-256 | 08d73b08e00db5cbe0f42578251bae2718e7710879e7b5ed09242cdd2f5d2f31 |