keithito/lj_speech
Updated β’ 1.45k β’ 62
A small English text-to-speech system trained entirely from scratch on LJSpeech (single female speaker, ~24 h). The acoustic model was trained in about 45 minutes on one GPU. It needs no phonemizer and no external aligner.
| Component | Params | Notes |
|---|---|---|
| Acoustic model | 9.36 M | FastSpeech-style, 4+4 FFT blocks, d=256, character input |
| Vocoder | 1.72 M | HiFi-GAN-style generator, fine-tuned on the acoustic model's mels |
| Total | ~11.1 M |
1. "Printing, in the only sense with which we are at present concerned, differs from most arts and crafts."
2. "The quick brown fox jumps over the lazy dog."
3. "This tiny model has only ten million parameters, and it was trained from scratch."
4. "Hello, how are you today?"
from huggingface_hub import snapshot_download
import sys, soundfile as sf
d = snapshot_download("QuillBytes/cyclone-mini")
sys.path.insert(0, d)
from inference import TinyTTSPipeline
tts = TinyTTSPipeline(d) # vocoder="original" loads vocoder_original.safetensors
wav = tts("Hello, how are you today?") # float32 numpy array, 22.05 kHz
sf.write("out.wav", wav, tts.sr)
Or from the command line:
python inference.py "Hello there." out.wav
Requirements: torch numpy safetensors soundfile huggingface_hub. It runs on CPU or GPU.
| File | Description |
|---|---|
tts.safetensors |
Acoustic model weights (EMA) |
vocoder.safetensors |
Vocoder weights (default) |
vocoder_original.safetensors |
Vocoder trained on real mels only, without the fine-tune |
config.json |
Audio settings, symbol table, model sizes, duration correction |
inference.py |
Standalone inference code with no training dependencies |
<unk>.config.json stores a global speed correction (MIT for the code and weights. LJSpeech is public domain.