A TTS that fits in your CPU (and pocket)
Python
Retrained Spanish, Italian, Portuguese and German; new Dutch (#326)
manu-lm4d9395743df8
diff --git a/docs/API Reference/python-api.md b/docs/API Reference/python-api.mdindex 85065e4..782752c 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"`, `"french"`, `"french_24l"`, `"german_24l"`, `"portuguese_24l"`, `"italian_24l"`, `"spanish_24l"`. If both `language` and `config` are omitted, defaults to `"english"`, which is the same model as `"english_2026-04"`. 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"`, `"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.- `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 d60aaeb..0e5eeb0 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'`, `'french'`, `'french_24l'`, `'german_24l'`, `'portuguese_24l'`, `'italian_24l'`, `'spanish_24l'` (default: `english`, which is the same model as `'english_2026-04'`). 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'`, `'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.- `--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 48d328e..1aac8bc 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'`, `'french_24l'`, `'german'`, `'german_24l'`, `'portuguese'`, `'portuguese_24l'`, `'italian'`, `'italian_24l'`, `'spanish'`, `'spanish_24l'` (default: `english`, which is the same model as `'english_2026-04'`). 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'`, `'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.### Generation Parametersdiff --git a/docs/CLI Commands/serve.md b/docs/CLI Commands/serve.mdindex 8ebe07e..3533ca7 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'`, `'french'`, `'french_24l'`, `'german_24l'`, `'portuguese_24l'`, `'italian_24l'`, `'spanish_24l'` (default: `english`, which is the same model as `'english_2026-04'`). 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'`, `'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.- `--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/dutch.yaml b/pocket_tts/config/dutch.yamlnew file mode 100644index 0000000..7bde372--- /dev/null+++ b/pocket_tts/config/dutch.yaml@@ -0,0 +1,72 @@+weights_path: hf://kyutai/pocket-tts/languages/dutch/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/dutch/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303++replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''++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/dutch/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+ #weights_path: partial.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/config/dutch_24l.yaml b/pocket_tts/config/dutch_24l.yamlnew file mode 100644index 0000000..8a7f72c--- /dev/null+++ b/pocket_tts/config/dutch_24l.yaml@@ -0,0 +1,72 @@+weights_path: hf://kyutai/pocket-tts/languages/dutch_24l/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/dutch_24l/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303++replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''++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: 24+ lookup_table:+ dim: 1024+ n_bins: 4000+ tokenizer: tokenizers+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/dutch_24l/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+ #weights_path: partial.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/config/german.yaml b/pocket_tts/config/german.yamlindex bbd19fd..249d645 100644--- a/pocket_tts/config/german.yaml+++ b/pocket_tts/config/german.yaml@@ -1,9 +1,20 @@-# sig: ba9816ab.yaml--weights_path: hf://kyutai/pocket-tts/languages/german/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/german/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/german/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/german/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303remove_semicolons: true+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''flow_lm:insert_bos_before_voice: true@@ -21,7 +32,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/german/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/german/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:diff --git a/pocket_tts/config/german_24l.yaml b/pocket_tts/config/german_24l.yamlindex 25cfcbc..bc68e56 100644--- a/pocket_tts/config/german_24l.yaml+++ b/pocket_tts/config/german_24l.yaml@@ -1,9 +1,20 @@-# sig: 085f1405.yaml--weights_path: hf://kyutai/pocket-tts/languages/german_24l/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/german_24l/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/german_24l/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/german_24l/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303remove_semicolons: true+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''flow_lm:insert_bos_before_voice: true@@ -21,7 +32,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/german_24l/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/german_24l/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:diff --git a/pocket_tts/config/italian.yaml b/pocket_tts/config/italian.yamlindex 2f3e773..2ec65f0 100644--- a/pocket_tts/config/italian.yaml+++ b/pocket_tts/config/italian.yaml@@ -1,8 +1,19 @@-# sig: 78c8126d.yaml--weights_path: hf://kyutai/pocket-tts/languages/italian/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/italian/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''flow_lm:insert_bos_before_voice: true@@ -20,7 +31,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:diff --git a/pocket_tts/config/italian_24l.yaml b/pocket_tts/config/italian_24l.yamlindex 83f1308..f6ea910 100644--- a/pocket_tts/config/italian_24l.yaml+++ b/pocket_tts/config/italian_24l.yaml@@ -1,8 +1,19 @@-# sig: 6ec79d0f--weights_path: hf://kyutai/pocket-tts/languages/italian_24l/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian_24l/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/italian_24l/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian_24l/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''flow_lm:insert_bos_before_voice: true@@ -20,7 +31,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian_24l/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian_24l/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:diff --git a/pocket_tts/config/portuguese.yaml b/pocket_tts/config/portuguese.yamlindex a071fc9..4861f8e 100644--- a/pocket_tts/config/portuguese.yaml+++ b/pocket_tts/config/portuguese.yaml@@ -1,8 +1,19 @@-# sig: 4a4b1e3a.yaml--weights_path: hf://kyutai/pocket-tts/languages/portuguese/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/portuguese/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''flow_lm:insert_bos_before_voice: true@@ -20,7 +31,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:diff --git a/pocket_tts/config/portuguese_24l.yaml b/pocket_tts/config/portuguese_24l.yamlindex ca3314a..0b1c0e8 100644--- a/pocket_tts/config/portuguese_24l.yaml+++ b/pocket_tts/config/portuguese_24l.yaml@@ -1,8 +1,19 @@-# sig: 56579f81--weights_path: hf://kyutai/pocket-tts/languages/portuguese_24l/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese_24l/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/portuguese_24l/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese_24l/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''flow_lm:insert_bos_before_voice: true@@ -20,7 +31,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese_24l/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese_24l/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:@@ -58,4 +69,4 @@ mimi:quantizer:dimension: 32output_dimension: 512- # weights_path: codec.safetensors+ #weights_path: codec.safetensorsdiff --git a/pocket_tts/config/spanish.yaml b/pocket_tts/config/spanish.yamlindex 2fc23a6..0747d52 100644--- a/pocket_tts/config/spanish.yaml+++ b/pocket_tts/config/spanish.yaml@@ -1,8 +1,21 @@-# sig: 8bcc8b3b.yaml--weights_path: hf://kyutai/pocket-tts/languages/spanish/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/spanish/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''+ '¡': ''+ '¿': ''flow_lm:insert_bos_before_voice: true@@ -20,7 +33,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:diff --git a/pocket_tts/config/spanish_24l.yaml b/pocket_tts/config/spanish_24l.yamlindex 4f618c9..357f2d4 100644--- a/pocket_tts/config/spanish_24l.yaml+++ b/pocket_tts/config/spanish_24l.yaml@@ -1,8 +1,21 @@-# sig: afd6403b--weights_path: hf://kyutai/pocket-tts/languages/spanish_24l/model.safetensors@39592ff23c9ef80098bb74895d104c26275fe2c9-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish_24l/model.safetensors@d29db7978e464fb90cb3359ee0c69a273b9142cc+weights_path: hf://kyutai/pocket-tts/languages/spanish_24l/model.safetensors@2dd944b099d06bb9edbd221fef138685711d9bf0+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish_24l/model.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+replace_characters:+ '"': ''+ '“': ''+ '”': ''+ '„': ''+ '«': ''+ '»': ''+ '’': ''''+ '‘': ''''+ '(': ''+ ')': ''+ '[': ''+ ']': ''+ '¡': ''+ '¿': ''flow_lm:insert_bos_before_voice: true@@ -20,7 +33,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: tokenizers- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish_24l/tokenizer.json@00eac05ed3d16bdc3f6b5d598874019c34a89214+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish_24l/tokenizer.json@4e1e0a3e611c51c0b4ed8174fc10f32a54644303#weights_path: partial.safetensorsmimi:diff --git a/pocket_tts/default_parameters.py b/pocket_tts/default_parameters.pyindex 4af373e..b15599d 100644--- a/pocket_tts/default_parameters.py+++ b/pocket_tts/default_parameters.py@@ -35,6 +35,11 @@ DEFAULT_TEXT_FOR_LANGUAGE = {"Sono abbastanza veloce da funzionare su piccole CPU. ""Spero che ti piacerò."),+ "dutch": (+ "Hallo wereld. Ik ben Pocket TTS van Kyutai. "+ "Ik ben snel genoeg om op kleine CPU's te draaien. "+ "Ik hoop dat je me leuk vindt."+ ),"spanish": ("Hola mundo. Soy el Pocket TTS de Kyutai. ""Soy lo suficientemente rápido para funcionar en pequeñas CPU. "@@ -48,6 +53,7 @@ DEFAULT_VOICE_FOR_LANGUAGE = {"german": "juergen","portuguese": "rafael","french": "estelle",+ "dutch": "daan",}DEFAULT_VOICE_FALLBACK = "alba"# Predefined voices are states precomputed with the released weights of a language model,diff --git a/pocket_tts/main.py b/pocket_tts/main.pyindex d048ca3..c703c58 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', 'french', 'french_24l', 'german_24l', 'portuguese', 'italian', 'spanish'."- " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-04'.",+ "'english_2026-01', 'english_2026-04', 'english_2026-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'.",show_default=False,),] = None,@@ -283,9 +283,8 @@ def generate(typer.Option(help=("Language for the TTS model. "- "'english_2026-01', 'english_2026-04', 'english', 'french', 'french_24l', 'spanish_24l',"- "'german_24l', 'portuguese_24l', 'italian_24l'."- " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-04'. "+ "'english_2026-01', 'english_2026-04', 'english_2026-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'. ""The '24l' variants are bigger models, ""not distilled yet and here only as preview. They're not the final ""models for those languages."@@ -404,9 +403,8 @@ def export_voice(typer.Option(help=("Language for the TTS model. "- "'english_2026-01', 'english_2026-04', 'english', 'french', 'french_24l', 'german_24l','spanish_24l',"- " 'portuguese_24l', 'italian_24l'."- " Incompatible with the config argument. Default is 'english', which is the same model as 'english_2026-04'. "+ "'english_2026-01', 'english_2026-04', 'english_2026-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'. ""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 706e259..87804e7 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"`, `"french"`, `"french_24l"`, `"german_24l"`, `"portuguese"`, `"italian"`, `"spanish_24l"`.- If neither `config` nor `language` is provided, defaults to `"english", which is the same model as 'english_2026-04'`.+ are `"english_2026-01"`, `"english_2026-04"`, `"english_2026-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'`.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 b15e44a..9936831 100644--- a/pocket_tts/utils/utils.py+++ b/pocket_tts/utils/utils.py@@ -42,12 +42,13 @@ _ORIGINS_OF_PREDEFINED_VOICES = {"lola": "hf://kyutai/pocket-tts/common_voice_es_19762977-enhanced-v2.mp3@64ab7d24c479d736a83b8cc666c4a776fca30fda","juergen": "hf://kyutai/pocket-tts/de-DE-juergen.mp3@64ab7d24c479d736a83b8cc666c4a776fca30fda","rafael": "hf://kyutai/pocket-tts/g-Vi8PgmSY0-enhanced-v2.wav@64ab7d24c479d736a83b8cc666c4a776fca30fda",+ "daan": "hf://kyutai/pocket-tts/cml_tts_nl_11290_9412_000030_0001.flac@2dd944b099d06bb9edbd221fef138685711d9bf0","estelle": "hf://kyutai/tts-voices/unmute-prod-website/developpeuse-3.wav@1fc7395b7e012e2bbebfca14b942a4ef62ccc899",}def get_predefined_voice(language: str, name: str) -> str:- return f"hf://kyutai/pocket-tts-without-voice-cloning/languages/{language}/embeddings/{name}.safetensors@8843db76457a91db32077edf8dfcd1c0e3e755fd"+ return f"hf://kyutai/pocket-tts-without-voice-cloning/languages/{language}/embeddings/{name}.safetensors@4e1e0a3e611c51c0b4ed8174fc10f32a54644303"def make_cache_directory() -> Path: