A TTS that fits in your CPU (and pocket)
Python
Clarifications regarding voices + fix missing @classmethod (#86)
Václav Volhejn77cc74a4438a
diff --git a/README.md b/README.mdindex 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.pyindex 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+ @classmethoddef 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.htmlindex 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.<br>You can also use predefined voices:<br>"alba", "marius", "javert", "jean", "fantine", "cosette", "eponine", "azelma".+ <br/>+ You can find more voices in our+ <a+ href="https://huggingface.co/kyutai/tts-voices"+ target="_blank"+ rel="noopener noreferrer"+ class="text-blue-600 hover:underline"+ >+ voice repository</a>.</p></div>@@ -61,6 +70,15 @@/><p class="text-xs text-gray-500 mt-1">Upload an audio file (WAV, MP3, FLAC, etc.) to use as voice reference. Takes precedence over voice URL.+ For best results,+ <a+ href="https://podcast.adobe.com/en/enhance"+ target="_blank"+ rel="noopener noreferrer"+ class="text-blue-600 hover:underline"+ >clean the sample</a+ >+ first.</p></div>