Repository navigation
Chunk Irodori-TTS text at 100 characters by default - #1027
Merged
Merged
Conversation
The default chunk size was the model's text window, max_text_len = 256, applied as 256 characters, but each chunk is generated within max_duration_sec (30 s), about 160 Japanese characters at the model's pace. A longer chunk was squeezed into 30 s and its second half garbled without an error. Use 100 characters, close to the upstream Irodori-TTS-Server's punctuation split after 80 characters; a text window smaller than that still caps it.
Owner
|
@hiroki-abe-58 Merged! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Irodori-TTS chunks long text at
max_text_len, the 256-token text window, applied as 256 characters. Each chunk, however, is generated withinmax_duration_sec(30 s by default), which is about 160 Japanese characters at the model's pace. A chunk of about 240 characters needs about 45 s of speech. It is squeezed into 30 s and its second half comes out garbled, without an error or warning.On a 404-character text, the first default chunk ends like this (Whisper transcript):
The source reads:
Upstream Irodori-TTS synthesizes one utterance of at most 30 s and doesn't chunk. The author's Irodori-TTS-Server does long text by splitting at the first punctuation mark after 80 non-space characters (
IRODORI_DEFAULT_CHUNK_MIN_CHARS=80).This PR makes the default 100 characters, still capped by
max_text_lenif a checkpoint's window is smaller. An explicittext_chunk_sizestill wins. The spec and docs are updated.Measurements
RTX 5090, Windows 11, CUDA build (
120a-real),irodori-tts-v4-small-q8_0.gguf. CER is from Whisper large-v3-turbo with sequential long-form decoding. "main" is main's default; "100" is this PR's default.no_ref=trueno_ref=trueduration_scale=1.3duration_scale=1.3no_ref=trueOther chunk sizes:
duration_scale=1.3, 150 already loses time (90.0 s and 71.5 s of audio), so it leaves no headroom for slower speech.Cost and memory:
Byte checks:
--text-chunk-size 100(20 WAVs across all the modes above).--text-chunk-size 256, the old default, so short text is unchanged.--mode streaming) also takes the new default.🤖 Generated with Claude Code