How kuri-san-jp/speechsplice works
SpeechSplice is a research and evaluation repository for pronunciation control in encoder–decoder text-to-speech. Its main workflow uses benchmark text pairs to evaluate baseline and encoder-hidden-state replacement synthesis, then scores generated audio and aggregates results. The repository also covers multiple TTS systems, model-layer and multi-entity experiments, benchmark resources, and listening-test analysis. The README documents reproducible generation and shipped outputs; sampled code confirms the T5Gemma injection and shared audio utilities. Many experiment runners are unsampled, so their internal calls and result-writing links are omitted.
Main entry points: encoder_injection_t5gemma.py T5Gemma injection · scripts Other TTS splicing · inference_tts_utils.py T5Gemma inference · en_cross_culture_names.py Name pairs
Components 18
Benchmarks
- Name pairs
data/en_cross_culture_names.py - Heteronym pairs
data/en_heteronyms_500.py - Language benchmarks
data
Synthesis Experiments
- T5Gemma injection
scripts/encoder_injection_t5gemma.py - T5Gemma inference
src/_vendor/t5gemma_tts/inference_tts_utils.py - Audio tokenizer
src/_vendor/t5gemma_tts/data/tokenizer.py - Duration estimate
src/_vendor/t5gemma_tts/duration_estimator.py - T5Gemma model
src/_vendor/t5gemma_tts/models/t5gemma.py - Other TTS splicing
scripts - Multi-entity runs
scripts/multientity/tgt_only.py
Scoring and Analysis
- Whisper alignment
scripts/projection/forced_alignment_utils.py - Phoneme scoring
src/phoneme_per.py - MCD scoring
src/mcd_pysptk.py - TRM G2P-CER
src/score_trm_g2pcer_nopyojt.py - Table aggregation
scripts/aggregate_table1.py
Listening Study
- Listening results
human_eval/analysis/analyze_preference_primary.py - Human aggregation
scripts/aggregate_human_eval.py
Other components
- Experiment user
Connections 21
- Experiment user → Name pairs: selects pairs
README.md - Experiment user → Heteronym pairs: selects pairs
README.md - Experiment user → T5Gemma injection: runs experiment
README.md - Name pairs → T5Gemma injection: supplies cases
- Heteronym pairs → T5Gemma injection: supplies cases
- Language benchmarks → Other TTS splicing: benchmark systems
scripts/csm/run_csm_eval.py - T5Gemma injection → T5Gemma inference: uses inference
scripts/encoder_injection_t5gemma.py - T5Gemma injection → Audio tokenizer: uses tokenizer
scripts/encoder_injection_t5gemma.py - T5Gemma injection → Duration estimate: estimates duration
scripts/encoder_injection_t5gemma.py - T5Gemma inference → Audio tokenizer: tokenizes audio
src/_vendor/t5gemma_tts/inference_tts_utils.py - T5Gemma inference → Duration estimate: estimates duration
src/_vendor/t5gemma_tts/inference_tts_utils.py - Experiment user → Other TTS splicing: runs comparisons
README.md - Experiment user → Multi-entity runs: runs tests
README.md - Other TTS splicing → Whisper alignment: uses alignment
scripts/csm/run_csm_eval.py - Multi-entity runs → Other TTS splicing: shares splice logic
scripts/irodori/run_multientity_irodori.py - Experiment user → Phoneme scoring: scores audio
README.md - Experiment user → MCD scoring: scores audio
README.md - Experiment user → TRM G2P-CER: scores outputs
README.md - Experiment user → Table aggregation: recomputes tables
README.md - Experiment user → Listening results: reviews judgments
README.md - Listening results → Human aggregation: aggregates counts