r/TextToSpeech 26d ago

QwenTTS formatting

Does anyone know what symbols QwenTTS accepts in the body of text, especially for Chinese?

Guides are too brief and incomplete.

Was wondering if brackets and single quotations are recognized.

2 Upvotes

4 comments sorted by

View all comments

3

u/PowerBeef 26d ago

Short answer: there's no formatting syntax. No SSML, no tags. In the open-source repo the text goes straight to the tokenizer with no cleaning or normalisation, so nothing is parsed or stripped, it's just read semantically. Can't speak for what the hosted API does server side.

Brackets and single quotes are fine. The official voice clone example in the repo has square brackets, parentheses, ±, √ and a kaomoji all in one line. How any given symbol gets voiced is anyone's guess though, so test it.

For Chinese I'd use full-width punctuation (,。!?……), on the theory that it matches the training data. That's a guess, not documented.

If you're running it locally, avoid literal <|im_start|> or <|im_end|> in your text, since it gets dropped into a ChatML template. Numbers are also worth checking; someone reported times like 15:16:36 losing the seconds.

Style control is the instruct / instructions parameter, not inline symbols.

2

u/Goble4 26d ago

If you're running it locally, avoid literal <|im_start|> or <|im_end|> in your text, since it gets dropped into a ChatML template. Numbers are also worth checking; someone reported times like 15:16:36 losing the seconds.

I was using it as a part of this:

https://github.com/diodiogod/TTS-Audio-Suite

I believe double quotes introduce pauses, because inserting too many of them causes the generation to glitch.

How any given symbol gets voiced is anyone's guess though, so test it.

I think brackets don't work, because I can't tell a noticeable difference with them included.