Antiphon
One model, both directions β it hears, and it answers.
Antiphon is a joint speech-to-text (STT) and text-to-speech (TTS) model built on a single shared transformer backbone, trained with cross-modal JEPA objectives (audioβtext representation prediction). One set of weights does both tasks β no two-model pipeline.
- Version: 0.1.0 (first release, 2026-11-15)
- Language: English only
- Size: β117M parameters (445 MiB fp32 checkpoint) + frozen frontends
- Audio: 16 kHz, β€15 s input; 16 kHz output
- License: Apache-2.0 (code + weights), with third-party components under their own terms β see THIRD_PARTY_NOTICES.md. β οΈ The bundled ECAPA speaker encoder is VoxCeleb-trained (non-commercial); read the notices before any commercial deployment.
Benchmark scorecard
Measured 2026-11-15 on the standard 2026 benchmarks with their official
protocols (reports in benchmarks/):
STT β LibriSpeech (Open ASR Leaderboard sets)
| Set | WER | CER | Clips | Speed |
|---|---|---|---|---|
| test-clean | 15.66% | 7.99% | 2,382 | 54Γ real-time |
| test-other | 25.71% | 14.24% | 2,768 | 51Γ real-time |
Decoding: attention beam 8 + CTC 0.5 rescoring, uppercase-alnum normalization. β9% of clips exceed the 15 s cap and are excluded (counted in the reports).
TTS β Seed-TTS-eval test-en (Open TTS Leaderboard protocol)
| Metric | Antiphon 0.1 | SOTA range |
|---|---|---|
| WER (Whisper-large-v3 referee) | 2.58% | β1.2β2.5% |
| Speaker similarity (WavLM-SV) | 0.214 | β0.66β0.79 |
971 / 1,088 clips (89.2% coverage; 117 CMUdict-OOV skips β the frontend is training-exact, no G2P fallback). Zero invalid outputs. The SIM scorer was validated against real human recordings (GT SIM 0.714, matching the published β0.73 reference): the low voice-cloning score is genuine model behavior.
Honest positioning: excellent TTS intelligibility for a first model, mid-range STT, weak zero-shot voice cloning (a single 192-d ECAPA enrollment vector carries less speaker detail than in-context audio prompting).
Quickstart
from antiphon import Antiphon
model = Antiphon.from_pretrained() # repo root auto-detected
# STT: speech -> text
text = model.transcribe("examples/samples/sample_audio.wav")
# -> 'THE WEAPON MUST STILL HAVE BEEN THERE'
# TTS: text -> speech in a reference voice (16 kHz waveform)
wav = model.synthesize("Hello world, this is Antiphon.",
speaker="examples/samples/sample_speaker.wav",
output_path="hello.wav")
CLI:
python examples/transcribe.py examples/samples/sample_audio.wav
python examples/synthesize.py "Hello world" --speaker examples/samples/sample_speaker.wav --out hello.wav
Hardware
Inference uses stock torch SDPA β no vendor-specific kernels or extra packages required. It runs on ROCm, CUDA, and CPU (fp32, slow); GPU inference uses bf16 autocast. Peak VRAM: β1.1 GiB STT, β0.7 GiB TTS. Reference benchmark numbers were measured on an AMD RX 9070 XT (gfx1201), ROCm 7.2.1, torch 2.14.0+rocm.
Multi-GPU note: on systems with several GPUs, set HIP_VISIBLE_DEVICES
(ROCm) or CUDA_VISIBLE_DEVICES (CUDA) to the GPU you want before running β
the library uses whichever device is visible. Selecting a device without the
right kernels produces hipErrorInvalidKernelFile on ROCm.
Frontend rules (TTS)
Text is uppercased and looked up in the pinned CMUdict β exactly as in
training. Digits, non-ASCII letters, and out-of-vocabulary words raise
FrontendError rather than being silently guessed. Spell numbers out
("25" β "TWENTY FIVE").
Weight variants
| Variant | File | Size | Use |
|---|---|---|---|
| fp32 (default) | weights/antiphon.pt |
445 MiB | Canonical, benchmarked artifact |
| bf16 (opt-in) | weights/antiphon-bf16.pt |
223 MiB | Compact download / serving |
model = Antiphon.from_pretrained(variant="bf16")
Parity (report): STT WER within noise on 200 test-clean clips (14.96% β 15.12%, same exact-match count); TTS durations identical on 7/8 probe sentences (one +32 ms), mel-level deltas β0.04β0.08 (β5β8% of the model's own reconstruction error). Not bit-identical and not perceptually re-validated β use fp32 when quality is critical. int8/fp8 is deferred until there's a deployment need.
Architecture
audio β Whisper-base enc β proj_audio ββ
ββ shared 4-layer transformer ββ¬β STT adapter (2L) β STT decoder (4L) + CTC β text
phonemes β MiniLM-L6 enc β proj_text βββ (modality embeddings) ββ TTS head (4L, flow_energy) β mel β HiFi-GAN β wav
The shared block is trained with self- and cross-JEPA (masked prediction of
teacher representations across modalities) plus supervised STT/TTS losses;
cross-modal retrieval R@1 is 98β100% on the internal 100-way dev probe. The
STT branch adapter and the low-LR shared-block recovery that produced this
release are documented in the research workspace (end2end/TRAINING.md).
Repository layout
antiphon/ inference package (Antiphon class + vendored model code)
weights/ antiphon.pt + frozen whisper-base / minilm-l6 / ecapa / hifigan
assets/ BPE tokenizer, phoneme inventory, pinned CMUdict
configs/ antiphon.yaml (inference) + training_config.yaml (provenance)
benchmarks/ official ship-eval reports + per-clip details + SIM validation
examples/ transcribe / synthesize scripts + sample audio
vendor/ pinned speechbrain copy (ECAPA / HiFi-GAN wrappers)
Provenance
Trained on LibriTTS-R train-clean-100 (CC BY 4.0) in the end2end research
workspace. Release lineage: phase2_jepa_flow_pitch_009_surgical β stt_focus_001 β stt_focus_full_001 β stt_adapter_001/002 β stt_shared_unfreeze_001/002
(banked). The release checkpoint carries this lineage and the training-config
sha256 in its antiphon metadata block.
Limitations
- English only; β€15 s audio; offline (non-streaming) inference.
- Zero-shot voice cloning is weak (SIM 0.214) β best results with clean, in-domain (audiobook-style) reference voices.
- TTS frontend rejects OOV words; no number normalization.
- 16 kHz output bandwidth; mel + HiFi-GAN, not a codec-LM.
- Benchmark coverage caveats are disclosed in each report.