Questions tagged [python-dragonfly]

Dragonfly is a speech recognition framework for Python.

Dragonfly is a speech recognition framework for Python. It works with existing speech recognition software (Windows Speech Recognition or Dragon NaturallySpeaking Natlink) to enable users to easily write scripts that leverage these existing tools. Dragonfly requires Python 2.5 or later.

27 questions
10
votes
3 answers

How do you recognize speech with the Python module Dragonfly?

I have been trying to figure out how to use the Dragonfly module. I have taken a look at the documentation, but I can't seem to figure out how to use it. I just want to be able to recognize a few phrases and act upon those phrases.
Gabe
  • 539
  • 7
  • 19
3
votes
3 answers

Problems using python dragonfly on linux bases machine

I am playing with the Dragonfly lib in python. I am working on Mac OSX, and this will be my target platform. However when try to run my program I receive the following error: Traceback (most recent call last): File "clock_challenge.py", line 2, in…
vikash dat
  • 1,494
  • 2
  • 19
  • 37
2
votes
1 answer

Modal commands with Dragonfly

I'm using dragonfly2, and I want to create a grammar that, like vim, is modal. I want to be able to enable and disable grammars using commands. For example, if I say link, I have an action that shows a list of possible links on screen with 2-letter…
Migwell
  • 18,631
  • 21
  • 91
  • 160
2
votes
1 answer

Repeating an extra when using a Dragonfly CompoundRule

Using dragonfly2, the voice command framework, you can make a grammar like so: chrome_rules = MappingRule( name='chrome', mapping={ 'down []': actions.Key('space:%(n)d'), }, extras=[ IntegerRef("n", 1, 100) ], …
Migwell
  • 18,631
  • 21
  • 91
  • 160
2
votes
1 answer

Problems using python dragonfly on windows7 with python2.6

I am playing with the Dragonfly lib in python. I am working on Windows7 + python2.6. However when I try to run demo code (which is the example from Dragonfly) from dragonfly.all import Grammar, CompoundRule # Voice command rule combining spoken…
SKulibin
  • 719
  • 1
  • 6
  • 14
2
votes
2 answers

install natlink and dragonfly for python2.7 in windows10

I want to implement speech recognition in my windows10 using python2.7. Is it possible to install natlink for python2.7? Because i found that it is only available for python 2.5. If anybody knows how to get natlink and dragonfly for python 2.7 then…
Ankit Kumar
  • 107
  • 1
  • 3
  • 14
2
votes
1 answer

Preventing Windows Speech Recognition from recognizing computer audio with Dragonfly?

I'm making a prototype for an accessibility app for Windows with Dragonfly for Python. Frustratingly, Windows Speech Recognition (WSR) recognizes audio from the computer, which is a huge problem for me as it recognizes speech generated by its own…
Luigi
  • 4,129
  • 6
  • 37
  • 57
1
vote
1 answer

Pass spoken numerical value to function

I want to pass a spoken numerical value to a function, but I'm having problems casting that value to an integer. I am only able to pass the string %(number)d to the foo function. I've tried many different things to cast the spoken value to a number…
1
vote
1 answer

Dragonfly doesn't print characters requiring pressing Alt Gr, such as { or [

I have installed Python 2.7.14, pywin 2.7, natlink 4.1victor and dragonfly 0.6.6b1. I have windows 10 where the main language is English, but the keyboard layout is in Finnish. If I go to Notepad and edit voice commands, a test command like…
janoshon
  • 11
  • 3
1
vote
1 answer

How to switch context in Dragonfly

I have tried the Python module for handling speech recognition Dragonfly and successfully run notepad example with Windows speech recognition. Now I would like to try something more general, but I cannot find how contexts are switched, i.e. grammars…
comodoro
  • 1,489
  • 1
  • 19
  • 30
1
vote
1 answer

Dragonfly installation issues with Windows speech recognition

I want to do speech recognition using Dragonfly with Windows Speech Recognition on windows 10 but the issue is it always displays the errors.I am stuck to in since days. This is all I have been trying to do: First I downloaded python 2.7.6.msi,…
Areeha
  • 823
  • 7
  • 11
1
vote
1 answer

get text from dragonfly speech recogtion engine

I would like to get the text recognized by the speech recognition engine dragonfly and get the text using python . Have tried using natlink but i want to make a server base application and get only the text recognized
1
vote
1 answer

Pressing two keys simultaneously with dragonfly

I'm trying to create a macro in Dragonfly that will press two keys simultaneously, rather than one after the other. The documentation doesn't seem to cover this. Is it possible to do this, and if so what do I call?
Isaac
  • 137
  • 1
  • 1
  • 5
1
vote
1 answer

Can Dragonfly be used to modify existing text, like "Capitalise That" in DNS does?

As an example, I have written a simple rule to camelCase text. It uses the following spec: spec="camel case " which correctly modifies the text said after the command 'camel case'. But this still isn't as flexible as built-in commands like…
1
vote
1 answer

Dragonfly IntegerRef getting a TypeError: 'NoneType' object is not callable error

Try to get dragonfly working in Windows 10 with Python 2.7. I have a sample module that I made that im trying to get working, however Im getting the following error: Traceback (most recent call last): File…
Jarrett
  • 1,767
  • 25
  • 47
1
2