which module to automating Voice/Speech using python
Question: I wanted to automate voice using python not able to find the module which can
automate voice or speech.


Answer: Take a look at [pyspeech](http://code.google.com/p/pyspeech/). I think this is
what you are looking for, speech automation. But this is only for windows.
Example:

    
    
    import speech
    
    while True:
        phrase = speech.input()
        speech.say("You said %s" % phrase)
        if phrase == "turn off":
            break
    

Or check out [dragonfly](http://code.google.com/p/dragonfly/). Example:

    
    
    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()      
    

