ubuntu下试用paddlespeech的语音合成tts功能(待补充)

参考:

paddlepaddle安装

paddlespeech安装

paddlespeech版本问题

typeguard版本问题

numpy版本问题

`GLIBC_2.32' not found问题(降级opencc)

protobuf问题

记录一个conda虚拟环境使用经验:

# 下载 miniconda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -P tools/

# 安装 miniconda
bash tools/Miniconda3-latest-Linux-x86_64.sh -b

# conda 初始化
$HOME/miniconda3/bin/conda init

# 激活 conda
bash

# 创建一个 conda 的虚拟环境:
conda create -y -p tools/venv python=3.8

# 激活 conda 虚拟环境
conda activate tools/venv

# 失活 conda 虚拟环境
conda deactivate

记录一个测试cmd:

paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
(/home/station/tts_test/tools/venv2) station@srhzdsapprol1700006:~/tts_test$ time paddlespeech tts --input "你好,欢迎使用百度飞桨深度学习框架!" --output output.wav
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/setuptools/sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('mpl_toolkits')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/pkg_resources/__init__.py:2871: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
  declare_namespace(pkg)
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/librosa/core/constantq.py:1059: DeprecationWarning: `np.complex` is a deprecated alias for the builtin `complex`. To silence this warning, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  dtype=np.complex,
/home/station/tts_test/tools/venv2/lib/python3.8/site-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
/home/station/tts_test/output.wav
real    0m24.501s
user    0m21.893s
sys     0m2.845s
(/home/station/tts_test/tools/venv2) station@srhzdsapprol1700006:~/tts_test$

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值