clone-voice icon indicating copy to clipboard operation
clone-voice copied to clipboard

The character limit

Open achiever1984 opened this issue 1 year ago • 4 comments

Hello.

When using Text -> Speech in the console I get the following text: [!] Warning: The text length exceeds the character limit of 182 for language 'ru', this might cause truncated audio.

Is it possible to increase the character limit? If yes, how?

achiever1984 avatar Jan 21 '24 10:01 achiever1984

install from source code

venv/Lib/site-packages/TTS/tts/layers/xtts/tokenizer.py line 597

jianchang512 avatar Jan 21 '24 13:01 jianchang512

But it may cause unpredictable problems. It is recommended to change the comma in overly long sentences to a period

jianchang512 avatar Jan 21 '24 13:01 jianchang512

This variant doesn't change anything, as the text generation itself doesn't seem to be affected in any way, if there are more than a certain number of characters, it starts to "glitch" and the result is very distorted.

I am more interested in how, for example, to make it read a book? After all, in the current form, it is simply impossible.

achiever1984 avatar Jan 22 '24 12:01 achiever1984

If the sentence length is determined by dividing it by periods, for example, if it exceeds 182 in Russian, it will prompt an error. There are two solutions: one is to change the comma to a period, and the other is to modify the character.json file in the clone directory, changing 182 to 300 or larger.

update to v0.888

jianchang512 avatar Jan 22 '24 12:01 jianchang512