我有一個(gè)解決方案(jsgf、dict、hmm),適用于:pocketsphinx_continuous -hmm zero_ru.cd_cont_4000 -dict vocabular.dict -jsgf calc.jsgf -inmic yes現(xiàn)在我試圖將它移植到 Python pocketsphinx 0.1.15( https://pypi.org/project/pocketsphinx/ ),我看到,在詳細(xì)的輸出中,Pythonpocketsphinx的配置與pocketsphinx_continuous配置不同。結(jié)果,Pythonpocketsphinx進(jìn)行了很多錯(cuò)誤的幻影檢測(cè)。我的 Python 腳本非常簡(jiǎn)單: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)通過(guò)將文本文件與我看到的輸出進(jìn)行比較,輸出中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現(xiàn)在我正在嘗試使Pythonpocketsphinx與.configpocketsphinx_continuous
Python pocketsphinx 0.1.15 配置與 pocketsphinx
慕田峪7331174
2022-11-29 15:58:38