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-rc2.zip (415.5 kB view details)

Uploaded Source

Built Distributions

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

Uploaded Egg

dragonfly-0.6.4-rc2.win32.exe (161.4 kB view details)

Uploaded Source

File details

Details for the file dragonfly-0.6.4-rc2.zip.

File metadata

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

File hashes

Hashes for dragonfly-0.6.4-rc2.zip
Algorithm Hash digest
SHA256 a883a9c48e432ff1955257635ea7fc5e907b590e08777e5ebef9f7037e65534a
MD5 de00f7302e0a95c97d95573c670471a9
BLAKE2b-256 03b2eb734b30856b6d2fbb2863c50cb243e600f79026b486433bd4c6b8c0864f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dragonfly-0.6.4_rc2-py2.5.egg
Algorithm Hash digest
SHA256 1fa297decfea39c8ab97863495add83f28d730784365bbae03aa4e22019f46d3
MD5 bb41b99dc6bfecabd4669ac7c650df4e
BLAKE2b-256 dc67c3c2df61a66a1c605595b476257c50d33a213a401b386ab4556d14995db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dragonfly-0.6.4-rc2.win32.exe
Algorithm Hash digest
SHA256 f18e1cb79adf4fb006247fb2a6d964a4c675f2c012518acc07f1b531da37ec5b
MD5 ccceac4072508b31959a4a33a2c79e09
BLAKE2b-256 4eb3a7459e4f3f4dcf59109f2e539765cf20f83ff7411038c236873207226f60

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