myshell-ai / OpenVoice

Instant voice cloning by MIT and MyShell.
https://research.myshell.ai/open-voice
MIT License
29.81k stars 2.93k forks source link

ModuleNotFoundError: No module named 'openvoice.text' #166

Open MANGOMONKEY9 opened 7 months ago

MANGOMONKEY9 commented 7 months ago

trying to import:

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

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

eschmidbauer commented 6 months ago

encountering the same issue

nischalj10 commented 6 months ago

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

NickyDark1 commented 6 months ago

similar error :/

sbolten commented 6 months ago

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

xiaoxxhuang commented 2 months ago

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