Skip to content
ReferenceDeprecatedUnreviewed

Phoneme specification (v1)

[!CAUTION] Superseded by Phoneme specification (v2 draft). New datasets, alignment pipelines, and v2 models use the v2 contract. This v1 page remains for historical exp3/exp4 checkpoint compatibility only.

Every sung syllable in WavWonder shares one phoneme representation from dataset labeling through score editing and synthesis.

Annotation and lexicon contract

New annotations and lexicons follow this specification as version 1. Each sung syllable has four separate facts: the text the singer sees, its chosen pronunciation, an ordered sequence of canonical phonemes, and the timing of each phoneme. The text may be a Hanzi character or a typed Pinyin syllable. Text is never treated as a phoneme identifier.

For Mandarin, a lexicon entry maps one normalized, toneless Pinyin syllable to one optional initial and one whole final. An annotation records the syllable instance as well as its phoneme intervals, so repeated identical syllables remain distinct. Every vocal phoneme uses the zh: namespace, while SP and AP remain language-neutral. A future language adds its own namespace and lexicon without changing Mandarin entries.

Text conversion is a suggested annotation, not an irreversible decision. A phrase-aware text-to-Pinyin pass selects a default reading for each Hanzi. The editor retains the original text, lets the user change its Pinyin reading, and lets the user override either phoneme independently. Changing the reading regenerates that syllable’s phonemes, while a direct phoneme edit takes precedence until the reading or lyric is changed again. Unsupported readings or phoneme combinations are reported instead of silently replacing them with a different pronunciation.

Compatibility with existing checkpoints

Existing exp3 and exp4 checkpoints keep their trained vocabularies. Exp3 expects unqualified OpenCPOP phoneme names, and exp4 expects language-qualified names including its qualified pause tokens. Their Pinyin spellings and y/w initials also differ from the version 1 Mandarin inventory. Existing editor projects retain their original phonemes. At inference, a version 1 syllable is translated into the selected legacy checkpoint’s syllable spelling and timing. Because translation can change the number of phonemes, it runs before frame alignment. Checkpoints trained on this specification consume the canonical symbols directly. Compatibility never changes the version 1 lexicon or relabels stored annotations.

Core principles

  1. Syllable-consistent segmentation: Units match what human annotators and audio recognizers can bound reliably. Consonants and monophthongs are single segments. Mandarin compound finals (diphthongs, triphthongs, and nasal rimes such as iang or uan) remain whole rime tokens rather than being split into unverified internal sub-segments (j + a + ŋ).
  2. Syllable-instance preservation: A sustained syllable sung across multiple notes (melisma) is a single rime token spanning the full duration of the vowel. Two consecutive syllables with the same vowel remain two distinct tokens separated by a boundary.
  3. Language-qualified symbols, language-shared acoustics: Phonetic tokens carry a language namespace (zh:, ja:, en:) so each language retains its native segmentation granularity and allophonic targets, while non-vocal pauses (SP, AP) are shared across all languages.

Non-vocal tokens

Two language-neutral tokens represent non-phonetic intervals across all corpora and languages:

Token Meaning Normalized source labels
SP Silence or musical rest SP, <SP>, sil, pau, _, #
AP Audible inhalation (breath) AP, <AP>, @, br

SP and AP are never prefixed with a language code.

Mandarin specification (zh)

Every Mandarin syllable expands into at most two tokens: an optional consonant initial (onset) followed by a single final (rime). Zero-initial syllables consist of a single final token.

Initials (21)

Group Tokens Broad IPA
Bilabial / Labiodental b, p, m, f p, pʰ, m, f
Alveolar d, t, n, l t, tʰ, n, l
Velar g, k, h k, kʰ, x (or [h/ɦ])
Alveolo-palatal j, q, x t͡ɕ, t͡ɕʰ, ɕ
Retroflex zh, ch, sh, r ʈ͡ʂ, ʈ͡ʂʰ, ʂ, ʐ
Dental sibilant z, c, s t͡s, t͡sʰ, s

y and w are orthographic Pinyin markers rather than consonant initials. Corpora that annotate y or w as separate initial intervals fold that interval into the following final within the same syllable.

Finals (38)

Category Tokens Canonical IPA trajectory
Simple & retroflex vowels a, o, e, i, u, v, er a, o, ɤ/ə, i, u, y, ɚ
Apical vowels i0, ir ɹ̩ (after z, c, s), ɻ̩ (after zh, ch, sh, r)
Diphthongs ai, ei, ao, ou, ia, ie, ua, uo, ve ai, ei, au, ou, ja, jɛ, wa, wo, ɥɛ
Triphthongs iao, iu, uai, ui jau, jou, wai, wei
Anterior nasal finals an, en, in, vn, ian, uan, van, un an, ən, in, yn, jɛn, wan, ɥɛn, wən
Posterior nasal finals ang, eng, ing, ong, iang, uang, ueng, iong aŋ, əŋ, iŋ, ʊŋ, jaŋ, waŋ, wəŋ, jʊŋ

When qualified for multilingual models, Mandarin tokens use the zh: prefix (for example, zh:x, zh:iang).

Normalization rules

Both Pinyin conversion and corpus ingestion apply the same canonicalization rules:

  1. Tone and suffix stripping: Strip tone digits (1–5), combining tone marks, angle brackets, and corpus language suffixes (_zh).
  2. Apical vowel disambiguation:
    • After z, c, s: i (or i1) normalizes to i0.
    • After zh, ch, sh, r: i (or i2) normalizes to ir.
    • In all other contexts: i remains i.
  3. Palatal umlaut restoration:
    • After j, q, x: u, ue, uan, un normalize to v, ve, van, vn.
    • After n, l: ü / u: normalizes to v, and üe / ue normalizes to ve.
  4. Rime alias folding:
    • iou -> iu, uei -> ui, uen -> un.
    • ü -> v, üe / ue -> ve, üan -> van, ün -> vn.
  5. Zero-initial folding:
    • yi -> i, ya -> ia, ye -> ie, yao -> iao, you -> iu, yan -> ian, yin -> in, yang -> iang, ying -> ing, yong -> iong.
    • yu -> v, yue -> ve, yuan -> van, yun -> vn.
    • wu -> u, wa -> ua, wo -> uo, wai -> uai, wei -> ui, wan -> uan, wen -> un, wang -> uang, weng -> ueng.

Timing, melisma, and repetition

  1. Onset-to-note timing: In score-driven synthesis, the final starts on the note onset (0.0 s relative to the note), while the consonant initial precedes the note boundary, borrowing time from preceding silence or the tail of the previous note. Resizing a note stretches the final without stretching the consonant initial.
  2. Melisma (one syllable across multiple notes): When a syllable continues across slurred or tied notes (- in the score or slur = 1 in corpus annotations), the contiguous rime intervals merge into a single rime token covering the full duration of the sustained vowel. Pitch changes within the melisma are carried by the frame-level f0_hz contour, while intra-phone progress runs monotonically from 0 to 1 across the entire vowel.
  3. Repeated syllables: Consecutive syllables with identical finals (for example, “衣衣” zh:i, zh:i or “味道” zh:ui, zh:d, zh:ao) belong to distinct syllable instances and are never merged into a single interval. In audio recognition, the boundary head marks the re-articulation between adjacent identical finals.
  4. Boundary confidence: When ingesting corpora or pseudo-labeled data, boundaries whose timestamps are unverified (such as synthetic internal splits or unaligned transitions) are flagged as unknown so boundary losses mask them out during training.

End-to-end example

For the phrase “梨花香” (where “香” spans two notes), a breath, and “衣衣”:

Lyric Pinyin Tokens Per-token language
(rest) SP SP neutral
梨 li zh:l, zh:i zh, zh
花 hua zh:h, zh:ua zh, zh
香 (+ slur -) xiang zh:x, zh:iang zh, zh
(breath) AP AP neutral
衣 yi zh:i zh
衣 yi zh:i zh
(rest) SP SP neutral

Multilingual qualification and cross-lingual adaptation

Language inventories

Each language uses its natural phonemic segmentation under its ISO 639-1 namespace:

  • Chinese (zh:): Onset + whole rime (59 tokens).
  • Japanese (ja:): Moraic consonant onset (k, ky, g, gy, s, sh, z, j, t, ch, ts, d, n, ny, h, hy, f, b, by, p, py, m, my, y, r, ry, w, v), five monophthong nuclei (a, i, u, e, o), and special moras (N for the moraic nasal ん, Q / cl for geminate stop closure っ).
  • English (en:) and additional languages (ko:, es:, fr:, de:, it:, ru:): Segmental consonant and vowel/diphthong phonemes with stress digits removed.

Cross-lingual singer adaptation

A core design goal is adapting a voicebank from dry vocals in a single language (including lyric-free recordings) so the resulting singer can perform in all supported languages. This requires separating language-specific phonology from singer-specific acoustics:

  1. Upstream (language-qualified symbolic layer): Keeping tokens qualified by language (zh:u vs. ja:u, zh:sh vs. ja:sh vs. en:sh) prevents cross-lingual accent averaging. For example, it preserves the distinction between Mandarin rounded [u] and Japanese compressed [ɯᵝ], or Mandarin retroflex [ʂ], Japanese alveolo-palatal [ɕ], and English postalveolar [ʃ]. Token embeddings combine shared articulatory and IPA priors with language-specific residuals so related consonants and vowels across languages share structure rather than acting as orthogonal IDs.
  2. Midstream (universal frame-level content trajectory): An upstream predictor maps the language-qualified token sequence, intra-phone progress, and duration into a continuous frame-level pronunciation trajectory 𝐳(t)∈ℝK\mathbf{z}(t) \in \mathbb{R}^K aligned with a frozen self-supervised acoustic subspace. Compound finals such as zh:iang unfold along progress ∈[0,1]\in [0, 1] into a smooth trajectory from glide to nucleus to nasal coda without needing sub-phone boundary labels.
  3. Downstream (language-agnostic acoustic rendering): The frame-level generator and singer adapter consume only the continuous pronunciation trajectory 𝐳(t)\mathbf{z}(t), normalized log-F0, and singer identity, never raw language-specific token IDs. During singer adaptation on monolingual or unlabeled dry vocals, the upstream text-to-trajectory module remains frozen while the singer adapter learns how the target singer’s vocal tract renders states in ℝK\mathbb{R}^K. At inference time, foreign-language tokens are converted into trajectories in ℝK\mathbb{R}^K by the pretrained upstream predictor and rendered in the target singer’s timbre.

Type to search…

↑↓ navigate↵ selectEsc close