Skip to content

§ 02Architecture decision record

Explicit where control matters, generative where naturalness does

Three decision records and a specification. They argue for a performance-field flow architecture: a hierarchical, sampled representation of the performance, realized by a flow-matching transformer and a source-aware vocoder.

ADR-001Status: proposed

Decision

Which generative paradigm sits at the core?

Context

  • Speech must be generated locally, with no remote service.
  • Control must reach individual words and syllables, not just utterances.
  • Intention, not only emotion, must change the generated performance itself.
  • Identity must hold under whisper, laughter and strong emotion.
  • Commercially clean data is under 1,000 hours, mostly neutral read speech.
  • Third-party weights may serve as benchmarks only.

Option A

Codec-token language model

Fish Speech, CosyVoice, IndexTTS2

  • Highest naturalness and instruction following at scale.
  • Zero-shot voices from short prompts.
  • Needs tens of thousands to millions of hours; the clean licensed pool is under 1,000.
  • Autoregressive decoding can skip or repeat words.
  • Continuous local edits are indirect through discrete tokens.

Rejected as the core. Its natural-language interface and reward-based post-training are kept.

Option B

Text-padded flow matching

F5-TTS

  • A simple pipeline with no aligner.
  • Infilling gives seamless local regeneration.
  • Implicit alignment is data-hungry.
  • No explicit handles for timing, pitch or focus.

Rejected as the core. Its flow-matching decoder and infilling objective are kept.

Option C

Explicit variance regression

FastSpeech 2

  • Interpretable, editable duration, pitch and energy.
  • Data-efficient and fast.
  • Regression to the mean flattens prosody.
  • Independent predictors break natural covariation.

Rejected alone. Its variance adaptor becomes the skeleton of the Performance Field.

Option D

Style diffusion with adversarial training

StyleTTS 2

  • Human-level ratings from 24 hours of single-speaker data.
  • Diverse, sampled style.
  • Style is utterance-global.
  • Adversarial training against a large speech model is fragile and memory-heavy.

Rejected as the core. Sampling a compact performance latent is kept, applied per phone.

Option E

Performance-field flow

C and D with B as decoder, CtrlSpeech-style fine control, a source-aware vocoder

Proposed
  • Exact, addressable control at every level from utterance to phone.
  • Stochastic takes without regression to the mean.
  • Local regeneration in context for the Acting Studio.
  • Data-efficient enough for a clean corpus under 1,000 hours plus a commissioned expressive set.
  • More components to train and keep consistent.
  • Depends on forced alignment and F0 extraction quality.
  • Predicting prosody from text remains the hardest open problem; CtrlSpeech reports the same.

Proposed for acceptance, pending your review of this record.

Consequences

The engine owns its alignment, prosody and identity explicitly, which costs more components and depends on forced alignment and pitch extraction. In return, every direction a user gives has a concrete place to land, multiple takes are genuinely sampled, and a single word can be regenerated in context. If text-to-prosody prediction underperforms, the fallback is to lean harder on director keyframes rather than to abandon explicit control.

Specification

The seven networks

Each network is trained and tested on its own interface before it is joined to the others, so a failure can be located.

  1. In

    Script

    Text, direction, context

  2. A

    Linguistic

    Phones, stress, focus, phrasing

  3. B

    Intention

    Act, stance, felt and shown affect

  4. C

    Prosody

    Samples the Performance Field

  5. E

    Acoustic

    Flow-matching transformer

  6. F

    Vocoder

    Source-aware waveform

DVocal identity bounds every expressive variable in C, E and F, so emotion moves the voice inside its own range.
GPerceptual evaluation checks each take against the plan from A and C, then ranks candidates.
Proposed architecture, schematic only. No component has been trained.

A

Linguistic Intelligence Network

Turns written text into a structured linguistic plan before any sound exists.

  • Deterministic, auditable normalization of numbers, dates, currencies, abbreviations and symbols, with every rewrite logged so the studio can show it.
  • Pronunciation from a lexicon plus a trained neural G2P for unknown words, with accent-specific lexica: General American first, then Southern British, then Brazilian Portuguese.
  • Syllabification by maximal onset over legal onsets, lexical stress from the lexicon, and a learned sentence-stress predictor.
  • A contextual text transformer, trained from scratch on licensed text, predicts phrase breaks, prominence, information status (given or new) and discourse role.
  • Focus is a first-class token on a word span. Contrastive focus changes the plan: the nuclear accent moves, words after the focus are deaccented through post-focus compression, and timing around the focus shifts. Volume is never the mechanism.
  • Connected-speech variants (reductions, contractions, assimilation) are emitted as options, and a careful-to-casual articulation scalar chooses among them.

Output

Per-phone feature vectors: identity, phonological features, stress, syllable and word position, phrase type, break strength, focus, information status and accent.

What is new

Focus and information status are explicit, so "I didn't say she stole the money" yields seven different linguistic plans, not seven loudness edits.

B

Intention and Emotional Interpretation Network

Represents what the speaker is trying to do, not only what they feel.

  • An Intention Frame with four parts: the communicative act (confess, reassure, persuade, tease, warn, question, comfort, explain, challenge, hesitate, withhold), epistemic stance (certainty, expected answer), social stance (warmth, distance, dominance) and affect.
  • Affect is modeled twice, as felt affect and displayed affect, joined by a regulation scalar. Concealed disappointment, anger through restraint and suppressed laughter become a felt state, a shown state and a leakage level.
  • Frames are keyframed on text spans and interpolated with easing curves, so "begin curious, become amused on the second phrase, end uncertain" is three keyframes, not a global slider.
  • A direction encoder maps written direction to frames. It trains on paired data: the director's note and the performance recorded from it.
  • Speaker cues are removed from intention embeddings by an adversarial speaker classifier behind a gradient reversal layer, following IndexTTS2.

Output

A time-varying intention trajectory aligned to phones.

What is new

The split between felt and displayed affect with an explicit leakage term. Every surveyed system models a single displayed category.

C

Prosody Intelligence Network

Predicts the Performance Field: how pitch, timing, loudness and voice quality unfold.

  • Hierarchical over utterance, phrase, word, syllable and phone, each level predicting offsets from the one above. Edits can enter at any level.
  • Pitch is modeled per syllable as target approximation (a target, a slope and a strength) rather than raw frame values, which keeps edited contours smooth.
  • Stochastic, not regressive: a conditional flow-matching prior samples whole field trajectories, so three takes differ plausibly instead of averaging into monotony.
  • Duration, pitch, loudness and voice quality are sampled jointly from one latent, so a hesitation can lengthen a vowel, delay an onset and lower effort together.
  • Explicit events: pauses with length, breaths with depth, hesitation markers, self-correction restarts and phrase-final lengthening.

Output

The Performance Field at phone and frame resolution.

What is new

A sampled, hierarchical and jointly coupled prosody field: CtrlSpeech-style explicit conditioning combined with StyleTTS 2-style stochastic style, applied locally.

D

Vocal Identity Network

Holds a stable representation of who is speaking.

  • An identity embedding per speaker, plus identity-locked parameters: vocal tract length factor, habitual F0 median and range, habitual voice quality and articulation rate.
  • Every expressive variable is stored relative to the speaker's habitual value, pitch in semitones from the habitual median, so emotion moves the voice within its own range.
  • Identity-consistency loss across intentions of the same speaker, plus adversarial removal of speaker cues from intention.
  • The default AUTOGENESIS identity is synthesized from consented performers and must verify as none of them (see Voice & audition).

Output

An identity embedding and the bounds that constrain the field.

What is new

Identity acts as a constraint on the field, not only a conditioning vector, which is what keeps a whisper and a shout recognizably one person.

E

Acoustic Generative Network

Generates the acoustic representation from the plan, the field and the identity.

  • A diffusion transformer trained with conditional flow matching over 100-band log-mel at 24 kHz.
  • Inputs: phone features expanded by explicit durations, frame-level field values, identity through adaptive layer norm, intention through adaptive norm and cross-attention, and a memory of the previous utterances' latents.
  • Trained with infilling masks after F5-TTS, so any region can be regenerated with its surroundings as context. This is how one word is re-directed without breaking the sentence.
  • Classifier-free guidance per conditioning stream (text, field, intention), so field adherence and naturalness can be traded deliberately.
  • Few-step sampling through rectified-flow or consistency distillation for the compact profile.

Output

A log-mel spectrogram plus aperiodicity bands for the vocoder.

What is new

Explicit durations with a generative decoder: exact local timing without the oversmoothing of a regression decoder.

F

Neural Vocoder

Turns the acoustic representation into a waveform.

  • A source-aware adversarial vocoder: a sine excitation built from the field's F0 and a noise excitation shaped by predicted aperiodicity feed a BigVGAN-style generator with Snake activations and anti-aliased blocks.
  • The explicit source carries exact pitch, so breathiness, creak and voicing transitions are reconstructed from the physiology rather than inferred from a blurred mel.
  • Multi-period, multi-resolution and sub-band CQT discriminators.
  • An iSTFT head, after Vocos, for the CPU profile.
  • Trained from scratch on the AUTOGENESIS corpus; adapted code keeps its MIT attribution in the provenance record.

Output

A 24 kHz waveform.

What is new

Neural source-filter excitation inside an anti-aliased periodic generator, so breathiness and F0 values in the field have a direct physical path to the waveform.

G

Perceptual Evaluation Network

Detects likely failures and ranks candidate takes.

  • Intelligibility: an ASR pass with forced alignment flags missing, repeated or mispronounced words against the linguistic plan.
  • Identity drift: windowed speaker-verification similarity to the identity centroid catches a mid-utterance change of speaker.
  • Prosodic plausibility: the likelihood of the realized pitch, timing and loudness under the prosody prior flags unnatural contours and pauses.
  • Artifact detectors: spectral flatness and harmonic-to-noise anomalies for metallic frames, onset discontinuities, unwanted noise floor, excessive breathiness.
  • Intention fit: a classifier trained on the commissioned corpus estimates whether the delivery matches the requested frame.
  • Every auxiliary model is listed separately with its license. Scores rank candidates and guide training; they never replace listening tests.

Output

Per-take scores, located warnings and a ranking.

What is new

It checks against the plan, not only the audio: a missing word or a moved focus is detected relative to what networks A and C intended.

Shared representation

The Performance Field

P(t) describes how a performance evolves through an utterance. Its variables are not independent sliders: some are learned, some controlled, some predicted and some bound by the speaker’s physiology.

Learned

Captured from real performances as a latent, never hand-set.

Controlled

Can be set or offset by the user at any level of the hierarchy.

Predicted

Filled in by the prosody network when the user leaves it open.

Constrained

Bounded by identity or coupled to other variables by physiology.

Performance Field variables with units, resolution and class
VariableUnitResolutionClassNote
f0Pitchsemitones from habitual medianframe
PredictedControlledConstrained
Edited through syllable targets, bounded by the identity's range.
vVoicingprobability 0 to 1frame
PredictedConstrained
Forced to zero in whispered phonation.
dDurationlog frames per phonephone
PredictedControlled
Scaled at any level without changing playback rate.
pPausemillisecondsboundary
PredictedControlled
Separate from breath; a pause may be silent or filled.
LLoudnessdB from habitual levelframe
PredictedControlledConstrained
Coupled to effort and pitch through subglottal pressure.
tiltTension and effortspectral tilt, dB per octaveframe
PredictedControlledConstrained
Pressed versus relaxed phonation.
apBreathinessband-wise aperiodicity ratioframe
PredictedControlledConstrained
Coupled to loudness; drives the vocoder's noise source.
artArticulation-1 reduced to +1 hyperarticulatedword
PredictedControlled
Selects among connected-speech variants.
promProminence0 to 1syllable
PredictedControlled
Realized jointly through pitch, duration and loudness, never loudness alone.
hesHesitationevent and strengthword boundary
PredictedControlled
Lengthening, delayed onset and effort drop together.
brBreathevent and depthboundary
PredictedControlled
Placed by breath-group structure.
IIntention framestructured vectorkeyframed span
ControlledPredicted
From direction text or keyframes, defaulting to context.
zPerformance residuallatent vectorphone
Learned
What explicit variables miss; sampled per take.
vtlResonancevocal tract length factoridentity
Constrained
Locked: emotion never moves it.
idIdentityembeddingidentity
Constrained
Locked for the session.

Hierarchical composition

Each phone's value is the sum of utterance, phrase, word, syllable and phone contributions plus the residual. An edit at the word level shifts every syllable beneath it without flattening their internal shape.

Offsets, overrides and locks

A user edit is an offset (make this word slower), an override (this syllable peaks here) or a lock (keep this phrase as it is while regenerating the rest).

Projection to the plausible

After edits, the field is projected back inside the identity's bounds and scored under the prosody prior. Implausible requests are softened and flagged, never silently ignored.

Covariation by construction

Coupled variables are edited as a group: raising loudness raises effort and pitch slightly unless the user locks them, because voices behave that way.

Why not filters

Two different fields for the same sentence produce two different generations, because the field conditions the acoustic model and the vocoder directly. Post-processing is reserved for mastering: loudness normalization and limiting, never emotion.
ADR-002Status: proposed

Decision

Local deployment on Windows 11 first

Train in PyTorch, export each network separately, and run inference through ONNX Runtime with the strongest validated provider on the machine. No profile or backend is claimed until it passes the test matrix on named hardware.

Studio

Highest expressive quality on a capable GPU.

Full acoustic transformer with multi-step flow sampling, the source-aware vocoder and every evaluator check.

PyTorch, or ONNX Runtime with the CUDA provider on NVIDIA; DirectML on AMD and Intel once validated.

Compact

Lower-memory GPUs and laptops.

A distilled few-step acoustic model, a smaller vocoder and evaluator checks on demand.

The same providers as Studio, each validated separately.

CPU

Machines without a supported GPU.

The compact model with int8 quantization and an iSTFT vocoder head.

ONNX Runtime on CPU.

Hardware initialization checks

  • CPU model, cores and threads
  • System RAM, total and free
  • Each GPU: vendor, model, driver version and dedicated memory
  • CUDA compute capability and runtime version on NVIDIA
  • DirectML adapter availability on Windows 11
  • ROCm availability where supported, Linux first
  • Supported precisions per device: fp32, fp16, bf16, int8
  • A short benchmark per profile: real-time factor, peak memory, time to first audio

Offline acceptance test

  • Install the runtime and the model package, then disable every network adapter.
  • Run the full audition and control set; any socket the process opens fails the test.
  • Statically scan the build for browser speech synthesis or remote endpoints.
  • Repeat on each deployment profile and record the machine it ran on.

Not yet measured

Memory, speed and latency per profile are measured in training stage 7. This dossier deliberately quotes none, because no engine exists to measure.
ADR-003Status: proposed

Decision

Provenance before parameters

Only data whose license allows training a distributable model enters the shipped weights. Third-party models appear only as labeled benchmarks or as documented auxiliary evaluators, never inside the voice.

Shipped weights

LJSpeech, LibriTTS-R, VCTK, Hi-Fi TTS and the commissioned consented corpus.

Benchmarks only

Pretrained CosyVoice, F5-TTS, CtrlSpeech or StyleTTS 2 weights, run under their own terms and labeled as third-party wherever they appear.

Never

Distillation from models whose terms forbid it, outputs of restricted models as training data, or any voice without consent.

Risk register

What could go wrong, and the plan for it

Expressive data is scarce, and every public emotional corpus checked is non-commercial.

Commission a consented corpus with parallel intentions. Public emotional sets serve as research benchmarks only where their terms allow.

Intention labels are subjective.

Director labels at recording time, blind listener validation on a subset, agreement statistics published. Automatic labels are never treated as ground truth.

Evaluator models carry their own biases and licenses.

Each auxiliary model is listed separately. Human listening tests remain the acceptance criterion.

Identity drifts under strong expression.

An identity-relative field, a consistency loss and windowed drift detection in the evaluator.

A convincing voice can be misused for impersonation.

No reference-audio cloning in the default product, consented identities only, and provenance marking studied before any release.

Training from scratch is expensive.

A staged curriculum where each stage has exit criteria and is useful alone; the compact profile is distilled only after the studio model passes.