Applying changes to OEPocketsphinxController singleton

Home Forums OpenEars Applying changes to OEPocketsphinxController singleton

Viewing 2 posts - 1 through 2 (of 2 total)

  • Author
    Posts
  • #1031301
    nickkuh
    Participant

    Hi There

    Great framework – thanks for allowing others to benefit from your hard work!

    I’m trying to adjust various settings of OEPocketsphinxController after it’s started listening and the changes don’t seem to take effect.

    Is it required to stop and start the OEPocketsphinxController listening again for every tweak/change to the properties on OEPocketsphinxController?

    ie I want to be able to tweak the vadThreshold value at runtime depending on the background noise.

    Any suggestions/help gratefully received!

    #1031302
    Halle Winkler
    Politepix

    Welcome,

    Yes, nearly all of the properties of OEPocketsphinxController refer to pocketsphinx startup values or initialization values for the audio driver, so they don’t get recalculated by pocketsphinx or OpenEars’ audio driver on the fly. On the other hand, the public methods of OEPocketsphinxController refer to operations that OpenEars can make on an already-started instance of pocketsphinx, so they are for the most part expected to be called on an already-started listening session (like suspending or changing a model or grammar).

    A lot of attention has been paid to speeding up stopping and starting times in OEPocketsphinxController, so you may find on modern devices that there isn’t as much of a speed penalty to stopping and starting with new values as you may be concerned about, give it a look.

    It would be helpful to share your technique for objectively evaluating the level of background noise – if it is accurate an automatic vad adjustment could be added to the framework.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.