$\begingroup$

I need to fix this python code to my project

代码如下:

https://www.alexkras.com/transcribing-audio-file-to-text-with-google-cloud-speech-api-and-python/

这里的错误:

Traceback (most recent call last): File "source_file.py",第1行,导入语音识别为srimporterror:没有名为“语音识别”的模块

有人能帮我吗?

新撰稿人
皮尔31是此网站的新参与者。Take care in 必威电竞asking for clarification,评论,and answering.Check out our 行为守则.
$\endgroup$

1 Answer

$\begingroup$

Looks like you didn't install the required library - go to your console,类型PIP安装语音识别然后再试一次。此处为图书馆文档,and don't forget to add SpeechRecognition to therequirements.txtfor your project,避免以后重复。

$\endgroup$

Your Answer

皮尔31是新的参与者。Be nice,and check out our 行为守则.

By clicking "Post Your Answer",you agree to ourterms of serviceprivacy policy饼干政策

Not the answer you're looking for?浏览标记的其他问题必威英雄联盟 必威电竞问你自己的问题.