我已经按照他们的git repo上的“快速运行”说明安装了julius,但是却得到了从未运行过的混合结果。但是,在运行this thread中建议的快速入门时,我已经能够使程序运行。
使用旨在识别“官方”朱利叶斯演示../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.
快速入门使用julius -input mic -C dnn.jconf
在麦克风上运行,我已将其修改为julius演示创建的目录中的julius -input mozilla.wav -C dnn.jconf
,但收到错误消息Segmentation fault (core dumped)
。
很明显,从麦克风接收音频没有问题,但是我不确定在julius-speech快速运行中哪里出了问题。任何建议将不胜感激!
答案 0 :(得分:0)
问题是我对如何修改dnn.jconf
文件缺乏了解。从dnn.jconf
开始,{4.5}应该为:
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
然后它将完全按照Quickstart的布局工作。请参阅朱利叶斯仓库中的this closed issue。