4r7ur
4r7ur

Reputation: 43

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

Upvotes: 1

Views: 317

Answers (1)

synkarius
synkarius

Reputation: 314

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}

Upvotes: 1

Related Questions