From 77cc74a4438aa8df58ff7a8df19afe1eccc9ed0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?V=C3=A1clav=20Volhejn?=
<8401624+vvolhejn@users.noreply.github.com>
Date: Mon, 26 Jan 2026 12:46:44 +0100
Subject: [PATCH] Clarifications regarding voices + fix missing @classmethod
(#86)
---
README.md | 1 +
pocket_tts/models/tts_model.py | 2 ++
pocket_tts/static/index.html | 18 ++++++++++++++++++
3 files changed, 21 insertions(+)
diff --git a/README.md b/README.md
index 3c52e36..dd3bfa1 100644
--- a/README.md
+++ b/README.md
@@ -61,6 +61,7 @@ for each voice.
The `--voice` argument can also take a plain wav file as input for voice cloning.
You can use your own or check out our [voice repository](https://huggingface.co/kyutai/tts-voices).
+We recommend [cleaning the sample](https://podcast.adobe.com/en/enhance) before using it with Pocket TTS, because the audio quality of the sample is also reproduced.
Feel free to check out the [generate documentation](https://github.com/kyutai-labs/pocket-tts/tree/main/docs/generate.md) for more details and examples.
For trying multiple voices and prompts quickly, prefer using the `serve` command.
diff --git a/pocket_tts/models/tts_model.py b/pocket_tts/models/tts_model.py
index d733f95..4a95431 100644
--- a/pocket_tts/models/tts_model.py
+++ b/pocket_tts/models/tts_model.py
@@ -173,7 +173,9 @@ class TTSModel(nn.Module):
return tts_model
+ @classmethod
def load_model(
+ cls,
variant: str = DEFAULT_VARIANT,
temp: float | int = DEFAULT_TEMPERATURE,
lsd_decode_steps: int = DEFAULT_LSD_DECODE_STEPS,
diff --git a/pocket_tts/static/index.html b/pocket_tts/static/index.html
index a52efa2..6aa17ba 100644
--- a/pocket_tts/static/index.html
+++ b/pocket_tts/static/index.html
@@ -46,6 +46,15 @@
Supports: http://, https://, or hf:// URLs.
You can also use predefined voices:
"alba", "marius", "javert", "jean", "fantine", "cosette", "eponine", "azelma".
+
+ You can find more voices in our
+
+ voice repository.
Upload an audio file (WAV, MP3, FLAC, etc.) to use as voice reference. Takes precedence over voice URL. + For best results, + clean the sample + first.