NaomiProject / Naomi

The Naomi Project is an open source, technology agnostic platform for developing always-on, voice-controlled applications!
https://projectnaomi.com/
MIT License
242 stars 49 forks source link

Phonetisaurus Fix #411

Closed aaronchantrill closed 3 months ago

aaronchantrill commented 3 months ago

Description

Import sphinxvocab and PhonetisaurusG2P modules after installing phonetisaurus with pip. Add locale to default pocketsphinx hmm_dir.

Related Issue

name 'PhonetisaurusG2P' is not defined #410

Motivation and Context

This change showed up because of the x86_64 docker image, where it is more difficult to just restart Naomi.py with the --repopulate flag.

How Has This Been Tested?

$ flake8 --config=.flake8 plugins/stt/pocketsphinx-stt/sphinxplugin.py $ python -m unittest discover I also updated the Naomi folder in the docker image with this branch and it worked.

Screenshots (if appropriate):

Types of changes

Checklist: