目录
一、参考
创建conda环境
conda create -n paddlespeech python=3.9
conda activate paddlespeech
安装
下载源码
mkdir /home/aistudio
git clone -b r1.2 https://gitee.com/paddlepaddle/PaddleSpeech
安装依赖
pip install pytest-runner -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install uvicorn==0.18.3
# 不是必须,如果启动报错,则需要安装
yum install -y libsndfile
删除软连接
# 删除软链接
# aistudio会报错: paddlespeech 的 repo中存在失效软链接
# 执行下面这行命令!!
find -L /home/aistudio -type l -delete
nltk数据
# 进入主目录
cd /home/aistudio
# 下载nltk数据包,放入到nltk可以检索的路径下
wget -P ./nltk_data http://www.nltk.org/nltk_data/packages/corpora/gutenberg.zip
unzip ./nltk_data/gutenberg.zip -d ./nltk_data/corpora/
# 下载其他必要的nltk数据集
python -m nltk.downloader averaged_perceptron_tagger
python -m nltk.downloader cmudict
调用
<!doctype html>
<html lang="zh-cmn-Hans-CN">
<head>
<style type="text/css">
.background {
display: block;
width: 100%;
height: 100%
}
</style>
</head>
<body>
<!-- 其他代码 -->
</body>
</html>