What is this error- “IOError: [Errno 2] No such file or directory: 'audio.flac' ”, i am trying to use the google voice recognition api for python

筅森魡賤 提交于 2019-12-01 22:51:28

You miss the sox tool installed which converts recorded wav to flac, you can see in line in pygsr sources: system("sox %s -t wav -r 48000 -t flac %s.flac" % (self.file, self.file)). Make sure that sox works for you and it can create flac files.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!