Skip to content
ExplanationUnreviewed

Synthesizer V phonetics and text frontend

The Synthesizer V text frontend turns raw lyrics into phonetic and articulatory representations that downstream duration, pitch, and acoustic models consume. The frontend is organized as the Cross-Lingual Frontend (CLF), backed by unencrypted dictionary and phoneme tables in clf-data2/ inside the application bundle.

Because Synthesizer V Studio 2 Pro supports both native second-generation voicebanks and first-generation compatibility voicebanks, two phonetic representations coexist in the runtime: a unified ten-language X-SAMPA and articulatory feature system for SV2, and an embedded five-language multiphone mapping table inside SV1 compatibility voicebanks.

1. Lyric-to-phoneme text frontend

When a user enters lyrics on notes, CLF converts orthography into language-specific system phonemes through a sequence of tokenization, dictionary lookup, statistical grapheme-to-phoneme (G2P) fallback, and language rules.

The clf-data2/ directory ships 29 resource files tailored to the orthography of each supported language:

  • Mandarin: A two-stage dictionary pipeline converts Hanzi to toned Pinyin via cedict.txt (44,630 entries), then converts Pinyin syllables to Mandarin system phonemes via mandarin-dict.txt (716 entries, such as ba to b a, zhi to zh ir, and zi to z iz). The runtime also supports Bopomofo decoding and falls back to mandarin-jsm.data (25 KB) for out-of-vocabulary inputs.
  • Cantonese: Mirrors Mandarin with cedict-canto.txt (4.45 MB) for Hanzi-to-Jyutping lookup, cantonese-dict.txt (1,582 entries, such as aak to aa -k), and cantonese-jsm.data (18 KB).
  • English: Uses cmudict-07b.txt (133,770 entries) for dictionary lookup, english-jsm.data (824 KB) for out-of-vocabulary G2P, and english-reverse-jsm.data (822 KB) for reverse phoneme-to-grapheme alignment. Language rules handle common function words (she, who, they, those, these, that) and optional cluster merging (enable_tw_dw).
  • Japanese: Runs a morphological tokenizer (japanese-tokenizer.data, 1.21 MB) to segment unspaced text, resolves Kanji readings through edict.txt (973 KB) and japanese-kanji-jsm.data (3.40 MB), normalizes Hiragana, Katakana, and small Kana via three dedicated tables (japanese-hira2romaji-dict.txt, japanese-kata2romaji-dict.txt, japanese-sute2romaji-dict.txt), and maps Romaji morae to phonemes through japanese-romaji-dict.txt (340 entries) and japanese-romaji-jsm.data (8 KB).
  • Korean: Decomposes Hangul through korean-jamo2romaji-dict.txt, then maps syllables via korean-dict.txt (4,067 entries) and korean-jsm.data (26 KB).
  • French, German, Italian, and Brazilian Portuguese: Each pairs a pronunciation lexicon with a statistical fallback model (french-dict.txt with 72,840 entries including liaison forms such as est-ce and allons-y, german-dict.txt at 5.8 MB, italian-dict.txt at 2.19 MB, and portuguese-brazil-dict.txt at 1.36 MB, plus their *-jsm.data files). German adds rule toggles for word-initial glottal stops (enable_word_glottal_stop), diphthongs (enable_diphthongs), and ich-Laut variants (default_ich_laut).
  • Spanish: Ships no dictionary or JSM file in clf-data2/. Because Spanish orthography maps deterministically to pronunciation, the runtime runs a rule-based frontend with options for European distinction (european_pronunciation), y pronunciation (y_pronunciation), and coda s aspiration (coda_s_aspiration), plus a built-in exception stem list for Nahuatl and Mexican x spellings (mexic, oaxac, texas, quixote, xavier, ximena, xolo, tlaxcal, nixtamal).

Every *-jsm.data file encodes a compact Joint Sequence Model (JSM), a graphone n-gram statistical model that aligns grapheme and phoneme fragments (such as z$y$u or n$d). Running JSM on CPU keeps out-of-vocabulary prediction fast enough for live lyric editing in the piano roll.

2. Dual phoneme notation and phoneme-table.tsv

System phonemes produced by the dictionaries are translated through clf-data2/phoneme-table.tsv, which separates user-facing notation from shared phonetic transcription.

The table defines 423 phoneme rows across five columns (Language, Phoneme (System), Phoneme (XSAMPA), Sys. Category, and Example):

  • Four cross-lingual Common symbols: sil (silence), cl (glottal closure or stop hold), vf (vocal fry or glottal stop), and br (breath).
  • Ten active languages: Mandarin (55), English (49), German (45), Portuguese (45), Cantonese (43), Japanese (41), French (39), Korean (37), Spanish (35), and Italian (30).
  • Shared X-SAMPA convergence: The 423 language-specific system phonemes map onto 175 unique non-empty X-SAMPA symbols and 10 system categories (vowel, diphthong, coda, stop, affricate, fricative, liquid, nasal, semivowel, and silence). Model-side _psv2 tables extend this taxonomy to 13 categories by adding aspirate, trill, and breath.

Keeping system phonemes separate from X-SAMPA lets users edit lyrics in familiar orthography-inspired symbols while giving the engine a unified phonetic inventory underneath. The table below shows representative Mandarin rows from phoneme-table.tsv.

Example word System phonemes X-SAMPA System categories
邦 bang b aa ng pp A :N stop, vowel, coda
旁 pang p aa ng ph A :N stop, vowel, coda
之 zhi zh ir ts` r\` affricate, vowel
此 ci c iz tsh M+ affricate, vowel
在 zai z a -i tts a i^ affricate, vowel, coda
心 xin x i -n s\ i :n fricative, vowel, coda
去 qu q v ts\h y affricate, vowel

Coda decomposition in SV2

Comparing phoneme-table.tsv against SV1 voicebank inventories highlights a structural change in how singing finals are represented:

  • SV1 compatibility voicebanks pack Mandarin compound finals into atomic symbols (AU, @U, ia, iA, iAU, ie, iE, iU, i@U, y{, yE, ua, uA, u@, ue, uo). Sustaining a long note stretches the whole compound token together.
  • SV2 phoneme-table.tsv splits trailing glides, nasals, and stop closures into an explicit coda category across eight languages: Mandarin (-i, -r, -n, ng), Cantonese (-i, -y, -u, -m, -n, -ng, -p, -t, -k), Japanese (-i, -u, -N), English (ll), Spanish (U, I), German (-r), Korean (ng), and Portuguese (H, wn, yn). Splitting the nucleus from the coda lets the duration model hold sustained pitch on the main vowel and place the closing transition at the end of the note.

3. Cross-lingual synthesis pathways

Single-language voicebanks sing across multiple languages through two different mechanisms depending on voicebank generation.

SV1 compatibility path: explicit multiphone merging

Inside the Stardust Infinity compatibility voicebank, the frontend and acoustic models embed six _psv2 tables: five per-language inventories (mandarin-xsampa-phones with 59 symbols, english-arpabet-phones with 50, japanese-romaji-phones with 42, cantonese-xsampa-phones with 46, and spanish-xsampa-phones with 31) alongside one unified 107-symbol multiphone inventory.

Each per-language _psv2 table stores a third vector mapping every language phoneme directly to a target entry in multiphone. Mandarin’s 55 core X-SAMPA symbols serve as the shared anchor, while genuinely distinct foreign sounds receive dedicated prefixed entries (ARP_*, ROM_*, YUE_*, ES_*):

  • Japanese: Shares core vowels (a, i, u, e, o) directly. Voiceless stops map to Mandarin aspirated stops (t to th, k to kh, p to ph), voiced stops map to Mandarin unaspirated stops (d to t, g to k, b to p), and sibilants align directly (sh to s\, j to ts\, z to ts, ts to tsh). Palatalized and labialized clusters receive 12 dedicated ROM_* slots (ROM_kw, ROM_gw, ROM_py, ROM_dy, ROM_ty, ROM_ry, ROM_ky, ROM_ny, ROM_my, ROM_hy, ROM_gy, ROM_by).
  • English: Merges shared sounds (aa to a, ah to A, aw to AU, eh to e, b to p, d to t, ch to ts`h) and allocates 18 dedicated ARP_* slots for English-specific vowels, interdental fricatives, flaps, and clusters (ARP_ae, ARP_ao, ARP_ax, ARP_ay, ARP_er, ARP_ih, ARP_ey, ARP_oy, ARP_dx, ARP_q, ARP_dr, ARP_tr, ARP_dw, ARP_tw, ARP_dh, ARP_th, ARP_v, ARP_zh).
  • Cantonese: Shares stops, fricatives, and syllabic nasals (h to x, ts to ts, p to p, ph to ph, m= to m, N= to N) while keeping a dedicated onset velar nasal (YUE_N), Cantonese-specific vowels (6, 8, 9), and codas (:u, :m, :p_}, :t_}, :k_}).
  • Spanish: Shares the five cardinal vowels and allocates dedicated entries for voiced stops, approximants, taps, trills, and glides (b, B, d, D, g, r, rr, ll, ES_I).

During multilingual pretraining, the acoustic model learns pronunciation patterns across all 107 multiphone channels. When fine-tuned on a monolingual singer, shared anchor slots lock in vocal timbre while pretrained foreign slots transfer cross-lingual articulation.

Native SV2 path: articulatory feature decomposition

Maintaining hand-crafted pairwise phoneme merge tables scales poorly beyond five languages. Static inspection of Synthesizer V Studio 2 Pro shows that the SV2 runtime decomposes phonemes into general phonetic and articulatory features through two parallel feature-building paths.

Nine articulatory attributes are queried by name:

  • voicing: vocal fold vibration state.
  • obstruent: whether the segment is an obstruent (stop, fricative, or affricate).
  • rhoticity: retroflex or rhotic articulation.
  • aspiration: presence of aspiration burst.
  • tenseness: vowel tenseness contrast.
  • v2_rounding: lip rounding of the second target in a diphthong or glide.
  • v2_height: tongue height of the second target in a diphthong or glide.
  • c_stricture: degree of consonantal constriction.
  • system_category: coarse phoneme class from phoneme-table.tsv.

Alongside these nine attributes, the runtime parses nasalization (nasality=nasal) and tracks sub-phoneme progression (subphn_pos, subphn_actv).

These articulatory descriptors connect directly to downstream rendering controls and language expansion:

  • Timing and articulation controls: Render requests carry obstruents_length_bias, even_syllable_division, is_rap, and rap_accent. Explicit obstruent, aspiration, and voicing tags let the duration model tighten or stretch consonant bursts independently of vowel nuclei.
  • Extensible language support: Beyond the 10 languages shipping in phoneme-table.tsv, the binary registers 37 language identifiers (including Shanghainese WUU, Arabic, Russian, Thai, Vietnamese, Hindi, Urdu, Malay, Turkish, Polish, Dutch, Greek, and Hebrew), supports an external phoneme-table-ext extension mechanism, and accepts direct xsampa: phonetic input.

Type to search…

↑↓ navigate↵ selectEsc close