Skip to content

the ultimate vocal synthesizer - sing, speak, beatbox, and more

Rust

Hill climb 23: log (kept: /v z/'s folds part and the voice weakens; speakers 1.359 -> 1.287; /ð/ held back by its duration term and "with a")

Jameson Hodge0330c96d3584
diff --git a/docs/hill-climb/log.md b/docs/hill-climb/log.md
index d389d62..55251e8 100644
--- a/docs/hill-climb/log.md
+++ b/docs/hill-climb/log.md
@@ -1434,10 +1434,9 @@ Largest costs first. Costs are the speakers' report, female / male where both.
1. **The teeth source stops at 5 kHz.** Closed by experiment 21: its band follows the jet at the
teeth. Centroid costs now /z/ 6.8 / 2.2, /s/ 3.2 / 1.5, /dʒ/ 3.2. What is left isn't the source's
corner, see lead 10.
-2. **/ð v/ too loud.** /ð/ −15 / −10 dB re the stressed vowels against −22 / −21; /v/ −13 / −10
- against −20 / −19. Costs 2.4 / 4.1 and 1.1 / 1.8. Real weak voiced fricatives lose voicing
- amplitude as the oral pressure rises. Look at their constriction, and at what the voicing does
- behind it. This also frees the next lead, which lifts them further.
+2. **/ð v/ too loud.** Half closed by experiment 23: /v z/'s folds part and their voice weakens (level
+ /v/ 0 / 1.1). /ð/ is still −14 / −10 dB against −22 / −21, costing 3.0 / 4.3 (lead 13), and it still
+ blocks lead 3.
3. **The female source.** Experiment 13: about 5 dB of her 10 dB fricative gap is her vowels, too
loud for her folds. The glottal pulse is 0.17·k² cm², 0.81 of the male's, where her peak flow is
about 0.64 of his (Holmberg et al. 1988) and her folds about 0.67 of his length (Hirano). A
@@ -1476,7 +1475,20 @@ Largest costs first. Costs are the speakers' report, female / male where both.
12. **The voiced /z/'s jet** (from experiment 21). Its v/D swings 3.3–6.5 kHz with the voicing (12–24
m/s, /s/ 30), so it gains little (female 4.0 → 4.2 kHz), where real /z/ sits within 5–11 % of /s/.
The synth voices /z/ throughout (voiced share 0.77 / 0.34 in the men's terms); real /z/ partly
- devoices, which would put more of the pressure across the constriction.
+ devoices, which would put more of the pressure across the constriction. Experiment 23 started this
+ (centroid /z/ 5.9 / 1.9, 0.72 / 0.69 voiced); a wider opening takes it further once lead 14 allows.
+13. **/ð/** (from experiment 23). The same opening as /v z/ brings its level right, but three things stop
+ it. MFA reads its true extent, 70–110 ms where speakers' /ð/ reads 40–50. Whisper hears a sentence's
+ first "The" as "with a". And after silence or a stop or fricative, speakers' /ð/ isn't a voiced
+ fricative at all: 40 ms, weak in every band, a low band of −29 to −35 dB where between vowels it is
+ −20 to −22. That looks like the stop-like /ð/ of Zhao 2010 (JASA 128, 2009, seen only as a summary in
+ a search). Its plan and its form need work first, not just its folds.
+14. **A wider opening for /v z/** (from experiment 23). 0.12–0.14 match the speakers' voicing better, and
+ 0.14 puts /z/'s low band within about 3 dB of theirs. Only female level /z/ stops it: voicing was
+ filling her 10 dB frication gap, so it waits on leads 3 and 4.
+15. **The male /v f θ/ are too bright** (from experiment 23). 4–12 kHz, dB re the stressed vowels: /v/ −24
+ (men −40), /f/ −22 (−29), /θ/ −21 (−30). The female ones are within 4 dB of the women's. Not
+ investigated: their noise gain or their constriction's jet.
### 21. The teeth source's band follows the jet at the teeth, with its power held (kept)
@@ -1710,3 +1722,143 @@ use the clean render.
1.646 (held-out 1.710), after experiment 22 1.359 (held-out 1.533). `out/hill/baseline/tsp` and
`out/hill/best/tsp` hold those runs. Experiments 21 and 22 were kept on version 1 and stand. Their
score numbers aren't comparable with later ones.
+
+### 23. /v z/'s folds part about as wide as the constriction, and the voice weakens behind it (kept, /ð/ held back)
+
+- Hypothesis (batch 3's lead 2): /ð v z/ sit in the voiced regime, with no pressure across the constriction
+ and nothing to weaken the voice. Measured before changing anything (MFA's phones, the training tokens, dB
+ re the stressed vowels, the middle half; female / male):
+
+ | | below 1.2 kHz: speakers | synth | 4–12 kHz: speakers | synth |
+ |---|---|---|---|---|
+ | /ð/ | −28.5 / −27.2 | −13.5 / −9.8 | −38 / −39 | −38 / −30 |
+ | /v/ | −22.9 / −22.5 | −13.6 / −10.1 | −37 / −40 | −35 / −27 |
+ | /z/ | −37.2 / −32.8 | −21.3 / −15.0 | −15 / −15 | −29 / −22 |
+
+ So the error is the voice, 10–18 dB too strong, and in /z/ it also hides a real fricative. Real /z/ loses
+ its voice within its first two fifths (below 1.2 kHz by fifths: −15 −29 −38 −38 −34 / −16 −25 −34 −34 −32).
+ The candidates:
+ - **(a) The constriction: not the cause.** "The" reaches 0.174 / 0.141 cm², its targets. Narrowing /z/
+ from 0.104 to 0.074 cm² moves its level by 0.1 / 0.4 dB.
+ - **(b) The voicing: the cause.** In a held VCV at 0.035, the mean glottal area is 0.09 / 0.075 cm², about
+ half the constriction. In /ð v z/ the oral pressure is 1.2, 0.7, 1.9 cmH2O (male), and the pressure across
+ the folds 4.5–5.5. The source's gate is fully open from 4 cmH2O, so it doesn't weaken at all.
+ - **(c) The judge's window: not the cause.** The synth's /ð v/ have a flat plateau through four fifths, so
+ it isn't reading the vowel's edge.
+ - **Source.** Stevens 1971, as Shadle 2010 (abstract, read) gives it: voicing and frication together need the
+ subglottal pressure divided across the larynx and the constriction, and devoicing is common. Elie & Laprie
+ (preprint dated 2016, read in part): three regimes by the glottal opening: A nearly pure voice, like an
+ approximant; B mixed and unstable; C voiceless. The range hardly varies with place or constriction. Their
+ citing of Stevens et al. 1992 for "about equal areas" I read only through other papers. None gives me a cm²
+ value, so the number comes from the balance and the sweep below.
+ - **The sweep** (held VCV, 100 ms, below 1.2 kHz re the vowel, male / female; no new code in the source: the
+ model's pressure and abduction gates do the rest):
+
+ | opening | /ð/ | /v/ | /z/ | mean glottal area, male |
+ |---|---|---|---|---|
+ | 0.035 | −14 / −17 | −12 / −15 | −17 / −19 | 0.09 |
+ | 0.08 | −19 / −21 | −16 / −19 | −23 / −25 | 0.13 |
+ | 0.12 | −27 / −27 | −21 / −23 | −36 / −36 | 0.15 |
+ | 0.16 | −43 / −40 | −31 / −31 | −50 / −54 | 0.18 |
+ | speakers | −27 / −28 | −22 / −23 | −33 / −37 | |
+
+ One opening gives all three sounds about the speakers' voice, with /z/ devoicing most because its
+ constriction is the narrowest: that comes from the model, not from a value per sound.
+- Change: `crates/chimera/src/phonetics/planner.rs`, and a test. A voiced fricative's opening goes 0.035 → 0.09,
+ starting 15 ms before `t0` as a voiceless fricative's does. **/ð/ stays at 0.035: this is an exception for one
+ sound, and it leaves the lead's largest term alone.** Values tried, speakers' training score from 1.359 (F =
+ female, M = male; breaks only):
+
+ | form | score | verdict |
+ |---|---|---|
+ | all three, 0.12, `t0`–`t1` | 1.232 | WORSE: duration ð F +1.96, M +2.42; M duration v +1.11; F level z +0.64, burst d +0.63 |
+ | the same, closing 30 ms early | 1.271 | WORSE: duration ð +2.43, +2.28; F level z +0.52; M duration dʒ +0.77 |
+ | the same, inside the span | 1.321 | WORSE: duration ð +2.56, +2.01; level ð only −15 / −13 |
+ | 0.12, every fricative's release 20 ms early | 1.288 | WORSE: duration ð +2.46, +1.94; F duration s +0.71 |
+ | 0.12, starting 15 ms later | 1.238 | WORSE: duration ð +2.03, +2.42; F level z +0.68 |
+ | 0.10 / 0.08, the same | 1.271 / 1.297 | WORSE: duration ð +1.52 / +0.73, +2.49 / +2.58 |
+ | 0.12, /ð/ (30, 20) | 1.242 | WORSE: duration ð +2.11, +1.50, and five others |
+ | 0.12, /ð/ (20, 15) | 1.216 | WORSE: F duration ð +1.37, burst d +0.79, level z +0.60; M duration g +0.53 |
+ | **0.14, /ð/ (20, 15), starting 10 ms later** | **1.191** | WORSE: F burst d +0.79, level dʒ +0.77, level z +0.80; **Whisper 45.03 %** |
+ | 0.09, /ð/ (20, 15) / (25, 15) / (30, 20) / (15, 10) | 1.266 / 1.287 / 1.278 / 1.256 | WORSE: F duration ð each time, then whichever of burst d, duration g, ŋ, h |
+ | 0.09 / 0.12, /ð/ released 30 ms early, the plan kept | 1.308 / 1.251 | WORSE: duration ð F +2.10 / +2.23, M +1.52 / +1.22 |
+ | /v z/ 0.09, /ð/ 0.035, starting 15 ms later | 1.297 | WORSE by 0.01: M duration ð +0.51 |
+ | /v z/ 0.12, the same | 1.279 | WORSE: F level z +0.69, M duration ð +1.39 |
+ | /v z/ 0.09, starting 10 ms later | 1.288 | BETTER, but fails `an_f_does_not_click`: /ɑvɑ/ +9.9 / +11.3 dB (limit 6) |
+ | /v z/ 0.09, 10 ms early | 1.277 | BETTER; +5.8 / +5.1 dB |
+ | **/v z/ 0.09, 15 ms early (kept)** | **1.287** | **BETTER; +5.6 / +4.9 dB; Whisper 37.75 %** |
+ | /v z/ 0.08, 15 ms early | 1.293 | BETTER |
+
+ **Read this before trusting the choice.**
+ - **0.09 isn't a measured opening.** It is the widest that female level /z/ allows (0.10 breaks it, 0.82–0.85).
+ It gives a glottal area of about 0.13 cm² against constrictions of 0.10–0.18, which suits "about equal".
+ But 0.12–0.14 match the speakers' voice better. Female level /z/ read right for the wrong reason: the voice
+ was filling her 10 dB frication gap.
+ - **The start time passes a test, and I don't claim the physics.** I reasoned that the folds should part as
+ the constriction forms (10 ms into the span here), and that fails `an_f_does_not_click`. That isn't a click:
+ the test compares the loudest 2 ms from 20 ms before /v/ with /v/'s first 30 ms, so a weaker /v/ makes the
+ vowel's own pulses read as one. Rather than touch a judge, I took a voiceless fricative's start, which
+ weakens those pulses. −10 ms scores 0.01 better; I kept −15 because it adds no new value.
+ - **The kept form is about half the gain measured.** With /ð/ the score reaches 1.19–1.23.
+ - **Several breaks are the aligner.** Female burst /d/ moved −1.2 dB as a median, but its paired median moved
+ −0.07 dB, with 307 of 735 tokens moving by more than 1 dB. Shortening /ð/ re-times everything after it,
+ which is why changing the plan rolled up a different term each time (burst d, durations g, ŋ, h).
+- **Why /ð/ is held back.**
+ - **The duration term was right for the wrong reason.** Before the change, the female sentence-initial /ð/
+ reads 40 ms with 100 ms of /ə/ after it: MFA gives the fully voiced /ð/ to the vowel. The constriction really
+ lasts from about 10 ms before the plan to 20 ms after it, so 70–90 ms. The male already reads 110 ms there.
+ Weaken the voice at all and MFA reads the true extent (0.08 is enough). A release 20–30 ms early barely moves
+ it, and (20, 15) moves it to 0.64–0.75 at the price above.
+ - **Whisper.** At the 0.14 form, 36.09 → 45.03 %, and a sentence's first "The" becomes "with a" in eight
+ sentences (a weak voice and a jet, so /θ/?). The singer held there (0.586, note MCD 8.613 dB).
+ - **Speakers' /ð/ isn't one sound** (level, and below 1.2 kHz; female, then male):
+
+ | after | female | male |
+ |---|---|---|
+ | a vowel | −20.4, −21.8 | −19.6, −20.1 |
+ | a liquid | −16.5, −17.8 | −19.6, −21.8 |
+ | a nasal | −7.6, −7.8 | −8.6, −8.7 |
+ | a stop | −23.1, −30.1 | −23.1, −29.2 |
+ | a fricative | −24.4, −34.4 | −24.4, −33.3 |
+ | silence | −27.3, −34.7 | −25.3, −30.9 |
+
+ Only between vowels does it look like /v/. After a nasal it is about a nasal's level, and after silence, a
+ stop or a fricative it is short with little voice. Zhao 2010 describes a stop-like /ð/; I saw only a search's
+ summary of it, and I didn't test that this is what these tokens are. So the folds are probably the wrong
+ place to fix the rest. See lead 13.
+- Result in the renders: below 1.2 kHz by fifths, /z/ −15 −17 −21 −26 −28 / −10 −13 −15 −18 −20 → −17 −22 −28 −31 −30
+ / −14 −18 −22 −25 −24 (speakers above). /v/ −11 −12 −14 −15 −13 / −7 −9 −10 −11 −11 → −14 −16 −19 −20 −19 / −9 −11
+ −13 −16 −15 (speakers −14 −19 −23 −24 −24 / −14 −19 −22 −23 −23). At the 0.14 form /z/ read −20 −28 −36 −39 −35 / −16
+ −24 −30 −32 −29, and its male frication −20 −16 −15 −16 at 2–12 kHz against the men's −23 −16 −14 −15.
+- Speakers: 1.359 → **1.287** (training, BETTER), 1.533 → 1.432 (held-out). Female 2.004 → 1.918, male 0.714 → 0.657.
+ - Groups, female: level 2.09 → 2.12, sibilants 3.08 → 2.86, timing 0.85 → 0.77, spectrum 1.35 → 1.31, voicing 0.36 →
+ 0.30, intonation 1.23 → 1.27. Male: level 0.68 → 0.64, sibilants 0.88 → 0.80, timing 0.59 → 0.53, voicing 0.51 →
+ 0.47.
+ - Down: duration /z/ 3.88 → 2.91, 2.92 → 1.76 (0.46 → 0.56, 0.53 → 0.65; speakers 0.95, 0.92); duration /v/ 1.97 →
+ 0.95, 0.28 → 0; level /v/ 0.98 → 0 (−13.1 → −17.9), 1.75 → 1.08 (−10.2 → −12.5; speakers −19.7, −19.4); centroid /z/
+ 6.83 → 5.91, 2.28 → 1.90; male level /p/ 1.32 → 0.91, duration /ð/ 0.59 → 0.22, /j/ 1.41 → 1.15. Diagnostic voiced /z/
+ 3.48 → 2.66, 2.95 → 2.29; spectrum /z/ 2.20 → 1.52, 2.27 → 1.53; female spectrum /v/ 0.84 → 0.44.
+ - Up: female level /z/ 0.28 → 0.77 (−18.2 → −20.3; women −12.6), burst /d/ 3.31 → 3.57, level /g/ 3.24 → 3.48, /t/ 4.44
+ → 4.62; male duration /n/ 1.82 → 2.10. Diagnostic male spectrum /v/ 0.92 → 1.33.
+ - Level /ð/ unmoved: −13.8 and −10.0.
+- Whisper: 36.09 → 37.75 % (training; baseline 36.75, NO CLEAR CHANGE, limit 39.75), 42.67 → 39.33 % (held-out).
+ - Better: "Four hours of steady work" −3 and −4 (from "For our lifestyle to work fastest" to "4 hours of steady work
+ fastest": the /v/ of "of" is heard); "Her round table sings the dark rope" female −1; "The thin road" female −1.
+ - Worse: "Rice is often served" +4 and +3 ("served" → "certain", "short"), "The hogs were fed" male +2, "The green chair"
+ female +2. I didn't look into why "served" loses. Within the ±2 points of a small change.
+- Singer: 0.580 → 0.587 (training; baseline 0.587, NO CLEAR CHANGE), 0.798 → 0.805 (held-out; baseline 0.811). Guards hold:
+ 0 notes off time, 0 dropped gestures, note MCD 8.611 dB (guard 8.714), envelope correlation 0.812, pitch error 4.82 cents.
+ This gives back experiment 22's 0.006, which I didn't explain.
+- Speed: `os=2` 18.4 % at load average 11 (baseline 24.7 %, also read at 11).
+- Tests: fixtures blessed twice; `cargo test --workspace` 115 pass, 2 ignored, including `consonant_artifacts`; `bun run test`
+ 30 pass; `bun run typecheck` clean. Fixtures restored. New: `crates/chimera/tests/voiced_fricatives.rs`, whose limits sit
+ between the two engines: /z/ −9.8 / −11.8 dB before and −15.2 / −17.7 now (limit −13), /v/ −4.3 / −4.7 and −8.1 / −9.1
+ (limit −6.5). The "before" values were read with the start 10 ms into the span, not the kept −15 ms. Nobody has listened to it.
+- Commit: e794fd2.
+- This ran longer than the hour the brief allows, about two, mostly on the /ð/ forms above.
+- Next:
+ - **/ð/ (lead 13) still blocks lead 3**, and lead 3 or 4 is what lets /v z/ open further (lead 14). Level /ð/ has to be fixed
+ with /ð/'s own form, or the owner decides that its duration term may break, since the old value was the aligner's. That
+ is a decision for the owner, not this log: the 0.14 form needs a fix for "with a" first in any case.
+ - Don't retry the folds alone on /ð/, or a shorter /ð/ alone: the tables above cover both.
+ - **Duration /z/ may now respond to its plan** (`z` is (75, 40), speakers' 80–90 ms), since MFA can see it (lead 6).