Skip to main content
Pre-release

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-r60

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dragonfly 0.6.4rc3.dev-r60
File Size Uploaded
dragonfly-0.6.4rc3.dev-r60.zip 325.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for dragonfly 0.6.4rc3.dev-r60
File Interpreter ABI Platform
dragonfly-0.6.4rc3.dev_r60-py2.5.egg Legacy Egg format - - Details
dragonfly-0.6.4rc3.dev-r60.win32.exe Details

Total release size: 704.3 kB

Release files / dragonfly-0.6.4rc3.dev-r60.zip

Download URL dragonfly-0.6.4rc3.dev-r60.zip
Size 325.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7678687229c1ed2ce0ac47926e2d2a397c462c4e6d23fb6d39be02a705df0aaa
BLAKE2b-256 checksum
How to use checksums
9597cca86f4e2d1164da0ab6778bd27bcbb478a98f9ed167d0ec392688e16454
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dragonfly-0.6.4rc3.dev_r60-py2.5.egg

Download URL dragonfly-0.6.4rc3.dev_r60-py2.5.egg
Size 213.1 kB
Tags Egg
SHA-256 checksum
How to use checksums
16c46554c9e6b17c70c22fd570061666198412f1ca05ddc10691364b1d06cd04
BLAKE2b-256 checksum
How to use checksums
adbaf8760f1cfd122082c1a4c6cd868e0e1543f49ace8180315e1391aca21ddd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / dragonfly-0.6.4rc3.dev-r60.win32.exe

Download URL dragonfly-0.6.4rc3.dev-r60.win32.exe
Size 166.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ad51d90b9c80653d3528d3413c21452f168f35b16c9a93c2838affdcc5da7d35
BLAKE2b-256 checksum
How to use checksums
e77e0fc7eab8fe761d5db56637838765adc66164be7e818dd69030e61e03d19e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page