keithito/lj_speech
Updated โข 1.44k โข 62
A small English text-to-speech system trained from scratch on LJSpeech (single female speaker, ~24 h).
| Component | Params | Notes |
|---|---|---|
| Acoustic model | 9.37 M | FastSpeech-style, 4+4 FFT blocks, d=256, character input |
| Vocoder | 1.73 M | HiFi-GAN-style generator, trained on real LJSpeech mels |
The acoustic model is non-autoregressive. A jointly trained convolutional aligner (forward-sum loss plus monotonic alignment search) gives durations without an external aligner, so no phonemizer or MFA is needed. The aligner is dropped from the released weights.
from huggingface_hub import snapshot_download
import sys, soundfile as sf
d = snapshot_download("QuillBytes/Cyclone-tts")
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, 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.
Printing, in the only sense with which we are at present concerned, differs from most arts and crafts.: sample_0.wavThe quick brown fox jumps over the lazy dog.: sample_1.wavThis tiny model has only ten million parameters, and it was trained from scratch.: sample_2.wavHello, how are you today?: sample_3.wav<unk>.speed in config.json, 0.90) compensates for systematically short predicted durations.