README: hardware, speed and memory; fast mode
Browse files25 unmodified lines2627282930313263 unmodified lines96979899100101102103104147 unmodified lines25225325425525625725825 unmodified lines- **Two speaking styles in every voice:** audiobook reading and everyday conversation, with a strength knob.- **Three studio voices** (two female, one male, 26 to 30 hours each) plus 589 more.- **Small:** 42 M acoustic model + 14 M vocoder. The whole model is one file of plain PyTorch (~414 lines).- **Fast:** about 7x faster than real time on an RTX 3080, faster than real time on an Apple M-series GPU.- **Controllable:** pace, comma pauses, the gap between sentences, style strength, seed.- **Cheap to adapt:** the conversational style was added in 30 minutes on one RTX 3080 (12 GB).- **A local web page** to try it: `python app.py`.63 unmodified linestest the gaps went from 0.85 s to about 0.45 s, including the decay of the last word. `sentence_gap=None` restoresthe earlier behaviour (sentence ends stretched by `pause_scale` like commas).Speed: 10 solver steps with classifier-free guidance are 20 decoder passes. On an RTX 3080 60 replies (3 minutes ofspeech) take 26 s; on an Apple M-series GPU 8 s of speech take about 5 s; on a laptop CPU it is about twice slower thanreal time.## One steady voice147 unmodified lines- **A vocoder tuned to this model.** BigVGAN was trained on mels of real recordings; the mels this model draws areslightly different. Fine-tuning the 14 M vocoder on the model's own mels is in progress.- **Emotions**, as more style vectors next to "conversational".- **Fewer sampling steps** (distillation), for real-time speech on a CPU.- **Other languages**, starting with Slovak.## Limitations25 unmodified lines262728293031323363 unmodified lines979899100101102103104105106107108109110111112113114115116117118119120121122147 unmodified lines27027127227327427527627727827925 unmodified lines- **Two speaking styles in every voice:** audiobook reading and everyday conversation, with a strength knob.- **Three studio voices** (two female, one male, 26 to 30 hours each) plus 589 more.- **Small:** 42 M acoustic model + 14 M vocoder. The whole model is one file of plain PyTorch (~414 lines).- **Fast and light:** 10x faster than real time on an RTX 3080 (26x in fast mode) with 0.4 GB of VRAM; 2x on anApple M1 Pro GPU. Runs on a CPU too, slower than real time for now.- **Controllable:** pace, comma pauses, the gap between sentences, style strength, seed.- **Cheap to adapt:** the conversational style was added in 30 minutes on one RTX 3080 (12 GB).- **A local web page** to try it: `python app.py`.63 unmodified linestest the gaps went from 0.85 s to about 0.45 s, including the decay of the last word. `sentence_gap=None` restoresthe earlier behaviour (sentence ends stretched by `pause_scale` like commas).**Fast mode.** `tts(text, n_timesteps=4, guidance=0)` makes 4 decoder passes instead of 20 (10 steps withclassifier-free guidance). Over 60 replies PESQ went from 3.82 to 3.71 and word errors from 0.6 to 1.0 %; with 10 stepsand no guidance (10 passes) quality is unchanged (PESQ 3.84).## Hardware and speedMeasured on 5 sentences (21 s of speech), default settings, voice 92; "x real time" is seconds of speech per second ofcomputing (above 1 is faster than real time).| Hardware | Default (20 passes) | Fast mode (4 passes) | Memory ||---|---|---|---|| NVIDIA RTX 3080 (12 GB) | **10.4x** real time | **26.5x** | 0.36 GB VRAM (0.53 GB reserved), 1.7 GB RAM || Apple M1 Pro GPU (MPS) | 2.0x | 2.5x | 1.3 GB GPU memory, 0.7 GB RAM || Apple M1 Pro CPU, 8 threads | 0.7x | 0.9x | 1.3 GB RAM || Intel Core i3-7100 CPU (2 cores, 2017) | 0.3x | 0.6x | 1.3 GB RAM |**Minimum:** any machine that runs PyTorch, with 2 GB of free RAM; on a GPU 1 GB of VRAM is enough. Disk: 230 MB ofweights (168 MB model + 56 MB vocoder) plus PyTorch itself. On a CPU the vocoder is the slow part: BigVGAN takes 58 to86 % of the time there (23 of 30 s on the M1 Pro), the acoustic model alone runs at 15x real time in fast mode. A muchfaster vocoder for CPUs is the next item under "What is next".## One steady voice147 unmodified lines- **A vocoder tuned to this model.** BigVGAN was trained on mels of real recordings; the mels this model draws areslightly different. Fine-tuning the 14 M vocoder on the model's own mels is in progress.- **Emotions**, as more style vectors next to "conversational".- **A fast vocoder** (Vocos-style, iSTFT) for real-time speech on a CPU, where BigVGAN is the bottleneck.- **Fewer sampling steps** (reflow distillation): 2 passes at the quality of today's 20.- **Better text handling**: numbers, times, dates, units and abbreviations are already written out before G2P in therepository code (about 53 of 60 number-heavy sentences right instead of 27); it ships with the next model update.- **Other languages**, starting with Slovak.## Limitations
README.md+26-5