dimension out of range (expected to be in range of [-2, 1], but got 2) #2516
Replies: 3 comments 1 reply
-
Hi, I’ve been running into the exact same Exception raised by I have a feeling this came up with one of the latest updates of Coqui.ai TTS, as I’ve been working with this for about a year now and this specific bug problem came up first a few weeks ago for me on both of my machines. Maybe downgrading to a pre-0.13 release helps? |
Beta Was this translation helpful? Give feedback.
-
I know what happens here. The short answer is, when chopping up text into sentences, sometimes it grabs something like a quote or something as it's own sentence - it tries to synthesize it and runs into an error. My solution suggestions: catch the error, and either try the same text again, or just try that bit again after removing superfluous text. |
Beta Was this translation helpful? Give feedback.
-
I, Did you solve this issue?
|
Beta Was this translation helpful? Give feedback.
-
I installed TTS through PyPi and I'm using this Python code to do the job for me:
it kinda works as it sometimes gets the job done but usually, I get hit with a
dimension out of range (expected to be in range of [-2, 1], but got 2)
As you can see i added
input_text.encode("ascii", "ignore").decode()
Andencoding='utf-8
so it might solve the problem but nothing is working. What am i missing here?Full logs:
Beta Was this translation helpful? Give feedback.
All reactions