Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

CPU utilization #59

Open
KhArtNJava opened this issue May 20, 2020 · 0 comments
Open

CPU utilization #59

KhArtNJava opened this issue May 20, 2020 · 0 comments

Comments

@KhArtNJava
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant