Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.10.0
metadata
title: Tiny Code-Only TTS
emoji: π€
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.23.0
app_file: app.py
pinned: false
Tiny Code-Only TTS for Hugging Face Spaces
This project builds a simple text-to-speech system from code only.
- No API key
- No external model
- No pretrained checkpoint
- Pure Python waveform synthesis
- Gradio UI for Hugging Face Spaces
What it does
It converts text into robotic speech audio using a lightweight phoneme-style synthesizer. The engine uses handcrafted sound rules for vowels, fricatives, stops, nasals, liquids, and pauses.
This is a starter TTS project for deployment and experimentation. It is intentionally simple and CPU-friendly.
Project structure
.
βββ app.py
βββ requirements.txt
βββ mini_tts/
βββ __init__.py
βββ config.py
βββ normalizer.py
βββ service.py
βββ synth.py
Run locally
pip install -r requirements.txt
python app.py
Deploy on Hugging Face Spaces
- Create a new Space.
- Choose
Gradio. - Upload these files.
- Space will install
requirements.txt. - Open the app and generate speech directly from text.
Notes
- The voice is synthetic and simple by design.
- You can tune pitch, speed, and voice color in the UI.
- You can extend phoneme rules in
mini_tts/synth.py.