Skip to content

Releases

Phonon 0.8.1

Choose a tag to compare

@github-actions github-actions released this 04 Dec 08:59
c59d579

Phonon 0.8.1

Changes since 0.8.0.

  • Default voice for the OpenAI server: --voice (PTTS_VOICE) sets the voice of requests that name none, for the HTTP API and Wyoming. A German server no longer reads German in the checkpoint's English voice when Home Assistant's tts.speak sends no voice (#413, for #410).
  • WebSocket server: setup accepts a catalog voice's voice_id, as clients written for the hosted Gradium API send it (#390). ready now reports the sample rate of the audio the session receives, so a session asking for pcm_48000 is told 48000 (#392).
  • Japanese: numbers are written in kanji before they reach the model, which misread digits ("1884年" no longer comes out as "1800年14年"), and km, kg, mm and cm after a number read キロ, ミリ and センチ (#421).
  • QNN: the runner looks up the text embeddings on the host when a bundle ships a text table, since AI Hub's converter now compiles that lookup wrongly. Bundles without one load as before (#411).
  • Android: android/ is one Gradle build, so the text-to-speech engine app now builds from there with ./gradlew :tts-engine:assembleDebug (#419).

No API was removed. phonon-31m-en-coreml.zip and phonon-31m-en-qnn.zip are the ones attached to 0.8.0, since the default model and the Core ML export are unchanged.

Phonon 0.8.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 16:44
ece0925

Phonon 0.8.0

Changes since 0.7.1.

  • Text normalization in ten more languages: Arabic, Finnish, Hindi, Italian, Japanese, Korean, Dutch, Norwegian, Polish and Swedish now go through the word rewrite rules, not only the character pass. Numbers and prices are read in words (#358), and so are file names, addresses and codes, with letters spelled by their names in each language (#361). Swedish and Norwegian dates and clock times (#359), Hindi times, dates, ranges and units (#360), and Japanese dates, times, ranges, fractions and phone numbers (#362) have rules of their own.
  • Character pass for en, fr, de, es and pt: the new readings apply to the first five languages too, for example "2024–25" reads "2024 to 25" and "$ 5" reads "5 dollars" (#366).
  • Clicks at chunk starts: long text is spoken in chunks, and each chunk started with a short click. The first 20 ms of each chunk now fade in, in every engine: the CPU and GPU path (#372), the browser's CPU and WebGPU engines, Core ML and QNN (#373), and speech-to-speech (#374).
  • Core ML: the flow LM's step and prefill graphs are now two functions of one package that share one copy of the weights, so the bundle is smaller to download and to keep on the device (#350). Bundles exported by older versions still load. The Mimi worker thread now runs at its caller's QoS, which removes a priority inversion Xcode reported (#349).
  • Speech-to-speech: ptts::s2s sessions take live input in pieces of any size and keep a bounded cache through a sliding window (#352, #355), and run on Core ML too, with an export for it (#357).
  • Faster Mimi with kai: xn 0.2.15 packs the SME2 f32 weights once instead of on every call (#368).
  • Docs: the README has an FAQ for integrators (#351).
  • Breaking: the zh, da and tr language codes are gone, with Lang::Zh, Lang::Da and Lang::Tr, since no checkpoint speaks those languages (#364). Lang::has_rules is gone too, since every language now has rules (#358). This is why the version is 0.8.0.

The attached phonon-31m-en-coreml.zip is exported anew with the single flow LM package. phonon-31m-en-qnn.zip is the one attached to the previous releases.

Phonon 0.7.1

Choose a tag to compare

@github-actions github-actions released this 13 Nov 15:25
5f9522b

Phonon 0.7.1

Changes since 0.7.0.

  • OpenAI server: --gain-db (PTTS_GAIN_DB) makes the speech louder or quieter by a fixed number of dB. When it raises the level, a limiter keeps peaks below -1 dBFS, so nothing clips. It applies to the HTTP API and to Wyoming, so Home Assistant announcements can match the volume of other engines. The default is 0 (#342).
  • Voices: a checkpoint whose baked-in voices are only a prefix, without conditions of their own, now accepts other voices and voice cloning too (#341).

phonon-31m-en-coreml.zip and phonon-31m-en-qnn.zip are the ones attached to 0.7.0: the default model has not changed.

Phonon 0.7.0

Choose a tag to compare

@github-actions github-actions released this 09 Nov 11:14
32c1554

Phonon 0.7.0

Changes since 0.6.0.

  • Default model: pinned to the current gradium/phonon-31m-en commit, whose default voice is Reuben. The weights and tokenizer are unchanged (#337).
  • Browser, WebGPU: phonon-tts has a WebGPU engine of its own, written for Phonon's architecture, in place of the generic xn WebGPU path. A frame is a fixed list of fused kernels that the GPU replays, with sampling and the end of speech on the GPU, so many frames go out in one submit. It is faster and starts speaking sooner on every GPU we measured, including Apple GPUs in Chrome and Safari and the iPhone. WebGPU stays opt in (device: 'webgpu', or 'auto' on a hardware adapter with q8 weights); a checkpoint the engine does not implement is refused before loading, and under 'auto' the CPU runs it instead (#330).
  • CUDA: decoding is several times faster. The flow LM's step is replayed as a CUDA graph (#297), Mimi runs on its own stream and thread, overlapping the next step (#294), the flow net's time conditioning is computed once at load (#296), and xn 0.2.14 brings faster norm and attention kernels (#334). --quant q8 --device cuda now runs the transformer's linears as q8_0 on the GPU instead of being refused (#295).
  • Core ML: the export takes a 200-token prefill, as long as the other frontends cut text to, so long sentences no longer get false sentence ends (#318, #326). The first audio comes a little later in exchange. The attached phonon-31m-en-coreml.zip is exported anew with this.
  • C, Swift and Android: ptts_set_temperature and ptts_set_seed set the sampling temperature and seed, with setTemperature and setSeed in the Swift package and PhononTTS.kt (#314).
  • Voices: priming a 17th voice evicts only the least recently used one, instead of clearing every primed voice (#325).
  • Speech-to-speech: ptts::s2s and the s2s example run checkpoints conditioned per frame on input audio instead of text (#329).
  • Experimental: an opt-in q8_0 Mimi decoder on the CPU, SynthBuilder::quantize_mimi(true) or the hidden --quantize-mimi flag. It pays off with kai or xn's own kernels, not with Accelerate alone (#186).
  • Python: the macOS arm64 wheel is built on macos-15 (#331).
  • Contributing: CONTRIBUTING.md and a contributor license agreement (#324).
  • Rust API (breaking): ptts::tts_model::TTSConfig has a new public field, audio_delay (#329), so code that builds a TTSConfig with a struct literal needs to set it. This is why the version is 0.7.0.

phonon-31m-en-qnn.zip is the one attached to 0.5.0 and 0.6.0, with the Snapdragon X Elite context, and still has the previous default voice.

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 11:26
95bf24d

Phonon 0.6.0

Changes since 0.5.0.

  • macOS 27: Metal works again. The new Metal compiler rejected one of the matrix-multiply kernels, so --device metal, and the default --device auto with it, failed before speaking (#302). Fixed in xn 0.2.13 (gradium-ai/xn#132, #309).
  • GPU fallback: with --device auto, a GPU that fails to start now gives way to the CPU with a one-line warning, instead of failing the whole load. Python raises it as a UserWarning. A device chosen by name still fails with the full error (#310).
  • Thirteen more languages: --lang takes ar, hi, ko, pl, sv, fi, no, it, nl, ja, zh, da and tr, in every frontend. They get the character pass with their own spoken forms for symbols, and Japanese is spaced one character at a time as its checkpoints were trained; the word rules (numbers, currency, emails, ...) stay with en, fr, de, es and pt. These codes need a checkpoint trained on the language (#304, #305, #306).
  • Core ML: the exported Mimi decoder attends to the same window as ptts (#281) and uses the checkpoint's GELU (#282), its size comes from the checkpoint's config (#283), and the smaller Pocket TTS models export too (#284).
  • Fixes:
    • Hugging Face Hub: HF_TOKEN, HF_HOME, HF_HUB_CACHE, HF_ENDPOINT and HF_HUB_OFFLINE are read the way huggingface_hub reads them, and on Windows the cache and the hf auth login token are found under the user's profile (#308).
    • CLI: log lines go to stderr, so -o /dev/stdout carries only the audio (#293).
    • Metal and CUDA: one wait on the device per frame instead of two (#280).
  • QNN: the runner builds on Windows ARM64 (#273), and the 31m bundle has a Snapdragon X Elite context (#300).
  • Rust API (breaking): ptts::preprocess::Lang has thirteen new variants and is now #[non_exhaustive], so a match on it outside ptts needs a _ arm; Lang::ALL is a slice (#304, #312). This is why the version is 0.6.0. From now on, new languages are not breaking.

The attached phonon-31m-en-coreml.zip is exported anew with this release's Core ML fixes. phonon-31m-en-qnn.zip is the one attached to 0.5.0, with the Snapdragon X Elite context.

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 09:42
e851445

Phonon 0.5.0

Changes since 0.4.2.

  • Small models: the runtime loads the architectures of Kyutai's small Pocket TTS models: one-step flow heads (flow_type: drifting or pointwise), a z_dim projection, grouped-query attention (attn_dim, num_kv_heads) and a Mimi encoder inner_dim. Every new key is optional, so existing checkpoints load and sound the same. The Core ML export does not support these keys yet and says so (#210).
  • Mimi: the decoder's streaming attention now covers context positions, as in the Python model the decoders were trained with, instead of one more. Output changes slightly, toward the reference (#209).
  • Fixes:
    • Browser: phonon-tts accepts the abbreviations and elongations rewrite rules (#274).
    • Voice catalogs: adding a catalog keeps the checkpoint's own voices, and a local catalog's voice files must be inside its folder (#275).
    • Python: the type stub lists normalize in __all__ (#256).
    • Swift: a locally built PhononCore.xcframework targets each platform's default CPU, as release builds already did (#257).
  • Rust API (breaking): ConvDownsample1d::load and StreamingMultiheadAttention::load take new arguments, and public config structs have new fields (#210). This is why the version is 0.5.0.
  • Housekeeping: unused dependencies and dead code removed (#258, #259, #264), crates that are not on crates.io marked publish = false (#265), both licences declared in the Android QNN library's POM (#268), and doc fixes (#270, #271, #272).

The attached model bundles (phonon-31m-en-coreml.zip, phonon-31m-en-qnn.zip) are those of 0.4.0: nothing in this release changes what they contain.

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 25 Oct 20:07
cc0c32b

Phonon 0.4.2

A small release on top of 0.4.1.

  • Mimi: a checkpoint can set decoder_dimension when its decoder is narrower than the latent, for small decoders distilled from a larger codec (#261).
  • Swift: PhononCore.xcframework gains a Mac Catalyst slice (#253).
  • Browser: the phonon-tts npm package ships the licence notices of the crates it is built from (#252).
  • Docs: a C guide for ptts-ffi, linked from the README (#250).
  • CI: the default model speaks through every backend on every platform, and Whisper checks that the words come back (#251).

The attached model bundles (phonon-31m-en-coreml.zip, phonon-31m-en-qnn.zip) are those of 0.4.0: nothing in this release changes what they contain.

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 24 Oct 08:09
49b9033

Phonon 0.4.1

A small release on top of 0.4.0.

  • Python: ptts.normalize(text, lang=...) returns the text exactly as TTS normalizes it before speaking, without loading a model (#244).
  • Command line: the --condition help uses duration_delta as its example (#239).
  • Docs: every guide was run against 0.4.0 and fixed, the README is shorter, the model table has one row per model, the Phonon example apps are linked, and the QNN Android library is no longer marked as a preview.

The runtime is unchanged, so the model bundles attached to 0.4.0 (phonon-31m-en-coreml.zip, phonon-31m-en-qnn.zip) work with this release.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 20 Oct 13:36
f07d795

Phonon 0.4.0

The first stable release of Phonon: streaming text-to-speech that runs on your device. The runtime is written in Rust and needs no PyTorch. It runs on desktops, servers, phones and in the browser.

The models

Phonon models are on Hugging Face. Without a model argument, every frontend downloads Phonon 31m on first use.

Model Repo Languages License
Phonon 31m gradium/phonon-31m-en English Apache 2.0
Phonon 40m gradium/phonon-40m-en, -fr, -de, -es, -pt one language each CC BY-NC 4.0
Phonon 40m multilingual gradium/phonon-40m-multilingual English, French, German, Spanish, Portuguese CC BY-NC 4.0

The Phonon 40m models are gated. Accept the terms on the model's page (approval is automatic), then set HF_TOKEN or run hf auth login.

Voices come from the catalog gradium/phonon-voices, in all five languages. Name one with --voice and only that voice is downloaded. ptts --list-voices lists them.

Get it

  • Command line: uvx ptts --lang en "Hello from Phonon." -o speech.wav, brew install gradium-ai/tap/ptts, or the archives below.
  • Python: pip install ptts
  • Browser: npm install phonon-tts
  • Rust: cargo add ptts --features hf,hub
  • Swift: add https://github.com/gradium-ai/xn-ptts.git in Xcode.
  • Server: ghcr.io/gradium-ai/ptts-openai-server:0.4.0, an OpenAI-compatible speech API that also speaks the Wyoming protocol for Home Assistant.
  • Android: a C library with a Kotlin wrapper on the CPU, and a QNN library for Snapdragon NPUs, both built from source.

Model bundles in this release

Ready-made bundles of Phonon 31m, the default model, with the English voices of the catalog:

  • phonon-31m-en-coreml.zip: for the Swift package (Core ML, iPhone and Mac).
  • phonon-31m-en-qnn.zip: for the Android QNN library, with context binaries for the SM8650, SM8750, SM8850 and QCS8275.

SHA-256:

10f3a99fd39256db44f826267ef21d78cca959b16c0554926344c09fde27b436  phonon-31m-en-coreml.zip
9da103025d88682428e350f7d65254bfa672d671a9a7e643fb4527e370007722  phonon-31m-en-qnn.zip

For a Phonon 40m model, accept its terms on Hugging Face, then export a Core ML bundle with export_coreml or build a QNN bundle with the tools in qnn/export.