亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

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 關注
  • 266 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號