A TTS that fits in your CPU (and pocket)
Python
Pin the versions of the files we're using and allow offline use (#27)
Gabriel de Marmiesse46bb28f44892
diff --git a/pocket_tts/config/b6369a24.yaml b/pocket_tts/config/b6369a24.yamlindex e1a4b68..68c01ce 100644--- a/pocket_tts/config/b6369a24.yaml+++ b/pocket_tts/config/b6369a24.yaml@@ -1,7 +1,7 @@# sig: b6369a24-weights_path: hf://kyutai/pocket-tts/tts_b6369a24.safetensors-weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/tts_b6369a24.safetensors+weights_path: hf://kyutai/pocket-tts/tts_b6369a24.safetensors@427e3d61b276ed69fdd03de0d185fa8a8d97fc5b+weights_path_without_voice_cloning: hf://kyutai/pocket-tts-without-voice-cloning/tts_b6369a24.safetensors@d4fdd22ae8c8e1cb3634e150ebeff1dab2d16df3flow_lm:dtype: float32@@ -18,7 +18,7 @@ flow_lm:dim: 1024n_bins: 4000tokenizer: sentencepiece- tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/tokenizer.model+ tokenizer_path: hf://kyutai/pocket-tts-without-voice-cloning/tokenizer.model@d4fdd22ae8c8e1cb3634e150ebeff1dab2d16df3#weights_path: flow_lm_b6369a24.safetensorsmimi:diff --git a/pocket_tts/models/flow_lm.py b/pocket_tts/models/flow_lm.pyindex 0c5da72..6e0189c 100644--- a/pocket_tts/models/flow_lm.py+++ b/pocket_tts/models/flow_lm.py@@ -2,7 +2,6 @@ import loggingfrom functools import partialimport torch-import torch.exportfrom beartype.typing import Callablefrom torch import nnfrom typing_extensions import Selfdiff --git a/pocket_tts/utils/utils.py b/pocket_tts/utils/utils.pyindex 9f2dd8d..83ba38d 100644--- a/pocket_tts/utils/utils.py+++ b/pocket_tts/utils/utils.py@@ -14,7 +14,7 @@ PROJECT_ROOT = Path(__file__).parent.parent.parent_voices_names = ["alba", "marius", "javert", "jean", "fantine", "cosette", "eponine", "azelma"]PREDEFINED_VOICES = {# don't forget to change this- x: f"hf://kyutai/pocket-tts-without-voice-cloning/embeddings/{x}.safetensors"+ x: f"hf://kyutai/pocket-tts-without-voice-cloning/embeddings/{x}.safetensors@d4fdd22ae8c8e1cb3634e150ebeff1dab2d16df3"for x in _voices_names}