news 2026/7/28 16:17:59

[实验室环境配置] kaldi安装

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
[实验室环境配置] kaldi安装
  • 下载kaldi 包
git clone https://github.com/kaldi-asr/kaldi.git
  • 检查并自动安装依赖库
cd tools ./extras/check_dependencies.sh # all OK 说明成功 make # 这个过程需要消耗一点时间,会下载openfst等工具 # 之所以要在tools文件夹下make的原因:https://github.com/claritylab/lucida/issues/25 https://github.com/vimalmanohar/old-kaldi-git/issues/1
  • 编译kaldi
cd src ./configure --shared make depend make -j 8 # 多进程处理更快,最后看到Done表示成功
  • 开机启动kaldi
[sxc19@mjrc-server12 ~]$ cd ~ [sxc19@mjrc-server12 ~]$ vim .bashrc #将下述内容添加到.bashrc中 export KALDI_ROOT=/home/sxc19/tools/kaldi/ # BEGIN from kaldi path.sh [ -f $KALDI_ROOT/tools/env.sh ] && . $KALDI_ROOT/tools/env.sh export PATH=$KALDI_ROOT/tools/openfst/bin:$KALDI_ROOT/tools/sctk/bin:$PATH [ ! -f $KALDI_ROOT/tools/config/common_path.sh ] && echo >&2 "The standard file $KALDI_ROOT/tools/config/common_path.sh is not present -> Exit!" && exit 1 . $KALDI_ROOT/tools/config/common_path.sh export LC_ALL=C # END export PATH="/home/sxc19/tools/anaconda3/bin:$PATH"
  • 测试
[sxc19@mjrc-server12 ~]$ copy-feats # 如果cmd输出该函数的用法表示安装成功,如下所示 copy-feats Copy features [and possibly change format] Usage: copy-feats [options] <feature-rspecifier> <feature-wspecifier> or: copy-feats [options] <feats-rxfilename> <feats-wxfilename> e.g.: copy-feats ark:- ark,scp:foo.ark,foo.scp or: copy-feats ark:foo.ark ark,t:txt.ark See also: copy-matrix, copy-feats-to-htk, copy-feats-to-sphinx, select-feats, extract-feature-segments, subset-feats, subsample-feats, splice-feats, paste-feats, concat-feats Options: --binary : Binary-mode output (not relevant if writing to archive) (bool, default = true) --compress : If true, write output in compressed form(only currently supported for wxfilename, i.e. archive/script,output) (bool, default = false) --compression-method : Only relevant if --compress=true; the method (1 through 7) to compress the matrix. Search for CompressionMethod in src/matrix/compressed-matrix.h. (int, default = 1) --htk-in : Read input as HTK features (bool, default = false) --sphinx-in : Read input as Sphinx features (bool, default = false) --write-num-frames : Wspecifier to write length in frames of each utterance. e.g. 'ark,t:utt2num_frames'. Only applicable if writing tables, not when this program is writing individual files. See also feat-to-len. (string, default = "") Standard options: --config : Configuration file to read (this option may be repeated) (string, default = "") --help : Print out usage message (bool, default = false) --print-args : Print the command line arguments (to stderr) (bool, default = true) --verbose : Verbose level (higher->more logging) (int, default = 0)
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/7/28 16:16:08

LangChain工具集解析:AI应用开发实战指南

1. LangChain内置工具全景概览作为当下最热门的LLM应用开发框架&#xff0c;LangChain内置的工具集&#xff08;Tools&#xff09;是其区别于其他AI开发平台的核心竞争力。我在实际项目中发现&#xff0c;90%的常见AI应用场景都可以通过合理组合这些内置工具快速实现。不同于需…

作者头像 李华
网站建设 2026/7/28 16:12:08

提示词设计的反模式:模糊、过长、缺少约束——怎样写才有效

提示词设计的反模式&#xff1a;模糊、过长、缺少约束——怎样写才有效 一、深度引言与场景痛点&#xff1a;一段充满激情的 prompt&#xff0c;换回一个废话连篇的回答 7 月初&#xff0c;我为了生成一篇关于"动态规划入门"的题解&#xff0c;写了这样一段 prompt&a…

作者头像 李华
网站建设 2026/7/28 16:09:37

java学习(88):Charactor包装类

//Character包装类 public class test23 {public static void main(String[] args){char chA;//使用构造方法Character obj1new Character(中);//使用静态方法Character obj2Character.valueOf(ch);//获取char值char zhongobj1.charValue();System.out.println(zhong);int reso…

作者头像 李华
网站建设 2026/7/28 16:09:22

AI索引推荐的边界与陷阱:为什么AI建议的索引不一定是对的

AI索引推荐的边界与陷阱&#xff1a;为什么AI建议的索引不一定是对的 AI辅助索引推荐是数据库智能化中最受期待的功能之一。想象一下&#xff1a;AI自动分析慢查询日志和数据分布&#xff0c;给出建索引建议&#xff0c;DBA一键执行——听起来完美。但在实际使用中&#xff0c;…

作者头像 李华