A TTS that fits in your CPU (and pocket)
Python
Rewrite dashes and curly apostrophes the models never saw in training (#387)
quetion667a30f92840892
diff --git a/pocket_tts/config/dutch.yaml b/pocket_tts/config/dutch.yamlindex 87d0112..a200db5 100644--- a/pocket_tts/config/dutch.yaml+++ b/pocket_tts/config/dutch.yaml@@ -14,6 +14,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/dutch_24l.yaml b/pocket_tts/config/dutch_24l.yamlindex 8a7f72c..dc583a9 100644--- a/pocket_tts/config/dutch_24l.yaml+++ b/pocket_tts/config/dutch_24l.yaml@@ -14,6 +14,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/english.yaml b/pocket_tts/config/english.yamlindex 3cfe0b6..b86b56b 100644--- a/pocket_tts/config/english.yaml+++ b/pocket_tts/config/english.yaml@@ -6,6 +6,11 @@ weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloningdefault_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_18m_2026-10.yaml b/pocket_tts/config/english_18m_2026-10.yamlindex 98566df..69efb6e 100644--- a/pocket_tts/config/english_18m_2026-10.yaml+++ b/pocket_tts/config/english_18m_2026-10.yaml@@ -3,6 +3,13 @@weights_path: hf://kyutai/pocket-tts/languages/english_18m_2026-10/model.safetensors@a0172fa05a0725a745539c88e4b58f1ee19cb9a7weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_18m_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3default_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '–': ','+ '—': ','+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_18m_refl_2026-10.yaml b/pocket_tts/config/english_18m_refl_2026-10.yamlindex f60817a..c263ea6 100644--- a/pocket_tts/config/english_18m_refl_2026-10.yaml+++ b/pocket_tts/config/english_18m_refl_2026-10.yaml@@ -3,6 +3,13 @@weights_path: hf://kyutai/pocket-tts/languages/english_18m_refl_2026-10/model.safetensors@a0172fa05a0725a745539c88e4b58f1ee19cb9a7weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_18m_refl_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3default_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '–': ','+ '—': ','+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_2026-01.yaml b/pocket_tts/config/english_2026-01.yamlindex 67a992a..39ba420 100644--- a/pocket_tts/config/english_2026-01.yaml+++ b/pocket_tts/config/english_2026-01.yaml@@ -5,6 +5,11 @@ weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloningpad_with_spaces_for_short_inputs: true+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: falsedtype: float32diff --git a/pocket_tts/config/english_2026-04.yaml b/pocket_tts/config/english_2026-04.yamlindex 923b060..68ea362 100644--- a/pocket_tts/config/english_2026-04.yaml+++ b/pocket_tts/config/english_2026-04.yaml@@ -6,6 +6,11 @@ weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloningdefault_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_2026-04_24l.yaml b/pocket_tts/config/english_2026-04_24l.yamlindex 61d4b00..a656af1 100644--- a/pocket_tts/config/english_2026-04_24l.yaml+++ b/pocket_tts/config/english_2026-04_24l.yaml@@ -2,6 +2,11 @@ weights_path: hf://kyutai/pocket-tts/languages/english_2026-04_24l/model.safetenweights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2026-04_24l/model.safetensors@e81d79e8194ad4c7ce879c87a4258ef20cbf2487default_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_2026-09.yaml b/pocket_tts/config/english_2026-09.yamlindex fd72050..78b4263 100644--- a/pocket_tts/config/english_2026-09.yaml+++ b/pocket_tts/config/english_2026-09.yaml@@ -8,6 +8,11 @@ weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloningdefault_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_2026-09_2.yaml b/pocket_tts/config/english_2026-09_2.yamlindex 594c905..edb92fb 100644--- a/pocket_tts/config/english_2026-09_2.yaml+++ b/pocket_tts/config/english_2026-09_2.yaml@@ -7,6 +7,11 @@ weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloningdefault_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_2026-09_24l.yaml b/pocket_tts/config/english_2026-09_24l.yamlindex 13ff891..1553822 100644--- a/pocket_tts/config/english_2026-09_24l.yaml+++ b/pocket_tts/config/english_2026-09_24l.yaml@@ -3,6 +3,11 @@ weights_path: hf://kyutai/pocket-tts/languages/english_2026-09_24l/model.safetenweights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2026-09_24l/model.safetensors@e7205b6ee50e654a5ea19f0e9df2b0813b05e921default_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_2m_2026-10.yaml b/pocket_tts/config/english_2m_2026-10.yamlindex 542b963..2a323e7 100644--- a/pocket_tts/config/english_2m_2026-10.yaml+++ b/pocket_tts/config/english_2m_2026-10.yaml@@ -3,6 +3,13 @@weights_path: hf://kyutai/pocket-tts/languages/english_2m_2026-10/model.safetensors@a72dba0d1a5f1387c104f9d3e17abb8ab60b4faeweights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2m_2026-10/model.safetensors@a3055dcb533cf2ec90458008a01e7cef550bae2adefault_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '–': ','+ '—': ','+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_2m_refl_2026-10.yaml b/pocket_tts/config/english_2m_refl_2026-10.yamlindex ad6e961..a45c17b 100644--- a/pocket_tts/config/english_2m_refl_2026-10.yaml+++ b/pocket_tts/config/english_2m_refl_2026-10.yaml@@ -3,6 +3,13 @@weights_path: hf://kyutai/pocket-tts/languages/english_2m_refl_2026-10/model.safetensors@a72dba0d1a5f1387c104f9d3e17abb8ab60b4faeweights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2m_refl_2026-10/model.safetensors@a3055dcb533cf2ec90458008a01e7cef550bae2adefault_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '–': ','+ '—': ','+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_7m_2026-10.yaml b/pocket_tts/config/english_7m_2026-10.yamlindex f1dbcca..d6279c2 100644--- a/pocket_tts/config/english_7m_2026-10.yaml+++ b/pocket_tts/config/english_7m_2026-10.yaml@@ -3,6 +3,13 @@weights_path: hf://kyutai/pocket-tts/languages/english_7m_2026-10/model.safetensors@a0172fa05a0725a745539c88e4b58f1ee19cb9a7weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_7m_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3default_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '–': ','+ '—': ','+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_7m_refl_2026-10.yaml b/pocket_tts/config/english_7m_refl_2026-10.yamlindex 9cda00d..aae172f 100644--- a/pocket_tts/config/english_7m_refl_2026-10.yaml+++ b/pocket_tts/config/english_7m_refl_2026-10.yaml@@ -3,6 +3,13 @@weights_path: hf://kyutai/pocket-tts/languages/english_7m_refl_2026-10/model.safetensors@a0172fa05a0725a745539c88e4b58f1ee19cb9a7weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_7m_refl_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3default_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '–': ','+ '—': ','+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/english_drifting_26-09.yaml b/pocket_tts/config/english_drifting_26-09.yamlindex d153476..ec0cb5c 100644--- a/pocket_tts/config/english_drifting_26-09.yaml+++ b/pocket_tts/config/english_drifting_26-09.yaml@@ -5,6 +5,11 @@ weights_path: hf://kyutai/pocket-tts/languages/english_drifting_26-09/model.safeweights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_drifting_26-09/model.safetensors@a5ce31f3eba7a3b0cb9c24ba2015b098f278eaaedefault_temperature: 0.3+# Replace characters that are absent from the training data.+replace_characters:+ '’': "'"+ '‘': "'"+flow_lm:insert_bos_before_voice: truedtype: float32diff --git a/pocket_tts/config/french.yaml b/pocket_tts/config/french.yamlindex 6f62d15..483f69d 100644--- a/pocket_tts/config/french.yaml+++ b/pocket_tts/config/french.yaml@@ -17,6 +17,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/french_24l.yaml b/pocket_tts/config/french_24l.yamlindex 358a0a7..1da8ef0 100644--- a/pocket_tts/config/french_24l.yaml+++ b/pocket_tts/config/french_24l.yaml@@ -17,6 +17,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/german.yaml b/pocket_tts/config/german.yamlindex 8de93b2..d179702 100644--- a/pocket_tts/config/german.yaml+++ b/pocket_tts/config/german.yaml@@ -15,6 +15,8 @@ replace_characters:')': '''[': ''']': ''+ '–': ','+ '—': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/german_24l.yaml b/pocket_tts/config/german_24l.yamlindex bc68e56..a46b2f9 100644--- a/pocket_tts/config/german_24l.yaml+++ b/pocket_tts/config/german_24l.yaml@@ -15,6 +15,8 @@ replace_characters:')': '''[': ''']': ''+ '–': ','+ '—': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/italian.yaml b/pocket_tts/config/italian.yamlindex 178e5e7..81fe7ed 100644--- a/pocket_tts/config/italian.yaml+++ b/pocket_tts/config/italian.yaml@@ -14,6 +14,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/italian_24l.yaml b/pocket_tts/config/italian_24l.yamlindex 1fc92a0..cf609c3 100644--- a/pocket_tts/config/italian_24l.yaml+++ b/pocket_tts/config/italian_24l.yaml@@ -14,6 +14,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/portuguese.yaml b/pocket_tts/config/portuguese.yamlindex 1de19c0..c86053d 100644--- a/pocket_tts/config/portuguese.yaml+++ b/pocket_tts/config/portuguese.yaml@@ -14,6 +14,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/portuguese_24l.yaml b/pocket_tts/config/portuguese_24l.yamlindex 0b1c0e8..7a5d121 100644--- a/pocket_tts/config/portuguese_24l.yaml+++ b/pocket_tts/config/portuguese_24l.yaml@@ -14,6 +14,7 @@ replace_characters:')': '''[': ''']': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/spanish.yaml b/pocket_tts/config/spanish.yamlindex 67ac73a..d665b2d 100644--- a/pocket_tts/config/spanish.yaml+++ b/pocket_tts/config/spanish.yaml@@ -16,6 +16,7 @@ replace_characters:']': '''¡': '''¿': ''+ '–': ','flow_lm:insert_bos_before_voice: truediff --git a/pocket_tts/config/spanish_24l.yaml b/pocket_tts/config/spanish_24l.yamlindex 357f2d4..7622362 100644--- a/pocket_tts/config/spanish_24l.yaml+++ b/pocket_tts/config/spanish_24l.yaml@@ -16,6 +16,7 @@ replace_characters:']': '''¡': '''¿': ''+ '–': ','flow_lm:insert_bos_before_voice: true