get text from dragonfly speech recogtion engine

301 Views Asked by At

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

There are 1 best solutions below

2
On BEST ANSWER

You will have to use either Natlink or Windows Speech Recognition. No text gets recognized without a recognition engine. If you want to get the full recognized text, make a command with a Dictation element and nothing else in it. Map it to a Function action which does whatever you want with the results. Like so:

def myfunction(mycommand):
    mycommand = str(mycommand)
    '''do something ... '''

class MyRule(MappingRule):
    mapping = {
        "<mycommand>":            Function(myfunction)
    }
    extras = [ Dictation("mycommand") ]
    defaults = {"mycommand": None}