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.4.zip (498.2 kB view details)

Uploaded Source

Built Distributions

dragonfly-0.6.4.win32.exe (187.7 kB view details)

Uploaded Source

dragonfly-0.6.4-py2.5.egg (258.3 kB view details)

Uploaded Egg

File details

Details for the file dragonfly-0.6.4.zip.

File metadata

  • Download URL: dragonfly-0.6.4.zip
  • Upload date:
  • Size: 498.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dragonfly-0.6.4.zip
Algorithm Hash digest
SHA256 cfcf99cefc14962e9413b546feb2bc1215217cb212dbc4d9f671d41eb7a2f1ac
MD5 55296252e8dafb4966796c4aa7d0323e
BLAKE2b-256 b5243bdce0a639244ed4cf7e69414a365d043200dbb938091cc8c472d0cee6d6

See more details on using hashes here.

File details

Details for the file dragonfly-0.6.4.win32.exe.

File metadata

File hashes

Hashes for dragonfly-0.6.4.win32.exe
Algorithm Hash digest
SHA256 fbb73b2747da8ac05796442bdfda03b38c4f3317d3a140f97689a268cb7802e6
MD5 6d8e7b20618e33fdefacc98cbb295804
BLAKE2b-256 556243f7cf2c1228139d3c1c7786f62e656daba7927729ea4771c09600790248

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dragonfly-0.6.4-py2.5.egg
Algorithm Hash digest
SHA256 293cbe3b4cf74a11178e25492ad78f9da2c3d3ed4eb67716b5a1e4e38d03718b
MD5 f780da9c08732d062aaae79128ac24f7
BLAKE2b-256 d1f9981199825da06326ec1d699e2d203320b1eeef2ff152344f6f530442fe0e

See more details on using hashes here.

Supported by

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