pocketsphinx-python
pocketsphinx-python copied to clipboard
CPU utilization
I am comparing CPU utilization of
pocketsphinx_continuous -hmm zero_ru.cd_cont_4000 -dict vocabular.dict -jsgf calc.jsgf -inmic yes
and of Python script
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,
cmn='current',
sampling_rate=16000,
buffer_size=2048,
no_search=False,
full_utt=False,
)
A pocketsphinx_continuous process uses from 1% to 5% of one core of my Core i3 CPU. Python script uses 100% of one core of CPU.
Why pocketsphinx-python uses a lot of CPU resources? How to reduce CPU utilization of the script?