A TTS that fits in your CPU (and pocket)
Python
Add english_2026-09_2 (re-aligned Dora data) and make it the default (#353)
manu-lmb94db177bc0f
diff --git a/docs/API Reference/python-api.md b/docs/API Reference/python-api.mdindex 6982e86..3f98417 100644--- a/docs/API Reference/python-api.md+++ b/docs/API Reference/python-api.md@@ -42,7 +42,7 @@ The main class for text-to-speech generation.Load and return a TTSModel instance with pre-trained weights.**Parameters:**-- `language` (str | None): Name of built-in language config to load. Supported values: `"english_2026-01"`, `"english_2026-04"`, `"english_2026-09"`, `"english_drifting_26-09"`, `"english"`, `"french"`, `"french_24l"`, `"german"`, `"german_24l"`, `"portuguese"`, `"portuguese_24l"`, `"italian"`, `"italian_24l"`, `"spanish"`, `"spanish_24l"`, `"dutch"`, `"dutch_24l"`. If both `language` and `config` are omitted, defaults to `"english"`, which is the same model as `"english_2026-09"`. The "24l" variants are larger models that are not distilled yet and are here only as a preview.+- `language` (str | None): Name of built-in language config to load. Supported values: `"english_2026-01"`, `"english_2026-04"`, `"english_2026-09"`, `"english_2026-09_2"`, `"english_drifting_26-09"`, `"english"`, `"french"`, `"french_24l"`, `"german"`, `"german_24l"`, `"portuguese"`, `"portuguese_24l"`, `"italian"`, `"italian_24l"`, `"spanish"`, `"spanish_24l"`, `"dutch"`, `"dutch_24l"`. If both `language` and `config` are omitted, defaults to `"english"`, which is the same model as `"english_2026-09_2"`. The "24l" variants are larger models that are not distilled yet and are here only as a preview.- `config` (str | None): Path to model config YAML file. Incompatible with `language`.- `temp` (float | None): Sampling temperature for generation. `None` uses the model's recommended default from its config file (`default_temperature`, 0.3).- `sampler_decode_steps` (int): Number of generation steps (default: 1)diff --git a/docs/CLI Commands/export_voice.md b/docs/CLI Commands/export_voice.mdindex be83d41..0e9139f 100644--- a/docs/CLI Commands/export_voice.md+++ b/docs/CLI Commands/export_voice.md@@ -24,7 +24,7 @@ Only the first 30 seconds of the audio file will be processed.### Options- `--quiet`: Do not print any output except errors.-- `--language`: Language for the TTS model, one of `'english_2026-01'`, `'english_2026-04'`, `'english_2026-09'`, `'english_drifting_26-09'`, `'english'`, `'french'`, `'french_24l'`, `'german'`, `'german_24l'`, `'portuguese'`, `'portuguese_24l'`, `'italian'`, `'italian_24l'`, `'spanish'`, `'spanish_24l'`, `'dutch'`, `'dutch_24l'` (default: `english`, which is the same model as `'english_2026-09'`). Incompatible with `--config`. The "24l" variants are bigger models, not distilled yet and here only as preview.+- `--language`: Language for the TTS model, one of `'english_2026-01'`, `'english_2026-04'`, `'english_2026-09'`, `'english_2026-09_2'`, `'english_drifting_26-09'`, `'english'`, `'french'`, `'french_24l'`, `'german'`, `'german_24l'`, `'portuguese'`, `'portuguese_24l'`, `'italian'`, `'italian_24l'`, `'spanish'`, `'spanish_24l'`, `'dutch'`, `'dutch_24l'` (default: `english`, which is the same model as `'english_2026-09_2'`). Incompatible with `--config`. The "24l" variants are bigger models, not distilled yet and here only as preview.- `--config`: Model config yaml path — a local path, an `https://` URL, or an `hf://` path. Incompatible with `--language`.## Examplesdiff --git a/docs/CLI Commands/generate.md b/docs/CLI Commands/generate.mdindex aef03df..6a7ece5 100644--- a/docs/CLI Commands/generate.md+++ b/docs/CLI Commands/generate.md@@ -19,7 +19,7 @@ This will generate a WAV file `./tts_output.wav` with the default text and voice- `--text TEXT`: Text to generate (default: "Hello world! I am Kyutai Pocket TTS. I'm fast enough to run on small CPUs. I hope you'll like me.")- `--voice VOICE`: Path to audio conditioning file (voice to clone). Defaults to a built-in voice chosen from the language: `giovanni` (it) for italian, `lola` (es) for spanish, `juergen` (de) for german, `rafael` (pt) for portuguese, `estelle` (fr) for french, `alba` (en) otherwise. With `--config` or `--checkpoint`, defaults to [alba's audio file](https://huggingface.co/kyutai/tts-voices/blob/main/alba-mackenna/casual.wav) instead of the voice name, since the pre-made voices only exist for the released language models. Urls and local paths are supported.- `--output-path OUTPUT_PATH`: Output path for generated audio (default: "./tts_output.wav")-- `--language LANGUAGE`: Language for the TTS model, one of `'english_2026-01'`, `'english_2026-04'`, `'english_2026-09'`, `'english_drifting_26-09'`, `'english'`, `'french'`, `'french_24l'`, `'german'`, `'german_24l'`, `'portuguese'`, `'portuguese_24l'`, `'italian'`, `'italian_24l'`, `'spanish'`, `'spanish_24l'`, `'dutch'`, `'dutch_24l'` (default: `english`, which is the same model as `'english_2026-09'`). Incompatible with `--config`. The "24l" variants are bigger models, not distilled yet and here only as preview.+- `--language LANGUAGE`: Language for the TTS model, one of `'english_2026-01'`, `'english_2026-04'`, `'english_2026-09'`, `'english_2026-09_2'`, `'english_drifting_26-09'`, `'english'`, `'french'`, `'french_24l'`, `'german'`, `'german_24l'`, `'portuguese'`, `'portuguese_24l'`, `'italian'`, `'italian_24l'`, `'spanish'`, `'spanish_24l'`, `'dutch'`, `'dutch_24l'` (default: `english`, which is the same model as `'english_2026-09_2'`). Incompatible with `--config`. The "24l" variants are bigger models, not distilled yet and here only as preview.### Generation Parametersdiff --git a/docs/CLI Commands/serve.md b/docs/CLI Commands/serve.mdindex 7497936..fc743dd 100644--- a/docs/CLI Commands/serve.md+++ b/docs/CLI Commands/serve.md@@ -17,7 +17,7 @@ This starts a server on `http://localhost:8000` with the default voice model.- `--host HOST`: Host to bind to (default: "localhost")- `--port PORT`: Port to bind to (default: 8000)- `--reload`: Enable auto-reload for development-- `--language`: Language for the TTS model, one of `'english_2026-01'`, `'english_2026-04'`, `'english_2026-09'`, `'english_drifting_26-09'`, `'english'`, `'french'`, `'french_24l'`, `'german'`, `'german_24l'`, `'portuguese'`, `'portuguese_24l'`, `'italian'`, `'italian_24l'`, `'spanish'`, `'spanish_24l'`, `'dutch'`, `'dutch_24l'` (default: `english`, which is the same model as `'english_2026-09'`). Incompatible with `--config`. The "24l" variants are bigger models, not distilled yet and here only as preview.+- `--language`: Language for the TTS model, one of `'english_2026-01'`, `'english_2026-04'`, `'english_2026-09'`, `'english_2026-09_2'`, `'english_drifting_26-09'`, `'english'`, `'french'`, `'french_24l'`, `'german'`, `'german_24l'`, `'portuguese'`, `'portuguese_24l'`, `'italian'`, `'italian_24l'`, `'spanish'`, `'spanish_24l'`, `'dutch'`, `'dutch_24l'` (default: `english`, which is the same model as `'english_2026-09_2'`). Incompatible with `--config`. The "24l" variants are bigger models, not distilled yet and here only as preview.- `--config`: Path to a custom config .yaml — a local path, an `https://` URL, or an `hf://` path. Incompatible with `--language`.- `--default-voice`: Voice used by the requests that don't ask for one (default: the built-in voice of the language). It accepts anything the `generate --voice` option accepts: a built-in voice name, a local path to an audio file or to a `.safetensors` voice, an `https://` URL, or an `hf://` path. It is loaded at startup, so a voice that cannot be read fails the server immediately instead of the first request.- `--quantize`: Use int8 quantization for the model (default: False). This can reduce memory usage and increase speed, with minimal impact on audio quality.diff --git a/pocket_tts/config/english.yaml b/pocket_tts/config/english.yamlindex 586e8af..3cfe0b6 100644--- a/pocket_tts/config/english.yaml+++ b/pocket_tts/config/english.yaml@@ -1,7 +1,7 @@-# Default English model: identical weights to english_2026-09.yaml.+# Default English model: identical weights to english_2026-09_2.yaml.-weights_path: hf://kyutai/pocket-tts/languages/english/model.safetensors@983151f13aaeab1b13c1e5e3c2c383d49a9edf3f-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english/model.safetensors@e7205b6ee50e654a5ea19f0e9df2b0813b05e921+weights_path: hf://kyutai/pocket-tts/languages/english/model.safetensors@7f364c05d1be3faf2b234cdbe4cbb68a026d4218+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english/model.safetensors@575d14372df89a4534bcb989870a34e77544b09f# Human evals preferred this model at 0.3 (equal WER/similarity/speech rate).default_temperature: 0.3diff --git a/pocket_tts/config/english_2026-09_2.yaml b/pocket_tts/config/english_2026-09_2.yamlnew file mode 100644index 0000000..594c905--- /dev/null+++ b/pocket_tts/config/english_2026-09_2.yaml@@ -0,0 +1,64 @@+# english_2026-09 recipe distilled on re-aligned Dora data instead of HiFi-TTS-2 (EMA weights): no repeated+# sentence endings (#347), questions and pauses closer to english_2026-04 (#323), same voice-prompt robustness.++weights_path: hf://kyutai/pocket-tts/languages/english_2026-09_2/model.safetensors@7f364c05d1be3faf2b234cdbe4cbb68a026d4218+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2026-09_2/model.safetensors@575d14372df89a4534bcb989870a34e77544b09f+# Human evals preferred this model at 0.3 (equal WER/similarity/speech rate).+default_temperature: 0.3+++flow_lm:+ insert_bos_before_voice: true+ dtype: float32+ flow:+ depth: 6+ dim: 512+ transformer:+ d_model: 1024+ hidden_scale: 4+ max_period: 10000+ num_heads: 16+ num_layers: 6+ lookup_table:+ dim: 1024+ n_bins: 4000+ tokenizer: tokenizers+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2026-09/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ #weights_path: final.safetensors++mimi:+ dtype: float32+ sample_rate: 24000+ inner_dim: 32+ outer_dim: 512+ channels: 1+ frame_rate: 12.5+ seanet:+ dimension: 512+ channels: 1+ n_filters: 64+ n_residual_layers: 1+ ratios:+ - 6+ - 5+ - 4+ kernel_size: 7+ residual_kernel_size: 3+ last_kernel_size: 3+ dilation_base: 2+ pad_mode: constant+ compress: 2+ transformer:+ d_model: 512+ num_heads: 8+ num_layers: 2+ layer_scale: 0.01+ context: 250+ dim_feedforward: 2048+ input_dimension: 512+ output_dimensions:+ - 512+ quantizer:+ dimension: 32+ output_dimension: 512+ #weights_path: codec.safetensorsdiff --git a/pocket_tts/main.py b/pocket_tts/main.pyindex b0be6e0..0b80108 100644--- a/pocket_tts/main.py+++ b/pocket_tts/main.py@@ -217,8 +217,8 @@ def serve(str | None,typer.Option(help="Language for the TTS model. "- "'english_2026-01', 'english_2026-04', 'english_2026-09', 'english_drifting_26-09', 'english', 'french', 'french_24l', 'german', 'german_24l', 'portuguese', 'portuguese_24l', 'italian', 'italian_24l', 'spanish', 'spanish_24l', 'dutch', 'dutch_24l'."- " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-09'.",+ "'english_2026-01', 'english_2026-04', 'english_2026-09', 'english_2026-09_2', 'english_drifting_26-09', 'english', 'french', 'french_24l', 'german', 'german_24l', 'portuguese', 'portuguese_24l', 'italian', 'italian_24l', 'spanish', 'spanish_24l', 'dutch', 'dutch_24l'."+ " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-09_2'.",show_default=False,),] = None,@@ -283,8 +283,8 @@ def generate(typer.Option(help=("Language for the TTS model. "- "'english_2026-01', 'english_2026-04', 'english_2026-09', 'english_drifting_26-09', 'english', 'french', 'french_24l', 'german', 'german_24l', 'portuguese', 'portuguese_24l', 'italian', 'italian_24l', 'spanish', 'spanish_24l', 'dutch', 'dutch_24l'."- " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-09'. "+ "'english_2026-01', 'english_2026-04', 'english_2026-09', 'english_2026-09_2', 'english_drifting_26-09', 'english', 'french', 'french_24l', 'german', 'german_24l', 'portuguese', 'portuguese_24l', 'italian', 'italian_24l', 'spanish', 'spanish_24l', 'dutch', 'dutch_24l'."+ " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-09_2'. ""The '24l' variants are bigger models, ""not distilled yet and here only as preview. They're not the final ""models for those languages."@@ -403,8 +403,8 @@ def export_voice(typer.Option(help=("Language for the TTS model. "- "'english_2026-01', 'english_2026-04', 'english_2026-09', 'english_drifting_26-09', 'english', 'french', 'french_24l', 'german', 'german_24l', 'portuguese', 'portuguese_24l', 'italian', 'italian_24l', 'spanish', 'spanish_24l', 'dutch', 'dutch_24l'."- " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-09'. "+ "'english_2026-01', 'english_2026-04', 'english_2026-09', 'english_2026-09_2', 'english_drifting_26-09', 'english', 'french', 'french_24l', 'german', 'german_24l', 'portuguese', 'portuguese_24l', 'italian', 'italian_24l', 'spanish', 'spanish_24l', 'dutch', 'dutch_24l'."+ " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-09_2'. ""The '24l' variants are bigger models, ""not distilled yet and here only as preview."),diff --git a/pocket_tts/models/tts_model.py b/pocket_tts/models/tts_model.pyindex 89ae8ba..ea2b1a9 100644--- a/pocket_tts/models/tts_model.py+++ b/pocket_tts/models/tts_model.py@@ -303,8 +303,8 @@ class TTSModel(nn.Module):Args:language: Optional language identifier to select a predefined config. Incompatible withthe `config` argument. Available options- are `"english_2026-01"`, `"english_2026-04"`, `"english_2026-09"`, `"english_drifting_26-09"`, `"english"`, `"french"`, `"french_24l"`, `"german"`, `"german_24l"`, `"portuguese"`, `"portuguese_24l"`, `"italian"`, `"italian_24l"`, `"spanish"`, `"spanish_24l"`, `"dutch"`, `"dutch_24l"`.- If neither `config` nor `language` is provided, defaults to `"english", which is the same model as 'english_2026-09'`.+ are `"english_2026-01"`, `"english_2026-04"`, `"english_2026-09"`, `"english_2026-09_2"`, `"english_drifting_26-09"`, `"english"`, `"french"`, `"french_24l"`, `"german"`, `"german_24l"`, `"portuguese"`, `"portuguese_24l"`, `"italian"`, `"italian_24l"`, `"spanish"`, `"spanish_24l"`, `"dutch"`, `"dutch_24l"`.+ If neither `config` nor `language` is provided, defaults to `"english", which is the same model as 'english_2026-09_2'`.config: A path to a custom YAML config file: a local path (e.g., `"C://pocket_tts/pocket_tts_config.yaml"`),an `https://` URL, or an `hf://` path (e.g. `"hf://<repo_id>/<path>[@revision]"`).temp: Sampling temperature for generation. Higher values produce morediff --git a/pocket_tts/utils/utils.py b/pocket_tts/utils/utils.pyindex 3ca1265..6ccda05 100644--- a/pocket_tts/utils/utils.py+++ b/pocket_tts/utils/utils.py@@ -48,7 +48,7 @@ _ORIGINS_OF_PREDEFINED_VOICES = {def get_predefined_voice(language: str, name: str) -> str:- return f"hf://kyutai/pocket-tts-without-voice-cloning/languages/{language}/embeddings/{name}.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7"+ return f"hf://kyutai/pocket-tts-without-voice-cloning/languages/{language}/embeddings/{name}.safetensors@575d14372df89a4534bcb989870a34e77544b09f"def make_cache_directory() -> Path: