Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
3d77f49c
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3d77f49c
编写于
11月 03, 2021
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
using pip isntall -e . , remove steup.sh
上级
cf6f3d93
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
93 deletion
+0
-93
setup.sh
setup.sh
+0
-93
未找到文件。
setup.sh
已删除
100644 → 0
浏览文件 @
cf6f3d93
#! /usr/bin/env bash
source
utils/log.sh
SUDO
=
'sudo'
if
[
$(
id
-u
)
-eq
0
]
;
then
SUDO
=
''
fi
if
[
-e
/etc/lsb-release
]
;
then
${
SUDO
}
apt-get update
-y
${
SUDO
}
apt-get
install
-y
bc jq vim tig tree sox pkg-config libflac-dev libogg-dev libvorbis-dev libboost-dev swig python3-dev
if
[
$?
!=
0
]
;
then
error_msg
"Please using Ubuntu or install pkg-config libflac-dev libogg-dev libvorbis-dev libboost-dev swig python3-dev by user."
exit
-1
fi
fi
# tools/make
rm
tools/
*
.done
pushd
tools
&&
make
&&
popd
source
tools/venv/bin/activate
# install python dependencies
if
[
-f
"requirements.txt"
]
;
then
pip3
install
.
fi
if
[
$?
!=
0
]
;
then
error_msg
"Install python dependencies failed !!!"
exit
1
fi
# install package libsndfile
python3
-c
"import soundfile"
if
[
$?
!=
0
]
;
then
info_msg
"Install package libsndfile into default system path."
wget
"http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz"
if
[
$?
!=
0
]
;
then
error_msg
"Download libsndfile-1.0.28.tar.gz failed !!!"
exit
1
fi
tar
-zxvf
libsndfile-1.0.28.tar.gz
cd
libsndfile-1.0.28
./configure
>
/dev/null
&&
make
>
/dev/null
&&
make
install
>
/dev/null
cd
..
rm
-rf
libsndfile-1.0.28
rm
libsndfile-1.0.28.tar.gz
fi
#install auto-log
python
-c
"import auto_log"
if
[
$?
!=
0
]
;
then
info_msg
"Install auto_log into default system path"
test
-d
AutoLog
||
git clone https://github.com/LDOUBLEV/AutoLog
if
[
$?
!=
0
]
;
then
error_msg
"Download auto_log failed !!!"
exit
1
fi
cd
AutoLog
pip
install
-r
requirements.txt
python setup.py
install
cd
..
rm
-rf
AutoLog
fi
# install decoders
python3
-c
"import pkg_resources; pkg_resources.require(
\"
swig_decoders==1.1
\"
)"
if
[
$?
!=
0
]
;
then
cd
paddlespeech/s2t/decoders/ctcdecoder/swig
>
/dev/null
bash setup.sh
cd
-
>
/dev/null
fi
python3
-c
"import pkg_resources; pkg_resources.require(
\"
swig_decoders==1.1
\"
)"
if
[
$?
!=
0
]
;
then
error_msg
"Please check why decoder install error!"
exit
-1
fi
# install third_party
pushd
third_party
bash install.sh
if
[
$?
!=
0
]
;
then
error_msg
"Please check why third_party install error!"
exit
-1
fi
popd
info_msg
"Install all dependencies successfully."
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录