Ubuntu 18.04 命令行中的错误 运行 julius.jconf

Errors running julius.jconf in Ubuntu 18.04 command line

我已经根据 运行 上的快速 运行 说明安装了 julius git repo, but am getting mixed results that never run. However, when running the Quickstart suggested in this thread 我已经能够获得程序 运行ning.

使用命令识别包含在 "official" julius 演示 ../julius/julius/julius -C mic.jconf -dnnconf dnn.jconf -input mic 中的音频文件,我收到以下错误:

STAT: include config: julius.jconf
Stat: para: parsing HTK Config file: wav_config
Warning: para: "SOURCEFORMAT" ignored (not supported, or irrelevant)
Warning: para: TARGETKIND skipped (will be determined by AM header)
Stat: para: TARGETRATE=100000.0
Warning: para: "SAVECOMPRESSED" ignored (not supported, or irrelevant)
Warning: para: "SAVEWITHCRC" ignored (not supported, or irrelevant)
Stat: para: WINDOWSIZE=250000.0
Stat: para: USEHAMMING=T
Stat: para: PREEMCOEF=0.97
Stat: para: NUMCHANS=26
Stat: para: CEPLIFTER=22
Warning: para: NUMCEPS skipped (will be determined by AM header)
Warning: no SOURCERATE found
Warning: assume source waveform sample rate to 625 (16kHz)
ERROR: m_options: wrong argument: "-dnnconf"
Try `-help' for more information.

The Quickstart 运行s on the mic using julius -input mic -C dnn.jconf,我已经在为julius演示创建的目录中将其修改为julius -input mozilla.wav -C dnn.jconf,但是得到错误消息Segmentation fault (core dumped).

很明显从麦克风接收音频没有问题,但我不确定我在 julius-speech quick 上哪里出错了 运行。如有任何建议,我们将不胜感激!

问题是我对如何修改 dnn.jconf 文件缺乏了解。从 4.5 开始,dnn.jconf 应为:

feature_type MFCC_E_D_A_Z
feature_options -htkconf wav_config -cvn -cmnload ENVR-v5.3.norm -cvnstatic
num_threads 1
feature_len 48
context_len 11
input_nodes 528
output_nodes 7461
hidden_nodes 1536
hidden_layers 5
W1 ENVR-v5.3.layer2_weight.npy
W2 ENVR-v5.3.layer3_weight.npy
W3 ENVR-v5.3.layer4_weight.npy
W4 ENVR-v5.3.layer5_weight.npy
W5 ENVR-v5.3.layer6_weight.npy
B1 ENVR-v5.3.layer2_bias.npy
B2 ENVR-v5.3.layer3_bias.npy
B3 ENVR-v5.3.layer4_bias.npy
B4 ENVR-v5.3.layer5_bias.npy
B5 ENVR-v5.3.layer6_bias.npy
output_W ENVR-v5.3.layerout_weight.npy
output_B ENVR-v5.3.layerout_bias.npy
state_prior_factor 1.0
state_prior ENVR-v5.3.prior
state_prior_log10nize false

然后它将完全按照快速入门的布局运行。请参阅 julius 存储库中的 this closed issue