用于语音到文本的Python语音处理库

嘿,我期待在python中建立一个代码,它会识别我通过micrphone说话并转换为语音,你能给我几个高效的语音处理库,以实现相同的?


请参阅pyspeech(python) - 转录mp3文件?

其中讨论了http://code.google.com/p/pyspeech/。 您也可以查看http://code.google.com/p/dragonfly/


在https://pythonhosted.org/dragonfly/上提供代码示例时,蜻蜓示例代码未在代码片段中显示

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.

应该跟着

import time
import pythoncom
while True:
    pythoncom.PumpWaitingMessages()
    time.sleep(.1)

如此处所述 - http://dragonfly.googlecode.com/svn-history/r46/trunk/dragonfly/examples/dragonfly-main.py

链接地址: http://www.djcxy.com/p/50449.html

上一篇: Speech processing library in Python for speech to text

下一篇: if on a member function?