terminal - 在 Ubuntu 18.04 命令行中运行 julius.jconf 时出错
问题描述
我已经根据他们git repo上的快速运行说明安装了 julius ,但得到的结果是混合的,永远不会运行。但是,在运行此线程中建议的快速入门时,我已经能够让程序运行。
使用旨在识别“官方” 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.
快速入门在麦克风上运行julius -input mic -C dnn.jconf
,我已将其修改到julius -input mozilla.wav -C dnn.jconf
为 julius 演示创建的目录中,但收到错误消息Segmentation fault (core dumped)
。
很明显,从麦克风接收音频没有问题,但我不确定在 julius-speech 快速运行中我哪里出错了。我们欢迎所有的建议!
解决方案
问题是我对如何修改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 repo 中的这个已关闭问题。
推荐阅读
- codeigniter-4 - Codeigniter redirect()->to() 在 __construct() 中不起作用
- string - PowerShell - 问题:变量中的整个字符串被传递
- javascript - 选中单选按钮时在输入字段中添加必需的属性
- azure - Azure Logic App - 使用变量和使用循环时出现 ActionFailed 错误
- llvm - LLVM IR中的`select`和`phi`有什么区别?
- c# - 以比 C# 中的 Regex 更轻量级的方式验证 JWT 的构建
- python - 从完整文件中拆分插入、更新、删除的增量逻辑
- forms - 编辑表单 vuejs 中未填写的表单道具值(重复使用相同的表单组件)
- regex - sed 命令以避免更新特定行
- sql - 将日期为“31. 12. 2019”和“7/2020”的字符串有效转换为日期类型?