A TTS that fits in your CPU (and pocket)
Python
Retrained French, Italian, Dutch, German, Spanish and Portuguese models (YODAS v3 polish, full-length voice prompts) (#344)
manu-lm41cbc84af539
diff --git a/README.md b/README.mdindex 1d6ad3f..c1963f4 100644--- a/README.md+++ b/README.md@@ -28,7 +28,7 @@ Supports Python 3.10, 3.11, 3.12, 3.13 and 3.14. Requires PyTorch 2.5+. Does not* Uses only 2 CPU cores* Python API and CLI* Voice cloning-* Multi-language support: english, french, german, portuguese, italian, spanish+* Multi-language support: english, french, german, portuguese, italian, spanish, dutch* Can handle infinitely long text inputs* [Can run on client-side in the browser](#in-browser-implementations)diff --git a/pocket_tts/config/dutch.yaml b/pocket_tts/config/dutch.yamlindex 7bde372..87d0112 100644--- a/pocket_tts/config/dutch.yaml+++ b/pocket_tts/config/dutch.yaml@@ -1,5 +1,5 @@-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+weights_path: hf://kyutai/pocket-tts/languages/dutch/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/dutch/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7replace_characters:'"': ''diff --git a/pocket_tts/config/french.yaml b/pocket_tts/config/french.yamlindex 4ec2e0f..6f62d15 100644--- a/pocket_tts/config/french.yaml+++ b/pocket_tts/config/french.yaml@@ -1,5 +1,5 @@-weights_path: hf://kyutai/pocket-tts/languages/french/model.safetensors@d0ebc5deb50bc6b225f686782f124dd37e2dca0a-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/french/model.safetensors@8843db76457a91db32077edf8dfcd1c0e3e755fd+weights_path: hf://kyutai/pocket-tts/languages/french/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/french/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7remove_semicolons: true# Replace characters that are absent from the training data.diff --git a/pocket_tts/config/french_24l.yaml b/pocket_tts/config/french_24l.yamlindex f5b858f..358a0a7 100644--- a/pocket_tts/config/french_24l.yaml+++ b/pocket_tts/config/french_24l.yaml@@ -1,5 +1,5 @@-weights_path: hf://kyutai/pocket-tts/languages/french_24l/model.safetensors@d0ebc5deb50bc6b225f686782f124dd37e2dca0a-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/french_24l/model.safetensors@8843db76457a91db32077edf8dfcd1c0e3e755fd+weights_path: hf://kyutai/pocket-tts/languages/french_24l/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/french_24l/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7remove_semicolons: true# Replace characters that are absent from the training data.diff --git a/pocket_tts/config/german.yaml b/pocket_tts/config/german.yamlindex 249d645..8de93b2 100644--- a/pocket_tts/config/german.yaml+++ b/pocket_tts/config/german.yaml@@ -1,5 +1,5 @@-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@4e1e0a3e611c51c0b4ed8174fc10f32a54644303+weights_path: hf://kyutai/pocket-tts/languages/german/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/german/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7remove_semicolons: truereplace_characters:diff --git a/pocket_tts/config/italian.yaml b/pocket_tts/config/italian.yamlindex 2ec65f0..178e5e7 100644--- a/pocket_tts/config/italian.yaml+++ b/pocket_tts/config/italian.yaml@@ -1,5 +1,5 @@-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+weights_path: hf://kyutai/pocket-tts/languages/italian/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7replace_characters:'"': ''diff --git a/pocket_tts/config/italian_24l.yaml b/pocket_tts/config/italian_24l.yamlindex f6ea910..1fc92a0 100644--- a/pocket_tts/config/italian_24l.yaml+++ b/pocket_tts/config/italian_24l.yaml@@ -1,5 +1,5 @@-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+weights_path: hf://kyutai/pocket-tts/languages/italian_24l/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/italian_24l/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7replace_characters:'"': ''diff --git a/pocket_tts/config/portuguese.yaml b/pocket_tts/config/portuguese.yamlindex 4861f8e..1de19c0 100644--- a/pocket_tts/config/portuguese.yaml+++ b/pocket_tts/config/portuguese.yaml@@ -1,5 +1,5 @@-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+weights_path: hf://kyutai/pocket-tts/languages/portuguese/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/portuguese/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7replace_characters:'"': ''diff --git a/pocket_tts/config/spanish.yaml b/pocket_tts/config/spanish.yamlindex 0747d52..67ac73a 100644--- a/pocket_tts/config/spanish.yaml+++ b/pocket_tts/config/spanish.yaml@@ -1,5 +1,5 @@-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+weights_path: hf://kyutai/pocket-tts/languages/spanish/model.safetensors@3e82814a68665eec246ff649b14c71331f955c06+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/spanish/model.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7replace_characters:'"': ''diff --git a/pocket_tts/utils/utils.py b/pocket_tts/utils/utils.pyindex a1cbe4b..3ca1265 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@069025daa1d6a8a9640bd52581e2a2252f8bede4"+ return f"hf://kyutai/pocket-tts-without-voice-cloning/languages/{language}/embeddings/{name}.safetensors@1e08e6a23401048648a9fdcfde2f89348215c2a7"def make_cache_directory() -> Path: