Skip to main content

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


Download files

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

Source Distribution

dragonfly-0.6.4rc3.dev-r68.zip (503.1 kB view details)

Uploaded Source

Built Distributions

dragonfly-0.6.4rc3.dev_r68-py2.5.egg (260.7 kB view details)

Uploaded Source

dragonfly-0.6.4rc3.dev-r68.win32.exe (190.2 kB view details)

Uploaded Source

File details

Details for the file dragonfly-0.6.4rc3.dev-r68.zip.

File metadata

File hashes

Hashes for dragonfly-0.6.4rc3.dev-r68.zip
Algorithm Hash digest
SHA256 057c0583165b4bed5a2f3b2a88f33bd38c9724ac1211ba723e0e1ab16f8ff562
MD5 625938d039185196f7bf1e8cfde60b2c
BLAKE2b-256 ee43ddb7753287127d8027868c006cae00aab2b761927c12d2740d5342cac04e

See more details on using hashes here.

File details

Details for the file dragonfly-0.6.4rc3.dev_r68-py2.5.egg.

File metadata

File hashes

Hashes for dragonfly-0.6.4rc3.dev_r68-py2.5.egg
Algorithm Hash digest
SHA256 89b68d53c986f6dea86380ffcf2c81d1c65cf3e98c3220027ea48a9574882988
MD5 4233452402248f93c5bb63f572e27877
BLAKE2b-256 4bf8d7d73eb017438b8904fb19bb6becd540424bcbbfef7620a6fab96a859157

See more details on using hashes here.

File details

Details for the file dragonfly-0.6.4rc3.dev-r68.win32.exe.

File metadata

File hashes

Hashes for dragonfly-0.6.4rc3.dev-r68.win32.exe
Algorithm Hash digest
SHA256 d40859c9e0fda701d7ae9c26776a6e7144cfccdfbae46bdda16c11a8240e059f
MD5 84de5103bb8ade58f17fa2560bd984b1
BLAKE2b-256 d475c9a8bd0257130c882a9fa9117644d4a70b8daf815f84d3146334c372eff5

See more details on using hashes here.

Supported by

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