kaldi的安装使用

AIshell网站下载数据


希尔贝壳—专注于人工智能大数据和技术的创新


推荐下载AU播放音频


H-C-L-G四种文件需要准备L.fst

H文件由特征变成音素,LG由音素变成词,

.txt     需要数据预处理,罗马数字,编号转汉字,特殊符号

.wav

.utt2spk

.spk2utt


lexicon.txt   音素     音素词典

fst 状态机


 用git  clone   http 下载下来kaldi

  cmake

 CMakeLists.txt  

COPYING  

docker  

egs    案例

INSTALL  

misc  

README.md  

scripts  

src  

tools

 windows
 


[root@localhost kaldi]# cd egs/

查看egs里的案例


[root@localhost egs]# ls
aidatatang_200zh      callhome_egyptian  csj                      heroico       madcat_ar         opensat20         sre10         vystadial_cz
aishell               casia_hwdb         dihard_2018              hi_mia        madcat_zh         ptb               sre16         vystadial_en
aishell2              chime1             fame                     hkust         malach            README.txt        svhn          wenetspeech
ami                   chime2             farsdat                  hub4_english  mandarin_bn_bc    reverb            swahili       wsj
an4                   chime3             fisher_callhome_spanish  hub4_spanish  material          rimes             swbd          yesno
apiai_decode          chime4             fisher_english           iam           mgb2_arabic       rm                tedlium       yomdle_fa
aspire                chime5             fisher_swbd              iban          mgb5              sad_rats          thchs30       yomdle_korean
aurora4               chime6             formosa                  icsi          mini_librispeech  sitw              tidigits      yomdle_russian
babel                 cifar              gale_arabic              ifnenit       mobvoi            snips             timit         yomdle_tamil
babel_multilang       cl_english         gale_mandarin            libri_css     mobvoihotwords    spanish_dimex100  tunisian_msa  yomdle_zh
bentham               cmu_cslu_kids      gigaspeech               librispeech   multi_cn          sprakbanken       uw3           zeroth_korean
bn_music_speech       cnceleb            gop_speechocean762       lre           multi_en          sprakbanken_swe   voxceleb
callhome_diarization  commonvoice        gp                       lre07         nsc               sre08             voxforge


/k_ln/kaldi/egs/wsj/s5
运行上面目录下的path.sh

. path.sh


 214-编译kaldi环境

215-安装好基本依赖

INSTALL文件的内容

This is the official Kaldi INSTALL. Look also at INSTALL.md for the git mirror installation.
[Option 1 in the following does not apply to native Windows install, see windows/INSTALL or following Option 2]

Option 1 (bash + makefile):

  Steps:
    (1)
    go to tools/  and follow INSTALL instructions there.

    (2)
    go to src/ and follow INSTALL instructions there.

Option 2 (cmake):

    Go to cmake/ and follow INSTALL.md instructions there.
    Note, it may not be well tested and some features are missing currently.
这是Kaldi的官方安装。还可以查看安装。md用于git镜像安装。

[以下选项1不适用于本机Windows安装,请参阅Windows/install或以下选项2]



选项1(bash+makefile):



步骤:

(1)

转到工具/并按照那里的安装说明进行操作。



(2)

转到src/并按照那里的安装说明操作。



选项2(cmake):



转到cmake/并按照安装进行操作。md说明在那里。

注意,它可能没有经过很好的测试,目前缺少一些功能。

要去tools去看INSTALL文件

To check the prerequisites for Kaldi, first run

  extras/check_dependencies.sh

and see if there are any system-level installations you need to do. Check the
output carefully. There are some things that will make your life a lot easier
if you fix them at this stage. If your system default C++ compiler is not
supported, you can do the check with another compiler by setting the CXX
environment variable, e.g.

  CXX=g++-4.8 extras/check_dependencies.sh

Then run

  make

which by default will install ATLAS headers, OpenFst, SCTK and sph2pipe.
OpenFst requires a relatively recent C++ compiler with C++11 support, e.g.
g++ >= 4.7, Apple clang >= 5.0 or LLVM clang >= 3.3. If your system default
compiler does not have adequate support for C++11, you can specify a C++11
compliant compiler as a command argument, e.g.
要检查Kaldi的先决条件,请先运行



extras/check_dependencies.sh



并查看是否需要进行任何系统级安装。检查

仔细检查输出。有些事情会让你的生活变得更轻松

如果在这个阶段修复它们。如果系统默认的C++编译器不是

支持,您可以通过设置CXX使用另一个编译器进行检查

环境变量,例如。



CXX=g++-4.8额外功能/check_dependencies.sh



然后跑



制作



默认情况下,它将安装ATLAS Header、OpenFst、SCTK和sph2pipe。

OpenFst需要一个具有C++11支持的相对较新的C++编译器,例如。

g++>=4.7、Apple clang>=5.0或LLVM clang>=3.3。如果您的系统默认

编译器对C++11没有足够的支持,您可以指定一个C++11

兼容编译器作为命令参数,例如。

216-安装mkl

217-去官网下载

CentOS安装intel MKL库 – SRE笔记

Linux 版的 Intel MKL 的安装使用_20kg镀金的博客-CSDN博客_intel mkl安装与使用

用了第一个文档的yum 方法进行安装,

218准备生成wav

219在vim中写python文件,遇见中文乱码

220 extras/check_dependdencies.sh  all is ok 说明第一步准备好了

卡住了,我的是

[root@localhost tools]# make
extras/check_dependencies.sh
extras/check_dependencies.sh: all OK.
rm -f cub
tar -xmzf cub-1.8.0.tar.gz

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
make: *** [cub/common.mk] 错误 2

  • 26
    点赞
  • 26
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值