为什么在此语音识别代码中缺少4-1-1.Match文件? [英] Why am I missing the an4-1-1.match file in this speech recognition code?

查看:16
本文介绍了为什么在此语音识别代码中缺少4-1-1.Match文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在语音识别的解码部分遇到问题。我按照here的步骤操作。当我键入:perl scripts_pl/decode/slave.pl时,我得到以下错误:

模块:使用先前训练的模型进行解码 对从0开始的130个数据段(第1部分,共1个)的解码找不到/home/go/Documents/tutorial/an4/bin/sphinx3_decode的可执行文件 在… /home/go/Documents/tutorial/an4/scripts_pl/decode/../lib/SphinxTrain/Util.pm 299线。 对齐结果以查找错误率无法打开/home/go/Documents/tutorial/an4/result/an4-1-1.match Word_align.pl 在SCRIPTS_pl/DECODE/Slave.pl第173行失败,错误代码为65280。

这里是word_align.pl第179行

#sub initialize {
    my ($ref_words, $hyp_words, $align_matrix, $backtrace_matrix) = @_;

    # All initial costs along the j axis are insertions
    for (my $j = 0; $j <= @$hyp_words; ++$j) {
    $$align_matrix[0][$j] = $j;
    }
    for (my $j = 0; $j <= @$hyp_words; ++$j) {
    $$backtrace_matrix[0][$j] = INS;
    }
    # All initial costs along the i axis are deletions
    for (my $i = 0; $i <= @$ref_words; ++$i) {
    $$align_matrix[$i][0] = $i;
    }
    for (my $i = 0; $i <= @$ref_words; ++$i) {
    $$backtrace_matrix[$i][0] = DEL;
    }
#}

Util.pm第299行

die"找不到$cmd的可执行文件",除非-e$cmd;

为什么我缺少an4-1-1.match file

推荐答案

我按照此处的步骤http://www.speech.cs.cmu.edu/sphinx/tutorial.html

本教程已过时。最近的一个是http://cmusphinx.sourceforge.net/wiki/tutorialam

找不到的可执行文件 /home/go/Documents/tutorial/an4/bin/sphinx3_decode

这是问题的一个原因。您需要将可执行文件复制到指定位置。然后再次运行解码。

这篇关于为什么在此语音识别代码中缺少4-1-1.Match文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆