PMVC-TTS
Text-to-speech in Japanese and English whose output is not a waveform. Each model here writes a control track: 21 channels, 100 frames a second, that say how to move the tongue, the jaw, the lips, the soft palate and the vocal folds, and how hard the lungs push. The sound is made from the track by CHIMERA, Jameson Hodge's physical simulation of the airway (MIT licence), which this project uses unmodified. There is no neural vocoder and no recorded sound anywhere between the text and the loudspeaker.
The models come from a study of a neural codec whose decoder is a physical model: if the latent is how a vocal tract is moved, then a latent that is somewhat wrong still makes a sound a person could have made. The code, the experiments and a technical report are at https://github.com/takuma104/physical-modeling-voice-codec.
Try it in a browser, with nothing to install:
https://huggingface.co/spaces/takuma104/pmvc-tts?en (ζ₯ζ¬θͺ:
?ja). The Space sends your browser a
sentence's control track, and the simulated voice runs in the page.
Files
| File | What it is |
|---|---|
ja.json, ja.safetensors |
Japanese text-to-speech: phonemes and accent (Open JTalk) β control track. 19 M weights. |
en.json, en.safetensors |
English text-to-speech: phonemes and stress (CHIMERA's own front end: CMUdict and letter-to-sound rules) β control track. 19 M weights. |
encoder/j2.json, encoder/j2.safetensors |
The codec's encoder: a recording β its control track, with no transcript. 45 M weights beside facebook/wav2vec2-base-960h, whose last six layers they replace. |
voices/v1.json |
The pair of voices the models were taught through: the settings of CHIMERA's voice for a low (male) and a high (female) voice, and what a step of the brightness dial changes. |
A .json says everything a model needs beside its weights, in particular the settings of the
simulated voice that plays its tracks. A track is only meaningful with those settings and with
CHIMERA at commit e33221d, the one the models were taught through.
Use
The models are read by the code in the repository above (Python 3.13, Rust for the engine):
git clone --recursive https://github.com/takuma104/physical-modeling-voice-codec && cd physical-modeling-voice-codec
rustup target add wasm32-unknown-unknown
uv sync
cargo build -p pmvc-wasm --release --target wasm32-unknown-unknown
uvx --from huggingface_hub hf download takuma104/pmvc-tts --local-dir models
uv run python -m pmvc.serve --model models/ja.json models/en.json # β http://127.0.0.1:7860/
The page asks the server for a sentence's control track and plays it in the browser through the engine compiled to WebAssembly, so the pitch and the brightness of the voice can be turned while it speaks. In Python:
from pathlib import Path
from pmvc.serve import Model
ja = Model(Path("models/ja.json"), "", "", Path("voices/v1.json"), {})
track = ja.speak({"text": "γγγ«γ‘γ―γ", "share": 0.0, "pitch": 125.0, "rate": 10.2, "spread": 0.0})
# track["frames"]: one row a frame (10 ms) of track["keys"]; the browser or pmvc_engine plays it
A model is not told who speaks. It is told two numbers, the share of the high voice (0 the low voice, 1 the high one) and the pace in phonemes a second, and the pitch is the track's own channel, so a voice is a position of four dials: body, pitch, pace and brightness.
The encoder writes a track for a recording (python -m pmvc.encoder encode DIR --models models/encoder --name j2 --voice voices/v1.json --no-wall-air --closed-area 1e-6 --quiet-pauses, on recordings laid out by pmvc.recordings).
How they were made
The voice. CHIMERA simulates the air in a tube shaped by articulators. Two settings of its
voice were fixed by ear and by measurement, a low one and a high one (voices/v1.json), and
everything here was taught through them.
The encoder (J2). A recording goes through wav2vec 2.0 (facebook/wav2vec2-base-960h,
Apache-2.0; its last six layers are tuned) and a recurrent network to a control track. It is
taught in a closed loop: its track is played by a differentiable stand-in for the simulated
voice, and what comes out is compared with the recording through a self-supervised model's
features (sarulab-speech/hubert-base-jtube, MIT; a yardstick during training, none of its
weights are here). The recordings: the TSP speech database (Simplified BSD) and 3,600 clips of
Emilia-YODAS, half Japanese and half English (CC BY 4.0).
Text-to-speech. A FastSpeech 2-shaped model (phonemes β durations β frames) learns the tracks the encoder wrote for recordings with their text, with a second loss through the same stand-in and yardstick.
| Model | Recordings (after pruning those whose text and sound do not match) |
|---|---|
ja |
Emilia-YODAS Japanese (7,045 clips, 11.9 hours, 799 speakers; CC BY 4.0) and Mozilla Common Voice Japanese 27.0 (8,234 clips, 10.2 hours, 600 speakers; CC0) |
en |
LibriTTS-R train-clean-100: 7,534 sentences, 12.9 hours, 240 readers (CC BY 4.0) |
The speakers of the recordings are not in the published models: speaking needs only what the
men and the women have at the median (pitch, pace, how far the pitch moves), and two entries
called low and high carry that.
How well they speak
Each model read test sentences it was not taught, in the low voice and in the high one, and Whisper (large-v3-turbo) wrote down what it heard. The figure is the share of phonemes it got wrong, with a 95% interval; the same recogniser on the recordings of the same sentences is the floor.
| Sentences | Recordings | Low voice | High voice | |
|---|---|---|---|---|
ja |
200 of JVS's (8 speakers Γ 25) | 2.5% | 3.0% [2.6, 3.5] | 2.9% [2.5, 3.4] |
en |
240 of TSP's (4 speakers Γ 60, Harvard sentences) | 1.6% | 1.9% [1.2, 2.7] | 3.1% [2.1, 4.2] |
The Japanese model spoke at 10.2 phonemes a second, the pace of the recordings, with median pitches of 125 and 240 Hz; the English one at its own median pace and pitches (10.7 phonemes a second, 115 and 196 Hz). The encoder's own tracks, played back, are read with 3.6% (JVS) and 4.6% (TSP) wrong.
These are a recogniser's errors, not listening tests. A simulated tube does not sound like a recording: the voice is recognisably synthetic, weaker than a recording between 1 and 4 kHz (by 5 to 8 dB in the low voice), and the high voice is rated lower than the low one by a quality predictor (NISQA). What the numbers say is that the words are there.
Limits
- Two voices and the dials between and around them. The models cannot copy a speaker, and were not taught to.
- Japanese is read by Open JTalk and English by CMUdict with letter-to-sound rules (General American): a misreading of theirs is spoken as it is read. Other languages are not read.
- A sentence at a time, up to a few hundred characters. No emotion or style is controlled.
- The tracks are for CHIMERA at the commit above with the settings in the
.json. Another engine version or other settings will play them, and sound different.
Licences and credits
The weights and voices/v1.json are under CC BY 4.0. They were made with:
- CHIMERA by Jameson Hodge, MIT licence: the simulated voice. Not included here.
- Emilia-YODAS (He et al., Emilia: A large-scale, extensive, multilingual, and diverse dataset for speech generation, 2025), CC BY 4.0.
- Mozilla Common Voice Japanese, version 27.0, CC0.
- LibriTTS-R (Koizumi et al., LibriTTS-R: A restored multi-speaker text-to-speech corpus, 2023), CC BY 4.0, from LibriVox recordings in the public domain.
- TSP speech database (P. Kabal, McGill University), Simplified BSD.
- wav2vec 2.0
facebook/wav2vec2-base-960h(Baevski et al., 2020), Apache-2.0: the layers the encoder tunes started from it. - hubert-base-jtube (sarulab-speech), MIT: the yardstick of the closed loop.
- Open JTalk (through pyopenjtalk-plus) and the CMU Pronouncing Dictionary: the text front ends, used when the models are run.
No recording of JVS, Hi-Fi-CAPTAIN or any other corpus that may not be passed on was used to teach these weights. JVS's sentences (the text only) are what the Japanese model is tested on.
Citation
@misc{pmvc2026,
title = {A neural speech codec whose decoder is a physical model of the vocal tract},
author = {Mori, Takuma},
year = {2026},
url = {https://github.com/takuma104/physical-modeling-voice-codec}
}