realtimerecognize.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:audiolearning 作者: jingwang3235 项目源码 文件源码
def translate(r,audio):    
    try:
        s=time.time()
        print(str(len(audiolist))+" Sphinx thinks you said :" + r.recognize_sphinx(audio))
        print time.time()-s
    except sr.UnknownValueError:
        print("Sphinx could not understand audio")
    except sr.RequestError as e:
        print("Sphinx error; {0}".format(e))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号