Add /d/ to the IPA table: voiced alveolar plosive
/d/ is /t/ with voicing: no new mechanism, the 'voiced' token already selects the voice bar. Its consonant splines are identical to /t/'s (7 of 7). Measured: voice bar -28.9 dB re the following vowel (/b/ -29.2, /t/ -38.7, /p/ -40.1), burst peak 3950 Hz as /t/, burst only at its own release. The /d/-over-/t/ test measures the voice bar by deviation, as the /b/ and /p/ test does: the closure RMS window read 2.8 dB apart because of the slow offset of a shutting tract. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8d50819eac
commit
ad780ce0e1
4 changed files with 76 additions and 5 deletions
|
|
@ -150,7 +150,8 @@ Re-measure 2026-11-12 on main c0e6b98 (`tools/formant-check/weak_spots.py` over
|
|||
- /t/ closure leak, 2026-11-12 (explicit descriptor, not in the table; /ata/ against /apa/ without burst, closure = 0.2 to 0.65 of the consonant, dB re the mean power of the flanking vowels): the alveolar closure was held at the nasal's 0.03 cm aperture and opened at 0.5, and read -14.3 dB against /p/ -22.1 (the lips seal /p/ whatever the tongue does); the same window with the aperture 0 for the whole gesture, -24.3. A non-labial plosive now holds aperture 0 to 0.65: -24.9 dB (test run) against /p/ -20.4.
|
||||
- /k/, 2026-11-12 (the same /aka/ frame, closure 0.2 to 0.65 of the consonant, dB re the flanking vowels, burst removed): closure -14.9 dB against /p/ -20.4 and /t/ -24.9; the same closure with the glottal source's flow scale held at 0, -22.7 dB, so the tract seals and the leak is the voicing (150 Hz) the voiceless source still carries, reaching the output through a closure that leaves a short rear cavity. At the /t/ place (cell 36.7) the same /k/ gesture reads -24.8 dB, so it is the place and not the gesture. Silencing voicing in voiceless stops would change /p/ and /t/ (pinned); reported as an unmet criterion, not worked around. Velar place 9.81 cm behind the lips (0.44 of the tract; between /u/ narrowest dorsal section 26, 6.97 cm, and /a/ pharyngeal section 13, 12.14 cm). Burst: peak 0.0506 against the following vowel's 0.1129 (0.45), spectral peak 3100 Hz against Chodroff and Wilson 2014 /k/ 2868 Hz (/t/ 3950 Hz by the same measure); centroid 4626 Hz against /t/ 3629 Hz by the same measure (not judged: no literature centroid retrieved).
|
||||
Its injected burst peaked at 0.76 of the following vowel's peak at the shared gain 0.06 (/b/ 0.19): `TongueStopBurstGain` 0.03 gives 0.39 (0.0438 against 0.1129). Burst spectrum unchanged by the gain: peak 4011 Hz, centroid 5796 Hz, inside 3.5-7 kHz. Not met: /t/ above /p/ in burst peak (/p/ 7087 Hz above 1 kHz, 434 Hz below): the labial burst is still injected at the glottal end, which this branch pins. /k/ closure at the old 0.44 fraction is not sealed (core -15.7 dB). Unheard.
|
||||
- Phones the tract cannot make: `WordRender` refuses /t/, /d/, /k/, /l/ with exit 4 (`UNSUPPORTED PHONES (the tract has no gesture for them; nothing rendered): t`); the table holds p b m n s z ʃ ʒ ʍ w and the Story vowels. A direct `phoneme_gesture` on an unknown IPA symbol still falls back to an alveolar approximant (`GestureDescriptor`); not changed here.
|
||||
- /d/, 2026-11-13 (table entry `voiced_alveolar_plosive`, no new mechanism: the `voiced` token selects the voice bar as it does for /b/): its consonant splines are identical to /t/'s (7 of 7: closure, contact, burst site and gain, source level aside), so closure position, duration and burst are /t/'s. Voice bar (word-initial, closure 0.03-0.058 s against the following vowel, deviation): /d/ -28.9 dB, /b/ -29.2, /t/ -38.7, /p/ -40.1; /d/ over /t/ 9.8 dB. Burst spectral peak 3950 Hz for both /d/ and /t/ (Chodroff and Wilson 2014: /d/ 4878, /t/ 5216, so the same place gives the same peak here, 0 Hz apart against their 338). Burst 0.0603 peak at its own release, 0.00002 before and 0.00000 after. The alveolar closure's voice bar does not differ from the labial one at this resolution (0.3 dB), so no number needed tuning. Unheard.
|
||||
- Phones the tract cannot make: `WordRender` refuses /l/ with exit 4 (`UNSUPPORTED PHONES (the tract has no gesture for them; nothing rendered): l`); the table holds p b t d k m n s z ʃ ʒ ʍ w and the Story vowels. A direct `phoneme_gesture` on an unknown IPA symbol still falls back to an alveolar approximant (`GestureDescriptor`); not changed here.
|
||||
|
||||
Mutations (hand-applied, restored, each run against the named tests): pitch ratio ignored, burst removed, burst not shaped by opening, burst gain x20 (0.06 to 1.2), stress duration ignored,
|
||||
stress pitch ignored, stress amplitude ignored, secondary equal to primary, probe timeline sample rate re-hardcoded to 48000: nine of nine killed. Script: `work/mut-b3.sh` in the aqua workspace.
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ public static class PatchScript
|
|||
"p" => "voiceless_bilabial_plosive",
|
||||
"b" => "voiced_bilabial_plosive",
|
||||
"t" => "voiceless_alveolar_plosive",
|
||||
"d" => "voiced_alveolar_plosive",
|
||||
"k" => "voiceless_velar_plosive",
|
||||
"m" => "voiced_bilabial_nasal",
|
||||
"n" => "voiced_alveolar_nasal",
|
||||
|
|
|
|||
|
|
@ -217,15 +217,22 @@ public sealed class StressAndReleaseRenderTests(ITestOutputHelper output)
|
|||
[Theory]
|
||||
[InlineData("b", -34, -26)]
|
||||
[InlineData("p", -60, -38)]
|
||||
[InlineData("d", -34, -26)]
|
||||
public void PlosiveClosureCarriesTheVoiceBarOnlyWhenVoiced(string ipa, double lowDb, double highDb)
|
||||
{
|
||||
var db = VoiceBarDb(ipa);
|
||||
if (double.IsNaN(db)) return;
|
||||
output.WriteLine($"/{ipa}/ closure {db:F1} dB re the following vowel");
|
||||
Assert.InRange(db, lowDb, highDb);
|
||||
}
|
||||
|
||||
// The closure's deviation (the slow offset of a shutting tract is not sound) against the following vowel's, for a word-initial consonant.
|
||||
private double VoiceBarDb(string ipa)
|
||||
{
|
||||
var script = IpaGestureExperiment.BuildWordScript(
|
||||
[(new IpaGestureExperimentTarget("w_0_c", ipa, "", 0.095f), 1f), (new IpaGestureExperimentTarget("w_1_a", "a", "", 0.18f), 1f)], 140);
|
||||
var x = Render(script, 0.4f);
|
||||
if (x is null) return;
|
||||
var db = 20 * Math.Log10(Math.Max(1e-9, Deviation(x, 0.03, 0.058)) / Deviation(x, 0.15, 0.25));
|
||||
output.WriteLine($"/{ipa}/ closure {db:F1} dB re the following vowel");
|
||||
Assert.InRange(db, lowDb, highDb);
|
||||
return x is null ? double.NaN : 20 * Math.Log10(Math.Max(1e-9, Deviation(x, 0.03, 0.058)) / Deviation(x, 0.15, 0.25));
|
||||
}
|
||||
|
||||
private static SynthPatch WithoutBurst(SynthPatch p) =>
|
||||
|
|
@ -418,4 +425,52 @@ public sealed class StressAndReleaseRenderTests(ITestOutputHelper output)
|
|||
Assert.InRange(peak, 2000, 4000);
|
||||
Assert.True(peak < tPeak, $"/k/ peak {peak:F0} Hz is under /t/ {tPeak:F0} Hz");
|
||||
}
|
||||
|
||||
// /d/ is /t/ with voicing, as /b/ is /p/ with voicing: the same gesture, so the splines that shape the tract are identical and the two differ
|
||||
// in the voice bar through the closure and in nothing else the burst carries. Chodroff and Wilson 2014: /d/ burst peak 4878 Hz, /t/ 5216.
|
||||
[Fact]
|
||||
public void StopDDiffersFromStopTOnlyByVoicing()
|
||||
{
|
||||
static SynthPatch Word(string ipa) => PatchScript.Parse(IpaGestureExperiment.BuildWordScript(
|
||||
[(new IpaGestureExperimentTarget("w_0_a", "a", "", 0.18f), 1f), (new IpaGestureExperimentTarget("w_1_c", ipa, "", 0.095f), 1f), (new IpaGestureExperimentTarget("w_2_a", "a", "", 0.18f), 1f)], 140));
|
||||
static string[] Shape(SynthPatch p) => p.ControlSplines
|
||||
.Where(s => s.Name.StartsWith("w_1_c", StringComparison.Ordinal) && !s.Name.StartsWith("w_1_c_source", StringComparison.Ordinal))
|
||||
.Select(s => s.SurfacePath + "|" + s.Name[5..] + "|" + string.Join(";", s.Points.Select(q => $"{q.TimeSeconds:R}:{q.Value:R}")))
|
||||
.Order().ToArray();
|
||||
var t = Shape(Word("t"));
|
||||
var d = Shape(Word("d"));
|
||||
output.WriteLine($"/t/ {t.Length} consonant splines, /d/ {d.Length}");
|
||||
Assert.NotEmpty(d);
|
||||
Assert.Equal(t, d);
|
||||
|
||||
var tDb = VoiceBarDb("t");
|
||||
var dDb = VoiceBarDb("d");
|
||||
output.WriteLine($"closure re the following vowel: /t/ {tDb:F1} dB, /d/ {dDb:F1} dB");
|
||||
if (double.IsNaN(tDb)) return;
|
||||
Assert.True(dDb >= tDb + 8, $"the voice bar lifts the /d/ closure ({dDb:F1} dB) at least 8 dB over /t/ ({tDb:F1} dB)");
|
||||
var (dPeak, _) = BurstSpectrum("d", "");
|
||||
var (tPeak, _) = BurstSpectrum("t", "");
|
||||
output.WriteLine($"burst spectral peak: /t/ {tPeak:F0} Hz, /d/ {dPeak:F0} Hz");
|
||||
Assert.True(Math.Abs(dPeak - tPeak) <= 1000, $"/d/ burst peak {dPeak:F0} Hz within 1 kHz of /t/ {tPeak:F0} Hz");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void StopDBurstExistsOnlyAroundItsOwnRelease()
|
||||
{
|
||||
IpaGestureExperimentTarget Phone(string label, string ipa, float seconds) => new($"w_{label}", ipa, "", seconds);
|
||||
var script = IpaGestureExperiment.BuildWordScript(
|
||||
[(Phone("0_n", "n", 0.095f), 1f), (Phone("1_a", "a", 0.18f), 1f), (Phone("2_d", "d", 0.095f), 1f), (Phone("3_a", "a", 0.18f), 1f), (Phone("4_n", "n", 0.095f), 1f)], 140);
|
||||
var withBurst = Render(script, 0.77f);
|
||||
var withoutBurst = Render(script, 0.77f, WithoutBurst);
|
||||
if (withBurst is null || withoutBurst is null) return;
|
||||
var burst = withBurst.Zip(withoutBurst, (x, y) => x - y).ToArray();
|
||||
const double dFrom = 0.275, dTo = 0.37;
|
||||
var atRelease = Peak(burst, dFrom + 0.095 * 0.6, dTo + 0.02);
|
||||
var leading = Peak(burst, 0, dFrom);
|
||||
var trailing = Peak(burst, dTo + 0.12, 0.77);
|
||||
output.WriteLine($"/d/ burst peak {atRelease:F4} at the release, {leading:F5} before the plosive, {trailing:F5} after it");
|
||||
Assert.True(atRelease > 0.004, "the burst is a transient of audible size");
|
||||
Assert.True(leading < atRelease / 20, "no burst before the plosive's own gesture");
|
||||
Assert.True(trailing < atRelease / 10, "no burst after the plosive");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,6 +82,20 @@ public sealed class WeksaPhonesTests
|
|||
Assert.Contains(patch.ControlSplines, s => s.SurfacePath == "/vocal/contacts/0/release_flow" && s.Name.StartsWith("ata_1_t", StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WeksaWordPlanAcceptsD()
|
||||
{
|
||||
var word = WeksaPhonesReader.Parse(Line($"[{Ph("ɑ", "none")},{Ph("d", "none")},{Ph("ɑ", "none")}]"));
|
||||
var plan = WeksaWordPlan.From(word, "ada");
|
||||
Assert.True(plan.Renderable, string.Join(",", plan.Unsupported.Select(p => p.Ipa)));
|
||||
Assert.Empty(plan.Unsupported);
|
||||
// d names a plosive, not the approximant GestureDescriptor falls back to for a phone the table lacks
|
||||
Assert.True(PatchScript.TryIpaDescriptor("d", out var descriptor));
|
||||
Assert.Equal("voiced_alveolar_plosive", descriptor);
|
||||
var patch = PatchScript.Parse(IpaGestureExperiment.BuildWordScript(plan.Phones.ToArray(), 140));
|
||||
Assert.Contains(patch.ControlSplines, s => s.SurfacePath == "/vocal/contacts/0/release_flow" && s.Name.StartsWith("ada_1_d", StringComparison.Ordinal));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void WeksaWordPlanAcceptsK()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue