Skip to content

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.yaml
index 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: true
diff --git a/pocket_tts/config/dutch_24l.yaml b/pocket_tts/config/dutch_24l.yaml
index 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: true
diff --git a/pocket_tts/config/english.yaml b/pocket_tts/config/english.yaml
index 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-cloning
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_18m_2026-10.yaml b/pocket_tts/config/english_18m_2026-10.yaml
index 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@a0172fa05a0725a745539c88e4b58f1ee19cb9a7
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_18m_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '–': ','
+ '—': ','
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_18m_refl_2026-10.yaml b/pocket_tts/config/english_18m_refl_2026-10.yaml
index 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@a0172fa05a0725a745539c88e4b58f1ee19cb9a7
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_18m_refl_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '–': ','
+ '—': ','
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_2026-01.yaml b/pocket_tts/config/english_2026-01.yaml
index 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-cloning
pad_with_spaces_for_short_inputs: true
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: false
dtype: float32
diff --git a/pocket_tts/config/english_2026-04.yaml b/pocket_tts/config/english_2026-04.yaml
index 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-cloning
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_2026-04_24l.yaml b/pocket_tts/config/english_2026-04_24l.yaml
index 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.safeten
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2026-04_24l/model.safetensors@e81d79e8194ad4c7ce879c87a4258ef20cbf2487
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_2026-09.yaml b/pocket_tts/config/english_2026-09.yaml
index 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-cloning
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_2026-09_2.yaml b/pocket_tts/config/english_2026-09_2.yaml
index 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-cloning
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_2026-09_24l.yaml b/pocket_tts/config/english_2026-09_24l.yaml
index 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.safeten
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2026-09_24l/model.safetensors@e7205b6ee50e654a5ea19f0e9df2b0813b05e921
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_2m_2026-10.yaml b/pocket_tts/config/english_2m_2026-10.yaml
index 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@a72dba0d1a5f1387c104f9d3e17abb8ab60b4fae
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2m_2026-10/model.safetensors@a3055dcb533cf2ec90458008a01e7cef550bae2a
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '–': ','
+ '—': ','
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_2m_refl_2026-10.yaml b/pocket_tts/config/english_2m_refl_2026-10.yaml
index 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@a72dba0d1a5f1387c104f9d3e17abb8ab60b4fae
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_2m_refl_2026-10/model.safetensors@a3055dcb533cf2ec90458008a01e7cef550bae2a
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '–': ','
+ '—': ','
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_7m_2026-10.yaml b/pocket_tts/config/english_7m_2026-10.yaml
index 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@a0172fa05a0725a745539c88e4b58f1ee19cb9a7
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_7m_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '–': ','
+ '—': ','
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_7m_refl_2026-10.yaml b/pocket_tts/config/english_7m_refl_2026-10.yaml
index 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@a0172fa05a0725a745539c88e4b58f1ee19cb9a7
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_7m_refl_2026-10/model.safetensors@08ffc58775e62aad9409511b9591c9af626270f3
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '–': ','
+ '—': ','
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/english_drifting_26-09.yaml b/pocket_tts/config/english_drifting_26-09.yaml
index 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.safe
weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/languages/english_drifting_26-09/model.safetensors@a5ce31f3eba7a3b0cb9c24ba2015b098f278eaae
default_temperature: 0.3
+# Replace characters that are absent from the training data.
+replace_characters:
+ '’': "'"
+ '‘': "'"
+
flow_lm:
insert_bos_before_voice: true
dtype: float32
diff --git a/pocket_tts/config/french.yaml b/pocket_tts/config/french.yaml
index 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: true
diff --git a/pocket_tts/config/french_24l.yaml b/pocket_tts/config/french_24l.yaml
index 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: true
diff --git a/pocket_tts/config/german.yaml b/pocket_tts/config/german.yaml
index 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: true
diff --git a/pocket_tts/config/german_24l.yaml b/pocket_tts/config/german_24l.yaml
index 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: true
diff --git a/pocket_tts/config/italian.yaml b/pocket_tts/config/italian.yaml
index 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: true
diff --git a/pocket_tts/config/italian_24l.yaml b/pocket_tts/config/italian_24l.yaml
index 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: true
diff --git a/pocket_tts/config/portuguese.yaml b/pocket_tts/config/portuguese.yaml
index 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: true
diff --git a/pocket_tts/config/portuguese_24l.yaml b/pocket_tts/config/portuguese_24l.yaml
index 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: true
diff --git a/pocket_tts/config/spanish.yaml b/pocket_tts/config/spanish.yaml
index 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: true
diff --git a/pocket_tts/config/spanish_24l.yaml b/pocket_tts/config/spanish_24l.yaml
index 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