为了账号安全,请及时绑定邮箱和手机立即绑定

Python pocketsphinx 0.1.15 配置与 pocketsphinx

Python pocketsphinx 0.1.15 配置与 pocketsphinx

慕田峪7331174 2022-11-29 15:58:38
我有一个解决方案(jsgf、dict、hmm),适用于:pocketsphinx_continuous -hmm zero_ru.cd_cont_4000 -dict vocabular.dict -jsgf calc.jsgf -inmic yes现在我试图将它移植到 Python pocketsphinx 0.1.15( https://pypi.org/project/pocketsphinx/ ),我看到,在详细的输出中,Pythonpocketsphinx的配置与pocketsphinx_continuous配置不同。结果,Pythonpocketsphinx进行了很多错误的幻影检测。我的 Python 脚本非常简单:speech = LiveSpeech(    verbose=True,    hmm='c:/Projects/pocketsphinx-5prealpha-win32/pocketsphinx/bin/Release/x64/zero_ru.cd_cont_4000',    lm=False,    jsgf='c:/Projects/pocketsphinx-5prealpha-win32/pocketsphinx/bin/Release/x64/calc.jsgf',    dic='c:/Projects/pocketsphinx-5prealpha-win32/pocketsphinx/bin/Release/x64/vocabular.dict',    allphone_ci=False,    vad_threshold=2.0,    kws_threshold=1.0,)for phrase in speech:    print(phrase)通过将文本文件与我看到的输出进行比较,输出中pocketsphinx_continuous有:INFO: fe_interface.c(325): Using -1 as the seed.INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none'INFO: cmn.c(143): mean[0]= 12.00, mean[1..12]= 0.0INFO: acmod.c(154): Reading linear feature transformation from zero_ru.cd_cont_4000/feature_transformINFO: mdef.c(518): Reading model definition: zero_ru.cd_cont_4000/mdefINFO: bin_mdef.c(181): Allocating 145321 * 8 bytes (1135 KiB) for CD tree但是 Pythonpocketsphinx有:INFO: fe_interface.c(324): Using -1 as the seed.INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='batch', VARNORM='no', AGC='none'INFO: acmod.c(152): Reading linear feature transformation from c:/Projects/pocketsphinx-5prealpha-win32/pocketsphinx/bin/Release/x64/zero_ru.cd_cont_4000/feature_transformINFO: mdef.c(518): Reading model definition: c:/Projects/pocketsphinx-5prealpha-win32/pocketsphinx/bin/Release/x64/zero_ru.cd_cont_4000/mdef现在我正在尝试使Pythonpocketsphinx与.configpocketsphinx_continuous
查看完整描述

1 回答

?
梵蒂冈之花

TA贡献1900条经验 获得超5个赞

批处理和当前是相同的模式。它只是在某个时间点被重命名,它只取决于版本。

幻影检测可能是您的 jsgf 中词汇量非常小的结果,而不是 cmn。


查看完整回答
反对 回复 2022-11-29
  • 1 回答
  • 0 关注
  • 265 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号