Repository navigation
Commit ce884d3
committed
fix: multi-speaker lines drifting into the first speaker's voice
Multi-speaker input was grouped into text batches of up to 5 turns, each
generated in one pass. Within a pass the model tends to carry the voice
it opened with into later turns, so other speakers drift toward it (in
practice the narrator, speaker 0, who opens most batches).
Measured on a 3-voice, 8-turn scene with speaker ID (Resemblyzer,
calibrated on solo renders; Whisper word timestamps to segment turns),
24 seeds on an RTX 3090: 10/24 renders had wrong-voice lines (19 of 20
pulled into speaker 0's voice). Lower temperature made it worse.
Start a new batch at every speaker change (consecutive lines by one
speaker stay together): 0/24 renders with wrong-voice lines. Prefix
reuse keeps the extra batches cheap; an 18-turn scene runs at the same
RTF (0.70 alone, 0.82 with 4 concurrent) and transcribes intact.
FISH_SPLIT_SPEAKERS=0 restores the old grouping.1 parent e53bcb1 commit ce884d3
4 files changed
Lines changed: 36 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
53 | 59 | | |
54 | 60 | | |
55 | 61 | | |
| |||
751 | 757 | | |
752 | 758 | | |
753 | 759 | | |
754 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
755 | 764 | | |
756 | 765 | | |
757 | 766 | | |
| |||
768 | 777 | | |
769 | 778 | | |
770 | 779 | | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
771 | 783 | | |
772 | 784 | | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
773 | 794 | | |
774 | | - | |
| 795 | + | |
775 | 796 | | |
776 | 797 | | |
777 | 798 | | |
| |||
941 | 962 | | |
942 | 963 | | |
943 | 964 | | |
944 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
945 | 969 | | |
946 | 970 | | |
947 | 971 | | |
| |||
0 commit comments