Instructions to use alejandro-hp/AlephTTS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VoxCPM
How to use alejandro-hp/AlephTTS with VoxCPM:
import soundfile as sf from voxcpm import VoxCPM model = VoxCPM.from_pretrained("alejandro-hp/AlephTTS") wav = model.generate( text="VoxCPM is an innovative end-to-end TTS model from ModelBest, designed to generate highly expressive speech.", prompt_wav_path=None, # optional: path to a prompt speech for voice cloning prompt_text=None, # optional: reference text cfg_value=2.0, # LM guidance on LocDiT, higher for better adherence to the prompt, but maybe worse inference_timesteps=10, # LocDiT inference timesteps, higher for better result, lower for fast speed normalize=True, # enable external TN tool denoise=True, # enable external Denoise tool retry_badcase=True, # enable retrying mode for some bad cases (unstoppable) retry_badcase_max_times=3, # maximum retrying times retry_badcase_ratio_threshold=6.0, # maximum length restriction for bad case detection (simple but effective), it could be adjusted for slow pace speech ) sf.write("output.wav", wav, 16000) print("saved: output.wav") - Notebooks
- Google Colab
- Kaggle
Model card: add low-VRAM tip (optimize=False)
Browse files62 unmodified lines63646566676823 unmodified lines9293949596979862 unmodified lines- Punctuation shapes delivery: commas and periods add natural pauses, "!" adds energy.- For long text, generate sentence by sentence.- Load the model once and keep it in memory; the first `generate` call after loading includes a warm-up.- `seed=N` (reproducible output) requires a voxcpm release newer than 2.0.3.## Model details23 unmodified lines- Blind listening test by the voice owner (1–5 scale, 10 sentences): **5.0**, tied with real recordings.- Word error rate (Whisper large-v3) on 24 test sentences, including unseen sentences: 0%.- Speaker similarity (ECAPA-TDNN) to held-out real recordings: 0.73–0.76 (real-vs-real: 0.77).- On an RTX 3070 Ti: ~5.8 GB VRAM, real-time factor ~0.74, first streaming chunk in under 0.1 s.## Intended use and limitations62 unmodified lines63646566676869707123 unmodified lines959697989910010110262 unmodified lines- Punctuation shapes delivery: commas and periods add natural pauses, "!" adds energy.- For long text, generate sentence by sentence.- Load the model once and keep it in memory; the first `generate` call after loading includes a warm-up.- **Low on VRAM?** Load with `VoxCPM.from_pretrained("alejandro-hp/AlephTTS", load_denoiser=False, optimize=False)`.This skips `torch.compile`/CUDA graphs: peak VRAM drops to ~5.6 GB at the same speed on an RTX 3070 Ti,which helps on 8 GB cards shared with a browser, game or OBS.- `seed=N` (reproducible output) requires a voxcpm release newer than 2.0.3.## Model details23 unmodified lines- Blind listening test by the voice owner (1–5 scale, 10 sentences): **5.0**, tied with real recordings.- Word error rate (Whisper large-v3) on 24 test sentences, including unseen sentences: 0%.- Speaker similarity (ECAPA-TDNN) to held-out real recordings: 0.73–0.76 (real-vs-real: 0.77).- On an RTX 3070 Ti: ~5.8 GB VRAM (~5.6 GB with `optimize=False`), real-time factor ~0.74,first streaming chunk in under 0.1 s.## Intended use and limitations
README.md+5-1