Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
tiny-voca is a small English text-to-speech model with two American English voices, F2 (female) and M2 (male), at 24 kHz. The README lists 4,537,291 parameters in an 18 MB package with the waveform generator included, speed of about 70x real time on four CPU threads, and inference in PyTorch, ONNX Runtime and ONNX Runtime Web, so it can run on a CPU or in the browser. The author says it was trained from scratch and releases the code, weights, training recipe and dataset. Installation is a pip editable install plus a download of the weights from Hugging Face, and a single command turns text or a text file into a WAV with options for voice, speaking rate, pitch shift and pitch range. Long text is read one sentence at a time and the audio is joined, text without final punctuation gets a full stop so the last word does not break off, and the output is kept below a 0.99 peak so a 16-bit WAV does not clip. An export command produces an ONNX file, and a ready ONNX file is also in the weights repository. A browser demo plays each sentence as soon as it is generated, and its source is in the web folder. The training section shows the prepare, annotate, train and evaluate commands, and the released weights took 7.7 hours on one RTX 4090; the README puts the whole project, including the dataset and failed tries, at $9.56 of rented GPU time. Limits stated in the README are English only, two fixed voices, no voice cloning, no streaming yet, foreign names and odd spellings often read wrong, and an F2 voice that sounds younger than intended. The code and weights are Apache-2.0 and the dataset is CC BY 4.0.