@创建于:2022.12.29
@修改于:2022.12.29
1、本地化安装
# 项目地址
# https://github.com/JiehangXie/PaddleBoBo
git clone https://gitee.com/xiejiehang/PaddleBoBo.git -b develop
pip install paddlepaddle==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install ppgan==2.1.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install paddlespeech==1.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install paddleaudio==1.0.1 -i https://pypi.tuna.tsinghua.edu.cn/simple
cd PaddleBoBo
python create_virtual_human.py --config default.yaml
2、OSError: cannot load library ‘libsndfile.so’: libsndfile.so: cannot open shared object file: No such file or directory
(pp) [root@p-96b7-amfg PaddleBoBo]# python general_demo.py --human ./file/input/test.mp4 --output ../output.mp4 --text 各位开发者大家好
Traceback (most recent call last):
File "/root/anaconda3/envs/pp/lib/python3.7/site-packages/soundfile.py", line 151, in <module>
raise OSError('sndfile library not found')
OSError: sndfile library not found
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/anaconda3/envs/pp/lib/python3.7/site-packages/soundfile.py", line 178, in <module>
_snd = _ffi.dlopen(_os.path.join(_path, '_soundfile_data', _packaged_libname))
OSError: cannot load library '/root/anaconda3/envs/pp/lib/python3.7/site-packages/_soundfile_data/libsndfile.so': /root/anaconda3/envs/pp/lib/python3.7/site-packages/_soundfile_data/libsndfile.so: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "general_demo.py", line 6, in <module>
from PaddleTools.TTS import TTSExecutor
File "/root/program/PaddleBoBo/PaddleTools/TTS.py", line 6, in <module>
import soundfile as sf
File "/root/anaconda3/envs/pp/lib/python3.7/site-packages/soundfile.py", line 189, in <module>
_snd = _ffi.dlopen(_libname)
OSError: cannot load library 'libsndfile.so': libsndfile.so: cannot open shared object file: No such file or directory
# redhat和centos用yum,ubuntu用apt
yum install libsndfile1
apt install libsndfile1
解决“OSError: cannot load library ‘libsndfile.so‘ ”问题