Align speech parity roadmap

This commit is contained in:
Meta Vens 2026-05-20 21:51:52 +01:00
commit cdcfc15a9b
9 changed files with 325 additions and 49 deletions

View file

@ -144,6 +144,12 @@ owns text, phonology, allophones, and phonetic intent. AquaSynth owns the
articulatory realization: gesture planning, morphology constraints, tract-area
targets, excitation events, and Faust lowering.
The current speech-learning lane adds a trainable surface above that boundary:
structured utterance metadata lowers into an utterance embedding, then into a
synth-driver automation vector for tract controls, envelopes, LFOs, filters, and
spectral lanes. Those learned models are controllers. They do not get to erase
the tract boundary or make morphology optional.
The boundary must stay split into three inspectable records:
- `PhoneticIntent`: language-owned phones, features, timing, and prosody.
@ -157,6 +163,11 @@ Anatomy has veto power. If a beaked morphology cannot form a bilabial closure,
the planner must report the missing capability instead of silently substituting
a fake sound and calling it expressive.
The first parity reference is eSpeak NG because it is compact, deterministic,
and cheap to render. It is timing and intelligibility pressure, not anatomy
authority. Use it to populate loss surfaces and train controller weights; do not
mistake matching its formant shortcuts for building a vocal tract.
## Metrics
Analysis exists to catch regressions and support search, not to crown winners.
@ -170,6 +181,7 @@ Useful metrics:
- envelope distance for shape and timing
- log-mel spectrogram distance for perceptual-ish spectral shape
- speech-parity loss over tiny utterance fixtures before broader IPA claims
- peak/RMS ratios for loudness sanity
- zero-crossing and centroid ratios for noise/brightness drift
- script readability and terseness scores for DSL golf work

View file

@ -1,5 +1,34 @@
# IPA Vocal Tract Roadmap
## Current Objective
AquaSynth is currently focused on a speech-learning parity harness. The active
machine is:
```text
structured utterance metadata
-> learned utterance embedding
-> learned synth automation
-> vocal tract simulation plus envelopes, LFOs, filters, and spectral controls
-> rendered audio
-> loss against a simple speech synthesizer reference
```
Every arrow in that chain is a trainable artifact. The immediate job is to make
small utterances cheap to render, score, and backpropagate through, so hundreds
of controller weights can be tested against generated ground truth. The older
project of eating DX7, ZynAddSubFX, and other synthesizers remains useful
reference pressure, but it is not the current center of gravity.
The curriculum is deliberate:
1. master basic IPA-level speech parity against a simple reference;
2. grow from vowels into CV/CVC contrasts and core pulmonic consonants;
3. only then add intonation, prosody, emphasis, emotional context, and
personality;
4. finally let Weksa and nonhuman morphologies stress the machine without
letting IPA pretend it owns alien anatomy.
AquaSynth can get close to a Pink Trombone-class tract model, then move past it
by treating IPA as an authoring input rather than the synth itself. The machine
we want is not a giant table from symbol to sound. It is a pipeline:
@ -110,6 +139,8 @@ Useful starting sources:
<https://phoible.org/>
- eSpeak NG phoneme-table implementation reference:
<https://deepwiki.com/espeak-ng/espeak-ng/4.2-phoneme-model>
- Utterance parity research notes:
<utterance-parity-research.md>
## Architecture
@ -449,6 +480,23 @@ Metrics:
- intelligibility/listening notes for complete syllables;
- script/IPA terseness only after audio is credible.
## Speech Parity Harness
The first harness must stay humble and fast:
- render a tiny utterance set from eSpeak NG or another compact reference;
- extract normalized log-mel, timing, and envelope evidence;
- train `SpeechBackpropagationPipeline` through the utterance encoder and synth
driver;
- drive a compiled Faust candidate by changing `/speech/output/N` controls, not
by recompiling the patch for every weight probe;
- write reports under ignored `artifacts/parity/...` so metrics and listening
receipts stay visible.
Ground truth means "reference pressure," not "the truth about throats." eSpeak
can teach early intelligibility, timing, and rough spectral targets. It cannot
decide AquaSynth's anatomy, coarticulation, or Weksa morphology.
## Optional eSpeak NG Workout
The first IPA-adjacent parity lane uses eSpeak NG as a development reference.

View file

@ -1,5 +1,19 @@
# Reference Synth Roadmap
## Current Focus
The active AquaSynth work has moved to the utterance parity curriculum:
structured utterance metadata lowers through a learned utterance embedding and a
learned synth-driver automation layer into vocal-tract controls, envelopes,
LFOs, filters, and spectral lanes. The immediate proof is a fast parity harness
against a simple speech synthesizer reference, so many controller weights can be
tested as rendered synth output versus generated ground truth.
DX7, ZynAddSubFX, Faust examples, Surge, and Cardinal remain reference pressure.
They are on the backburner while the speech lane earns IPA parity. Do not start
new synth-digestion work unless it directly improves the vocal-tract harness,
the Faust render path, or the loss/automation surfaces.
AquaSynth needs external synthesis references for the same reason the
SFXR path was useful: a real target prevents the DSL from becoming a pile of
locally plausible knobs. The goal is not to clone every synth's internals. The
@ -53,10 +67,14 @@ missing graph feature instead of smuggling it through unrelated parameters.
### New Lane: IPA Vocal Tract / Weksa
This is not merely another reference synth. It is a new authoring and rendering
lane: IPA text lowers into phonetic features, timed articulatory gestures,
morphology-specific tract/excitation curves, and Faust DSP. The roadmap lives in
[`docs/ipa-vocal-tract-roadmap.md`](ipa-vocal-tract-roadmap.md).
This is the current main lane, not merely another reference synth. Structured
utterance metadata lowers into a learned utterance embedding, then into learned
synth automation for the vocal tract and associated envelopes, LFOs, filters,
and spectral controls. IPA text is the first curriculum surface for phonetic
coverage. The roadmap lives in
[`docs/ipa-vocal-tract-roadmap.md`](ipa-vocal-tract-roadmap.md), and the
research pass lives in
[`docs/utterance-parity-research.md`](utterance-parity-research.md).
Pressure on AquaSynth DSL:
@ -69,13 +87,14 @@ Pressure on AquaSynth DSL:
First deliverable:
- Stage 0/1 IPA tokenization and vowel feature fixtures.
- Human baseline vowel tract-area planner.
- A small render proof that can say a few vowels before the supported IPA table
expands.
- Optional eSpeak NG workout fixtures that render tiny text/IPA-adjacent speech
references when `ESPEAK_NG` or an `espeak-ng` binary is available. These are
intelligibility/timing references, not tract-anatomy truth.
- A parity harness that renders tiny eSpeak NG utterances, extracts log-mel and
timing evidence, and trains the chained utterance encoder plus synth driver.
- A compiled Faust speech-loss surface that can vary `/speech/output/N` controls
across many candidates without recompiling topology.
- Stage 0/1 IPA tokenization and vowel feature fixtures tied to the harness.
- Human baseline vowel tract-area planner and audible vowel proof.
- CV/CVC fixtures only after the vowel/control harness produces useful loss
evidence. These are intelligibility/timing references, not tract-anatomy truth.
### Tier 1: DX7/Dexed

View file

@ -0,0 +1,166 @@
# Utterance Parity Research Notes
Research pass: 2026-05-20.
## Current Machine
AquaSynth is growing a speech curriculum, not a theatrical pile of IPA
decorations. The active pipeline is:
```text
structured utterance metadata
-> learned utterance embedding
-> learned synth automation
-> vocal tract, envelopes, LFOs, filters, and spectral controls
-> rendered audio
-> loss against a speech reference
```
Each arrow is a machine-learning artifact. The first useful job is not
universal speech. It is a tight parity harness where small utterances can be
rendered against a simple reference synthesizer, scored quickly, and used to
probe hundreds of controller weights. The loss landscape comes first. Poetry
can wait outside and smoke.
## Prior Work Signals
### Physical And Articulatory Synthesis
Kelly-Lochbaum-style tube models remain the practical starting point for
realtime tract acoustics. Pink Trombone and related ports prove that a simplified
tract, glottis, noise source, and tract geometry can be interactive enough to
use as a control target. Recent Pink Trombone optimization work treats that
model as a realtime Kelly-Lochbaum articulatory synthesizer and fits physical
parameters, which is close to AquaSynth's black-box rendered-loss pressure.
VocalTractLab is the heavyweight reference for articulatory synthesis: a 3D
tract model, glottal source, aeroacoustic simulation, and articulatory control.
Its papers are a warning label: speech quality depends on control trajectories
and coarticulation, not only on static phoneme shapes.
Story's area-function model is especially useful for AquaSynth because it gives
a middle representation between symbolic phonetic intent and tract acoustics.
Vowels are shaped by tract modes; consonants can be expressed as constriction
location, area, and range imposed on that substrate. That matches the local
doctrine: area curves are the synthesis authority, formants are diagnostics.
### Gesture Planning
Articulatory phonology and task dynamics are the right control metaphor. Phones
should lower into overlapping gestures, not a row of isolated presets. Haskins
TADA is important because it treats an utterance as a gestural score feeding a
task-dynamic model. AquaSynth's utterance schema should eventually resemble a
score of targets, timings, coupling, emphasis, and speaking style; it should not
be a giant enum of phonemes with cute flags.
### Classical Formant References
Klatt-style and eSpeak-style formant synthesis are useful early references
because they are compact, deterministic, intelligible, and easy to render in
bulk. They are not anatomy truth. If AquaSynth learns only to imitate eSpeak's
formant shortcuts, it will build a loyal little mimic and call it a throat.
The correct use is narrow: use eSpeak NG for IPA/text coverage, timing pressure,
log-mel targets, and fast generated ground truth while the physical tract earns
basic vowels and consonants. Then move the curriculum toward tract-shaped
targets and listening fixtures.
### Differentiable DSP And Neural Controllers
DDSP is the strongest precedent for this shape of work: combine neural networks
with known signal models so the model learns control rather than reinventing
acoustics from raw samples. Magenta's DDSP work shows the general bargain:
smaller models, stronger inductive bias, and trainable synthesis controls.
More recent DDSP articulatory vocoder work synthesizes speech from articulatory
measurements, F0, and loudness. That is not AquaSynth's exact setup, because
AquaSynth starts from metadata and generated speech references rather than EMA
capture. The useful lesson is architectural: split source controls from tract or
filter controls, keep features interpretable, and train against rendered audio.
Neural source-filter models are also relevant. They show that neural pieces can
drive physically meaningful source/filter structure instead of replacing the
whole backend with a black box. AquaSynth should use that as permission to learn
automation and embeddings, not permission to throw away tract ownership.
### IPA And Feature References
PanPhon maps IPA segments to articulatory feature vectors and PHOIBLE provides
language inventories plus distinctive features. Both are reference material for
metadata and sanity checks. Neither should become the permanent internal truth.
The reason is simple: Weksa and alien morphologies need "human IPA-like intent"
without letting human phonetics own nonhuman anatomy. IPA features can seed
intent; morphology owns whether the requested articulation is possible.
## Implications For AquaSynth
Keep the curriculum brutally small:
1. Render tiny eSpeak fixtures and extract normalized log-mel evidence.
2. Train the utterance encoder and synth-driver chain from that rendered loss.
3. Add a compiled Faust candidate path that can vary controller outputs without
recompiling topology.
4. Use vowels first, then CV/CVC contrasts, then broader IPA.
5. Only move to intonation, prosody, emotional context, and personality after
the harness can show phoneme-level loss improvements without handwaving.
The universal utterance schema should stay boring at first:
- segment inventory and source spans;
- duration, stress, tone, and boundary hints;
- speaker/morphology identity;
- pitch, loudness, speaking-rate, and breath controls;
- emphasis and emotional/context vectors as named side inputs;
- diagnostics when a field is not yet consumed.
Do not encode every future expressive dimension before the parity harness can
make `/a pa ta ka sa ma/` less embarrassing. Grand schemas are where bugs go to
earn tenure.
## Source Ledger
- Pink Trombone interactive vocal tract:
<https://dood.al/pinktrombone/>
- Pink Trombone optimization / Kelly-Lochbaum parameter fitting:
<https://link.springer.com/article/10.1186/s13636-025-00414-5>
- Sndkit tract notes, Pink Trombone/Kelly-Lochbaum lineage:
<https://pbat.ch/sndkit/tract/>
- VocalTractLab project:
<https://www.vocaltractlab.de/>
- VocalTractLab features:
<https://www.vocaltractlab.de/index.php?page=vocaltractlab-features>
- VocalTractLab coarticulation model paper:
<https://pmc.ncbi.nlm.nih.gov/articles/PMC3628899/>
- Story 2005 area-function model:
<https://bpb-us-e2.wpmucdn.com/sites.arizona.edu/dist/f/80/files/2023/10/story_jasa2005-1.pdf>
- Stop consonants and Story area-function model discussion:
<https://pmc.ncbi.nlm.nih.gov/articles/PMC3145491/>
- Haskins TADA:
<https://www.haskinslaboratories.org/tada>
- eSpeak NG repository and formant-synthesis reference:
<https://github.com/espeak-ng/espeak-ng>
- PanPhon package:
<https://pypi.org/project/panphon/>
- PanPhon paper:
<https://aclanthology.org/C16-1328.pdf>
- PHOIBLE:
<https://phoible.org/>
- PHOIBLE FAQ:
<https://phoible.org/faq>
- Magenta DDSP:
<https://magenta.withgoogle.com/ddsp>
- DDSP paper:
<https://arxiv.org/abs/2001.04643>
- DDSP review for music and speech synthesis:
<https://www.frontiersin.org/journals/signal-processing/articles/10.3389/frsip.2023.1284100/full>
- Introduction to differentiable synthesizer programming:
<https://intro2ddsp.github.io/>
- DDSP articulatory vocoder:
<https://arxiv.org/abs/2409.02451>
- Neural source-filter waveform model:
<https://arxiv.org/abs/1810.11946>
- LF/voice source model comparison:
<https://pmc.ncbi.nlm.nih.gov/articles/PMC4491021/>
- LF model fitting for statistical parametric speech synthesis:
<https://www.cs.cmu.edu/~awb/papers/is2013/is2013_lfmodel.pdf>