1 安装PaddleSpeech
# 安装paddle
pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
# 安装paddlespeech
pip install pytest-runner
pip install paddlespeech
# 语音切割包
pip install pydub
# 参考网址
https://github.com/PaddlePaddle/PaddleSpeech
2 简单使用
from paddlespeech.cli.asr.infer import ASRExecutor
asr = ASRExecutor()
# 使用的是官网上的音频
result = asr(audio_file="./data/zh.wav")
print(result)
3 出现的问题
# 提示缺少
Microsoft Visual C++ 14.0 is required.
解决方法
方法1
下载“VC_redist.x64.exe”,下载后安装即可
# 下载地址1
https://visualstudio.microsoft.com/zh-hans/downloads/#microsoft-visual-c-redistributable-for-visual-studio-2022
# 下载地址2
https://learn.microsoft.com/zh-cn/cpp/windows/latest-supported-vc-redist?view=msvc-170

方法2
如果上述方法无法解决,下载“vs_BuildTools.exe”
# 下载地址
https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
选择“单个组件”中C++ ATL v141 生成工具(x86 & x64)
![[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-h1xEVEKM-1665992974381)(paddle语言识别.assets/image-20221017154548989.png)]](https://i-blog.csdnimg.cn/blog_migrate/b2d1f03663d4b31b8f8d41fbeb0ae434.png)
760

被折叠的 条评论
为什么被折叠?



