tortoise-tts icon indicating copy to clipboard operation
tortoise-tts copied to clipboard

Please follow this installation guide

Open CodexOmega opened this issue 1 year ago • 4 comments

For all the people having issues getting this working i would advise following this install guide. It's easier for me just post the video link instead of trying to explain, It works flawlessly for me now. :)

https://www.youtube.com/watch?v=hOSsGOmDC3w

CodexOmega avatar Apr 29 '23 10:04 CodexOmega

I followed the video, which got me a lot further than I managed before, but it's giving me a run time error:

Traceback (most recent call last):
  File "C:\Users\andrew\anaconda3\tortoise-tts\tortoise\do_tts.py", line 7, in <module>
    from api import TextToSpeech, MODELS_DIR
  File "C:\Users\andrew\anaconda3\tortoise-tts\tortoise\api.py", line 24, in <module>
    from tortoise.utils.tokenizer import VoiceBpeTokenizer
  File "C:\Users\andrew\anaconda3\envs\tortoise-tts\lib\site-packages\tortoise-2.4.2-py3.9.egg\tortoise\utils\tokenizer.py", line 4, in <module>
    import inflect
  File "C:\Users\andrew\anaconda3\envs\tortoise-tts\lib\site-packages\inflect-6.0.4-py3.9.egg\inflect\__init__.py", line 77, in <module>
    from pydantic.typing import Annotated
ImportError: cannot import name 'Annotated' from 'pydantic.typing' (C:\Users\andrew\anaconda3\envs\tortoise-tts\lib\site-packages\pydantic-2.0a3-py3.9.egg\pydantic\typing.py)

What am I missing?

Stormthirst avatar May 03 '23 00:05 Stormthirst

@Stormthirst try

pip uninstall pydantic
pip install pydantic==1.9.1

GiveMeCodingHelp avatar May 04 '23 10:05 GiveMeCodingHelp

@Stormthirst try

pip uninstall pydantic
pip install pydantic==1.9.1

That worked! Thank you so much!

Stormthirst avatar May 04 '23 11:05 Stormthirst

@GiveMeCodingHelp Ditto error for me too!

File "C:\Users\XYZ\anaconda3\envs\tortoise-tts\lib\site-packages\inflect-6.0.4-py3.10.egg\inflect_init_.py", line 77, in from pydantic.typing import Annotated ImportError: cannot import name 'Annotated' from 'pydantic.typing' (C:\Users\XYZ\anaconda3\envs\tortoise-tts\lib\site-packages\pydantic-2.0b2-py3.10.egg\pydantic\typing.py)

Your solution worked also for me! Thanks

Magenta-6 avatar Jun 07 '23 06:06 Magenta-6