tiny-code-only-tts / README.md
abersbail's picture
Deploy tiny code-only TTS Space
0a88ee7 verified
---
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
```text
.
β”œβ”€β”€ app.py
β”œβ”€β”€ requirements.txt
└── mini_tts/
β”œβ”€β”€ __init__.py
β”œβ”€β”€ config.py
β”œβ”€β”€ normalizer.py
β”œβ”€β”€ service.py
└── synth.py
```
## Run locally
```bash
pip install -r requirements.txt
python app.py
```
## Deploy on Hugging Face Spaces
1. Create a new Space.
2. Choose `Gradio`.
3. Upload these files.
4. Space will install `requirements.txt`.
5. 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`.