Document utterance embedding handoff
This commit is contained in:
parent
fb79c85250
commit
cbfe9088f9
10 changed files with 217 additions and 179 deletions
|
|
@ -18,7 +18,7 @@ and dialogue layer: phrase grouping, emphasis, reduced forms, and word choice ar
|
|||
part of the utterance Weksa just created.
|
||||
|
||||
The long-term primary handoff is the learned
|
||||
[Line Expression Vector](./line-expression-vector.md). This pronunciation plan is
|
||||
[Utterance Embedding Handoff](./utterance-embedding.md). This pronunciation plan is
|
||||
the inspectable audit/debug lane: useful for fixtures, phoneme strings, and
|
||||
review, but not the only representation of delivery.
|
||||
|
||||
|
|
|
|||
|
|
@ -134,10 +134,11 @@ Weksa still owns the optional pronunciation plan for English output: tokenizing
|
|||
the line, choosing word pronunciations, preserving stress, and stringing broad
|
||||
IPA together. See [English Pronunciation Lowering](./english-pronunciation-lowering.md).
|
||||
|
||||
Weksa should also emit a learned line-expression vector when training data and
|
||||
encoder support exist. That vector is the intended compact handoff for prosody,
|
||||
emphasis, and character delivery pressure. See
|
||||
[Line Expression Vector](./line-expression-vector.md).
|
||||
Weksa should also emit the ingredients for an AquaSynth-owned utterance
|
||||
embedding: speech text embedding, prosody/emphasis hints, and a projected
|
||||
Ghostlight/Epiphany-shaped character-state vector. AquaSynth trains the tiny
|
||||
encoder and consumes the resulting embedding in its synth driver. See
|
||||
[Utterance Embedding Handoff](./utterance-embedding.md).
|
||||
|
||||
## First Target: Nibu
|
||||
|
||||
|
|
|
|||
|
|
@ -1,124 +0,0 @@
|
|||
# Line Expression Vector
|
||||
|
||||
Version: `0.1-draft`
|
||||
|
||||
The line expression vector is Weksa's learned handoff from flavored English
|
||||
lowering to downstream voice control.
|
||||
|
||||
```text
|
||||
interlingua packet
|
||||
-> projected agent-local context
|
||||
-> flavored English line
|
||||
-> Weksa line-expression encoder
|
||||
-> line expression vector
|
||||
-> AquaSynth synth-control decoder
|
||||
```
|
||||
|
||||
The goal is two small learned artifacts in a tight loop:
|
||||
|
||||
1. Weksa learns to encode a character's line as a compact expression vector.
|
||||
2. AquaSynth learns to decode that vector into synth-control intent.
|
||||
|
||||
No giant oracle gets to own the seam. No hidden theatrical mush. Just a line,
|
||||
its meaning, its speaker context, and a learned vector with enough audit surface
|
||||
to tell whether it is lying.
|
||||
|
||||
## Authority
|
||||
|
||||
Weksa owns:
|
||||
|
||||
- interlingua packet
|
||||
- projected agent-local context
|
||||
- flavored English line
|
||||
- line-expression vector generation
|
||||
- audit projections for meaning, emphasis, and character pressure
|
||||
|
||||
AquaSynth owns:
|
||||
|
||||
- mapping expression vectors to synthesis controls
|
||||
- consuming pronunciation or IPA plans when Weksa provides them
|
||||
- phonetic feature interpretation
|
||||
- timing, articulation, tract, and DSP
|
||||
- audio evaluation
|
||||
|
||||
## Vector Contract
|
||||
|
||||
The vector is dense and model-owned, but the packet around it must be explicit.
|
||||
|
||||
```yaml
|
||||
schema_version: weksa.line_expression_vector.v0
|
||||
source_output_ref:
|
||||
speaker_agent_id:
|
||||
encoder:
|
||||
model_id:
|
||||
version:
|
||||
training_set:
|
||||
text:
|
||||
spoken_text:
|
||||
normalized_text:
|
||||
vector:
|
||||
dimensionality:
|
||||
values_ref:
|
||||
audit_projection:
|
||||
semantic_preservation:
|
||||
emphasis:
|
||||
prosody:
|
||||
character_pressure:
|
||||
delivery_shape:
|
||||
training_refs:
|
||||
positive_examples:
|
||||
negative_examples:
|
||||
trace:
|
||||
notes:
|
||||
uncertainties:
|
||||
```
|
||||
|
||||
`values_ref` may point to an external binary or JSON artifact once the vector is
|
||||
large. Early fixtures may inline tiny toy vectors.
|
||||
|
||||
## Audit Projection
|
||||
|
||||
The audit projection is not the vector. It is a human-readable probe of what the
|
||||
vector is supposed to contain.
|
||||
|
||||
Useful audit families:
|
||||
|
||||
- `semantic_preservation`: what source meaning must remain audible.
|
||||
- `emphasis`: which words or spans carry prominence.
|
||||
- `prosody`: clipped, rising, flat, hesitant, compressed, etc.
|
||||
- `character_pressure`: active state pressures shaping delivery.
|
||||
- `delivery_shape`: pace, pause pattern, intensity, warmth, contempt, tenderness,
|
||||
threat, or play.
|
||||
|
||||
These are labels for review and training. The learned vector is allowed to find
|
||||
better internal dimensions, but it does not get to skip accountability.
|
||||
|
||||
## Training Loop
|
||||
|
||||
First loop:
|
||||
|
||||
1. Author or generate an interlingua packet.
|
||||
2. Project agent-local context.
|
||||
3. Lower to English.
|
||||
4. Human-review whether the line preserves meaning and voice.
|
||||
5. Encode the reviewed line into a line-expression vector.
|
||||
6. AquaSynth decodes the vector into synth-control intent.
|
||||
7. Compare rendered speech against human notes and reference takes when present.
|
||||
8. Feed corrections back into the Weksa encoder and AquaSynth decoder.
|
||||
|
||||
The same fixture can carry:
|
||||
|
||||
- accepted line
|
||||
- rejected line
|
||||
- why the rejected line failed
|
||||
- audit projection
|
||||
- vector artifact
|
||||
- downstream AquaSynth evaluation pointer
|
||||
|
||||
## Non-Goals
|
||||
|
||||
- Do not make Weksa emit raw vocal-tract controls.
|
||||
- Do not make AquaSynth infer character psychology from prose.
|
||||
- Do not treat named audit axes as the true latent space.
|
||||
- Do not make realtime neural voice output the authority.
|
||||
- Do not hide bad semantic preservation behind pleasant delivery.
|
||||
|
|
@ -18,8 +18,8 @@
|
|||
- Lower one packet through Nibu's projected agent state into flavored English.
|
||||
- Add one English pronunciation plan that strings the lowered line into broad
|
||||
IPA.
|
||||
- Add one toy line-expression vector fixture, then replace hand-authored values
|
||||
with a learned encoder.
|
||||
- Add one toy utterance embedding handoff fixture, then replace hand-authored
|
||||
values with the AquaSynth-owned learned encoder.
|
||||
- Preserve the first lowering proof as fixture data under
|
||||
`examples/english-lowering/`.
|
||||
- Parse or load one language project definition.
|
||||
|
|
|
|||
129
docs/utterance-embedding.md
Normal file
129
docs/utterance-embedding.md
Normal file
|
|
@ -0,0 +1,129 @@
|
|||
# Utterance Embedding Handoff
|
||||
|
||||
Version: `0.1-draft`
|
||||
|
||||
The utterance embedding is the compact learned handoff from Weksa-authored line
|
||||
intent to AquaSynth voice control.
|
||||
|
||||
```text
|
||||
interlingua packet
|
||||
-> projected Ghostlight/Epiphany-shaped character context
|
||||
-> flavored English line
|
||||
-> speech text embedding
|
||||
-> prosody and emphasis hints
|
||||
-> character state vector
|
||||
-> AquaSynth utterance embedding encoder
|
||||
-> utterance embedding
|
||||
-> AquaSynth synth driver
|
||||
```
|
||||
|
||||
Weksa does not own the optimizer. Weksa owns the inspected ingredients that make
|
||||
training possible:
|
||||
|
||||
- source interlingua and lowering trace;
|
||||
- spoken and normalized text;
|
||||
- speech text embedding reference;
|
||||
- prosody and emphasis hints;
|
||||
- projected character-state vector;
|
||||
- audit projection for semantic preservation and delivery pressure;
|
||||
- training references and human review notes.
|
||||
|
||||
AquaSynth owns:
|
||||
|
||||
- the tiny learned utterance-embedding encoder;
|
||||
- the shared packed-buffer gradient-descent/Adam primitive;
|
||||
- the synth-driver model that consumes the utterance embedding;
|
||||
- phonetic feature interpretation, timing, articulation, tract, and DSP;
|
||||
- audio evaluation.
|
||||
|
||||
The point is one learned speech handoff, not two little neural courthouses
|
||||
arguing about who gets to wear the robe.
|
||||
|
||||
## Packet Contract
|
||||
|
||||
```yaml
|
||||
schema_version: weksa.utterance_embedding_handoff.v0
|
||||
source_output_ref:
|
||||
speaker_agent_id:
|
||||
text:
|
||||
spoken_text:
|
||||
normalized_text:
|
||||
inputs:
|
||||
speech_text_embedding:
|
||||
model_id:
|
||||
dimensionality:
|
||||
values_ref:
|
||||
prosody_emphasis_hints:
|
||||
dimensionality:
|
||||
values:
|
||||
character_state_vector:
|
||||
source:
|
||||
dimensionality:
|
||||
values_ref:
|
||||
utterance_embedding:
|
||||
owner: AquaSynth
|
||||
model_id:
|
||||
version:
|
||||
training_set:
|
||||
dimensionality:
|
||||
values_ref:
|
||||
audit_projection:
|
||||
semantic_preservation:
|
||||
emphasis:
|
||||
prosody:
|
||||
character_pressure:
|
||||
delivery_shape:
|
||||
training_refs:
|
||||
positive_examples:
|
||||
negative_examples:
|
||||
trace:
|
||||
notes:
|
||||
uncertainties:
|
||||
```
|
||||
|
||||
Early fixtures may inline tiny toy vectors. Real embeddings should use
|
||||
`values_ref` once the dimensions stop being decorative furniture.
|
||||
|
||||
## Audit Projection
|
||||
|
||||
The audit projection is not the embedding. It is a human-readable probe of what
|
||||
the embedding should preserve.
|
||||
|
||||
Useful audit families:
|
||||
|
||||
- `semantic_preservation`: what source meaning must remain audible.
|
||||
- `emphasis`: which words or spans carry prominence.
|
||||
- `prosody`: clipped, rising, flat, hesitant, compressed, etc.
|
||||
- `character_pressure`: active state pressures shaping delivery.
|
||||
- `delivery_shape`: pace, pause pattern, intensity, warmth, contempt, tenderness,
|
||||
threat, or play.
|
||||
|
||||
These labels guide review and training. The learned embedding may find better
|
||||
internal dimensions, but it does not get to skip accountability.
|
||||
|
||||
## Training Loop
|
||||
|
||||
First loop:
|
||||
|
||||
1. Author or generate an interlingua packet.
|
||||
2. Project Ghostlight/Epiphany-shaped character context.
|
||||
3. Lower to English.
|
||||
4. Generate or attach a speech text embedding.
|
||||
5. Emit prosody/emphasis hints and a projected character state vector.
|
||||
6. Human-review whether the line preserves meaning and voice.
|
||||
7. AquaSynth trains the utterance embedding encoder.
|
||||
8. AquaSynth feeds the utterance embedding to the synth driver.
|
||||
9. Compare rendered speech against human notes and reference takes when present.
|
||||
|
||||
The same fixture can carry accepted lines, rejected lines, audit projections,
|
||||
input vectors, downstream AquaSynth evaluation pointers, and notes about why a
|
||||
candidate failed.
|
||||
|
||||
## Non-Goals
|
||||
|
||||
- Do not make Weksa emit raw vocal-tract controls.
|
||||
- Do not make Weksa train its own speech embedding optimizer.
|
||||
- Do not make AquaSynth infer character psychology from prose alone.
|
||||
- Do not treat named audit axes as the true latent space.
|
||||
- Do not make realtime neural voice output the authority.
|
||||
- Do not hide bad semantic preservation behind pleasant delivery.
|
||||
Loading…
Reference in a new issue