OpenVoice icon indicating copy to clipboard operation
OpenVoice copied to clipboard

ModuleNotFoundError: No module named 'openvoice.text'

Open MANGOMONKEY9 opened this issue 1 year ago • 5 comments

trying to import:

from openvoice import se_extractor from openvoice.api import BaseSpeakerTTS, ToneColorConverter

and getting a ModuleNotFoundError. Tried almost everything. Any advice?

MANGOMONKEY9 avatar Apr 02 '24 19:04 MANGOMONKEY9

encountering the same issue

eschmidbauer avatar Apr 25 '24 18:04 eschmidbauer

encountering the same issue. was anyone able to resolve it?

nischalj10 avatar Apr 26 '24 16:04 nischalj10

similar error :/

NickyDark1 avatar Apr 26 '24 23:04 NickyDark1

Technically, in Python 3.3 and later, you can directly import from a folder (though not recommended) using the following syntax:

from folder_name.module_name import function_name # Assuming folder_name contains an __init__.py file

So in the openvoice case you have to call this from within a folder which is one level above the "openvoice" folder

sbolten avatar May 15 '24 15:05 sbolten

I encountered the same issue, in the end I git clone a new copy from the repo, and make sure IDE recognised it as a Python project then it works for me.

Also I cd into the /OpenVoice and do pip3 install -e . pip3 install git+https://github.com/myshell-ai/MeloTTS.git python3 -m unidic download

xiaoxxhuang avatar Aug 21 '24 08:08 xiaoxxhuang