К содержимому
sound·design галерея

← Все справочники · исходный .md · справочники написаны для агента, поэтому на английском

Speech simulation (no TTS)

Goal: sound that is heard as someone speaking — with rhythm, melody, pauses, emotion, identity — without words that need to be understood. Uses: game dialogue "voices", creatures and robots, background chatter, radio/PA texture, placeholder VO timing, UI personality.

The techniques (and which engine covers them)

TechniqueIdeaKnown fromHere
Formant (source–filter) synthesisglottal pulse train through moving vowel resonances + noise for consonantsKlatt 1980, DECtalk, SAMengine: 'formant'
Articulatory / waveguide tracta tube whose shape changes like a mouth (Kelly–Lochbaum)Pink Trombone, vocal-tract modelsengine: 'tract'
Per-letter grainsone short pitched sound per characterAnimal Crossing "Animalese", Undertale / visual-novel blipsengine: 'blip'
Prosody-only murmurmelody and rhythm of speech with articulation blurred"adults" in Peanuts, speech through walls, Simlish-like babbleengine: 'mumble'
Scrambled phonemesreal syllable structure, re-labelled soundsinvented languagesvoice.gibberish 0–1 (any engine)
Crowd wallamany independent murmursfilm background loopscrowd()
Treatmentsband-limit, ring-mod, pitch/formant scaling, reverbradio, robots, giants, ghostsvoiceFx() + voice size/pitch
Concatenated syllable samplesrecorded nonsense syllables re-orderedBanjo-Kazooie, Okaminot built in: granulate/slice a recording, schedule by planSpeech units

Using it

const { buf, duration, marks } = sd.speak('Привет, странник! Куда ты идёшь так поздно?', {
  engine: 'formant',                      // 'formant' | 'tract' | 'blip' | 'mumble'
  voice: { pitch: 110, size: 1.0, range: 1, rate: 5, breath: 0.1, rough: 0, tension: 0.5 },   // or a VOICES key
  seed: 3 });
// marks: [{ word, t }] — word onsets for lip-flap, subtitles, text reveal sync

Text does the directing: punctuation becomes prosody. . falls and pauses; ? rises on the last syllable; ! starts higher, louder, with bigger accents; , lifts slightly and pauses briefly; … trails; ALL CAPS is louder and higher; word and syllable counts set the rhythm. Latin and Cyrillic are mapped to phoneme classes; other scripts are hashed consistently into classes, so any text produces deterministic babble.

Voice parameters (all engines unless noted):

ParameterEffectRange / examples
pitch Hzbase f0giant 60 · man 110 · woman 200 · child 300 · imp 380+
sizevocal-tract length factor: formants scale by 1/sizechild 0.75 · woman 0.86 · man 1 · giant 1.35. Pitch and size are independent: high pitch + big size = strange creature
rangedepth of intonation0.1 monotone/robot · 1 neutral · 1.8 excited/cartoon
rate syll/stempo3 slow/old · 5 neutral · 7+ hurried
breath 0–1aspiration noise in the voice0.05 pressed · 0.3 breathy · with whisper: 1 fully unvoiced
rough 0–1jitter, shimmer, occasional fryage, monsters, strain
tension 0–1source brightness (lax ↔ pressed)calm 0.3 · shouted 0.8
vibrato, tremor5.5 Hz / 7 Hz pitch wobblesingers / frailty, fear
articulation 0–1how far vowels/consonants move from neutral1 crisp · 0.5 lazy · 0.2 mumble
gibberish 0–1share of phonemes re-labelled0 follows the text's sounds · 1 invented language with the text's rhythm
blip: wave, spread, legatosquare/triangle/sine/saw/chirp/bubble; per-letter pitch spread (st); grain lengthcharacter identity for blip voices

VOICES (man, woman, child, elder, giant, imp, whisper, monotone) are starting points; a character is usually one of them with two or three values pushed.

Making characters

Identity comes from a few stable choices plus a treatment:

Non-speech vocal sounds (growls, purrs, roars, chirps) come from the same parts: a slow rough source (pitch 30–80, rough 1) through big size, or stick–slip pulses through formant-like resonances (physics.md §6), layered with noise.

Crowds and background voices

crowd({ voices, seconds, lines, energy, room }) layers mumble voices of mixed pitch, size and rate with their own pauses, panned and reverberated. energy 0.2 murmur (library, church) → 0.8 excited (market, bar). Supply lines in the scene's language for believable phrase lengths. For a pub, add clinks (strike of glass modes) and chair scrapes (stickSlipForce); for a stadium, more voices, long rt60, slow swells of level. Put it behind a wall with voiceFx(…, 'wall') or a zone low-pass (ambience.md).

Verifying (--lens speech)

MetricSpeech-like rangeIf outside
syllableRate3–7 /s (blip: up to 12)too slow → drunk/slow-motion; too fast → chatter
voicedRatio0.4–0.8 (whisper 0)too high → singing/humming; too low → noise
f0RangeSt4–12 st< 2 robot; > 15 cartoon
syllabicDepth> 0.3flat envelope = drone, not speech
articulationOct> 0.25 (mumble 0.1–0.2)no formant movement = a vowel, not talking
pauseShare0.1–0.3no pauses = not phrased

Also check the f0 contour sparkline for the phrase shapes you wrote (rise on ?, fall on .), and marks against the picture if lips or text must sync. These measure prosody-likeness only; whether the character is charming is for ears — offer two or three contrasting takes.