Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install dragonfly

How to install dragonfly

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install dragonfly
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.6.5 Available View build log
Windows (64-bit)
0.6.5 Available View build log
Mac OS X (10.5+)
0.6.5 Available View build log
Linux (32-bit)
0.6.5 Available View build log
Linux (64-bit)
0.6.5 Available View build log
 
License
LGPL
Dependencies
Lastest release
version 0.6.5 on Jan 5th, 2011

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

System Message: WARNING/2 (<string>, line 11)

Bullet list ends without a blank line; unexpected unindent.

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:

System Message: WARNING/2 (<string>, line 21)

Literal block expected; none found.

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.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.