Speech recognition extension library
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.5.zip
.
File metadata
- Download URL: dragonfly-0.6.5.zip
- Upload date:
- Size: 584.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aac8ec8c69c331dcfa24744e81dbdf0ba1c618d0c60a4812fef9fa6db9404bb |
|
MD5 | 9349f5634f98d8a2888522f00709fac4 |
|
BLAKE2b-256 | cc5c004e5542a9c29f1c3bb3122e758474d75242b837b197ca1fd156a59a0814 |
File details
Details for the file dragonfly-0.6.5.win32.exe
.
File metadata
- Download URL: dragonfly-0.6.5.win32.exe
- Upload date:
- Size: 221.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f75f92841eedc78214fff7d9edbaf09d8026046a968130ecee8ef6cbfe81203 |
|
MD5 | 1df1f75cd48fa9234a11f53c314b1f10 |
|
BLAKE2b-256 | a001cf4b086cfccf511a53e5c29670097376e30c8a9aa1cabd4f585f9ec9fd94 |
File details
Details for the file dragonfly-0.6.5-py2.5.egg
.
File metadata
- Download URL: dragonfly-0.6.5-py2.5.egg
- Upload date:
- Size: 328.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d829f7ad1f9b0dbd62b0a306558edd7d8754a75f470fd00e16814442bd351caf |
|
MD5 | dd88e2e10979d853091428bb7cc2c51a |
|
BLAKE2b-256 | 630cacc622362a07af72b07e5fb82f08d0aa3ad9de4cca7e1710fc0a8cdae173 |