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.
Metadata
Release files for dragonfly 0.6.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dragonfly-0.6.5.zip | 584.8 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dragonfly-0.6.5.win32.exe | Details | |||
| dragonfly-0.6.5-py2.5.egg | Legacy Egg format | - | - | Details |
Total release size: 1.1 MB
Release files / dragonfly-0.6.5.zip
| Download URL | dragonfly-0.6.5.zip |
|---|---|
| Size | 584.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1aac8ec8c69c331dcfa24744e81dbdf0ba1c618d0c60a4812fef9fa6db9404bb
|
|
BLAKE2b-256 checksum How to use checksums |
cc5c004e5542a9c29f1c3bb3122e758474d75242b837b197ca1fd156a59a0814
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dragonfly-0.6.5.win32.exe
| Download URL | dragonfly-0.6.5.win32.exe |
|---|---|
| Size | 221.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f75f92841eedc78214fff7d9edbaf09d8026046a968130ecee8ef6cbfe81203
|
|
BLAKE2b-256 checksum How to use checksums |
a001cf4b086cfccf511a53e5c29670097376e30c8a9aa1cabd4f585f9ec9fd94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dragonfly-0.6.5-py2.5.egg
| Download URL | dragonfly-0.6.5-py2.5.egg |
|---|---|
| Size | 328.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
d829f7ad1f9b0dbd62b0a306558edd7d8754a75f470fd00e16814442bd351caf
|
|
BLAKE2b-256 checksum How to use checksums |
630cacc622362a07af72b07e5fb82f08d0aa3ad9de4cca7e1710fc0a8cdae173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |