MOSS-TTS-Nano icon indicating copy to clipboard operation
MOSS-TTS-Nano copied to clipboard

会出现丢句现象

Open tanguobin opened this issue 4 months ago • 3 comments

尤其是标点处,如“”、——等

tanguobin avatar Jul 10 '26 04:07 tanguobin

Hello! Could you please provide the original full text, whether WeText was enabled, the seed and sampling parameters, as well as the value of voice_clone_max_text_tokens (if applicable)? As a temporary workaround, you can replace em dashes (——) with commas or periods, remove curly quotation marks, and split long text into shorter sentences (for example, around 40–60 tokens per segment) before generating them separately.

alpacaking avatar Jul 29 '26 07:07 alpacaking

测试文本:你好!如果再见不到你,祝你早安!午安!晚安! 测试代码:https://github.com/jackhb1999/MOSS-TTS-Nano-JVM/blob/master/src/test/kotlin/test.kt 相关现象是第一个中文 ! 后能正确读出,后面的中文 !之后的句子就断了。

Hello! Could you please provide the original full text, whether WeText was enabled, the seed and sampling parameters, as well as the value of voice_clone_max_text_tokens (if applicable)? As a temporary workaround, you can replace em dashes (——) with commas or periods, remove curly quotation marks, and split long text into shorter sentences (for example, around 40–60 tokens per segment) before generating them separately.您好!能否请您提供原始完整文本、WeText 是否已启用、种子和采样参数,以及voice_clone_max_text_tokens的值(如适用)?作为临时解决方法,您可以在生成长文本前,将长破折号(——)替换为逗号或句号,删除左弯引号和右弯引号,并将长文本拆分为短句(例如每个片段约40–60个标记),再分别生成。

jackhb1999 avatar Aug 08 '26 03:08 jackhb1999

A data point with the official runtime, in case it helps narrow this down. Setup: infer.py at 8b7bcc9, MOSS-TTS-Nano 44502f80, MOSS-Audio-Tokenizer-Nano 6aa02b01, voice_clone with the zh_1 preset, default settings (voice_clone_max_text_tokens 75, normalize_tts_text on), WeTextProcessing off, RTX 5090, seeds 1–6. Transcripts are from Whisper large-v3-turbo.

The text from the comment above, 你好!如果再见不到你,祝你早安!午安!晚安!, goes through normalize_tts_text unchanged and stays one 22-character chunk (--print-voice-clone-text-chunks). Nothing is cut before generation. The speech replaces 午安 with 晚安 and repeats it in 6 of 6 seeds:

seed transcript
1 你好,如果再见不到你,祝你早安。晚安,晚安,晚安,晚安。
3 你好,如果再见不到你,祝你早安,晚安,晚安。
4 你好如果再见不到你祝你早安晚安晚安晚安晚安晚安

The other seeds are similar. Splitting each sentence into its own chunk (--voice-clone-max-text-tokens 8, four chunks) makes it worse: the very short chunks start babbling, and 午安 is still read as 晚安.

The punctuation from the original report keeps every sentence in all 6 seeds:

  • 这件事情——说实话——我早就知道了。可是我一直没有告诉任何人,直到今天。 (—— becomes a sentence break): CER 0.00
  • 他说:“明天见。”然后转身离开了。… with curly quotes: 0.04–0.14; every sentence is there, with a syllable added after 他说
  • 今天的会议在下午三点开始——请大家准时参加。“如果有问题”,请提前告诉我!谢谢!: 0.00–0.03

So in this setup the lost text comes from generation (an uncommon word swapped for a common one, then repeated), not from the text pipeline.

hiroki-abe-58 avatar Oct 22 '26 12:10 hiroki-abe-58