This release is a pre-release and may not be stable for production use.
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.4rc3.dev-r68
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.4rc3.dev-r68.zip | 503.1 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dragonfly-0.6.4rc3.dev_r68-py2.5.egg | Legacy Egg format | - | - | Details |
| dragonfly-0.6.4rc3.dev-r68.win32.exe | Details |
Total release size: 953.9 kB
Release files / dragonfly-0.6.4rc3.dev-r68.zip
| Download URL | dragonfly-0.6.4rc3.dev-r68.zip |
|---|---|
| Size | 503.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
057c0583165b4bed5a2f3b2a88f33bd38c9724ac1211ba723e0e1ab16f8ff562
|
|
BLAKE2b-256 checksum How to use checksums |
ee43ddb7753287127d8027868c006cae00aab2b761927c12d2740d5342cac04e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dragonfly-0.6.4rc3.dev_r68-py2.5.egg
| Download URL | dragonfly-0.6.4rc3.dev_r68-py2.5.egg |
|---|---|
| Size | 260.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
89b68d53c986f6dea86380ffcf2c81d1c65cf3e98c3220027ea48a9574882988
|
|
BLAKE2b-256 checksum How to use checksums |
4bf8d7d73eb017438b8904fb19bb6becd540424bcbbfef7620a6fab96a859157
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / dragonfly-0.6.4rc3.dev-r68.win32.exe
| Download URL | dragonfly-0.6.4rc3.dev-r68.win32.exe |
|---|---|
| Size | 190.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d40859c9e0fda701d7ae9c26776a6e7144cfccdfbae46bdda16c11a8240e059f
|
|
BLAKE2b-256 checksum How to use checksums |
d475c9a8bd0257130c882a9fa9117644d4a70b8daf815f84d3146334c372eff5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |