A scalable AI-powered platform for generating high-quality, natural-sounding voice from text with selectable languages and avatars.
Clone the repository:
git clone https://github.com/yourusername/texttospeech-playground.git
cd texttospeech-playground
Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Download and prepare TTS models:
python src/download_models.py
uvicorn src.api.main:app --reload
docker-compose up -d
POST /api/tts
Request body:
{
"text": "Hello, this is a test message",
"language": "en",
"avatar": {
"gender": "female",
"dialect": "en-US"
}
}
Response:
{
"file_url": "/audio-output/2023-09-15_12-30-45_female_en-US.mp3",
"duration_seconds": 2.5
}
├── audio-output/ # Generated audio files
├── models/ # Downloaded TTS models
│ └── tts/
├── src/ # Source code
│ ├── api/ # API endpoints
│ ├── core/ # Core TTS functionality
│ ├── ray/ # Ray distributed computing
│ └── monitoring/ # System monitoring
├── tests/ # Test suite
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose configuration
├── requirements.txt # Python dependencies
└── README.md # This file
This project is licensed under the MIT License - see the LICENSE file for details.
3 commits
JavaScript
43.8%
Python
43.6%
Shell
7.2%
PLpgSQL
2.7%
PowerShell
1.8%
A scalable AI-powered platform for generating high-quality, natural-sounding voice from text with selectable languages and avatars.
Clone the repository:
git clone https://github.com/yourusername/texttospeech-playground.git
cd texttospeech-playground
Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Download and prepare TTS models:
python src/download_models.py
uvicorn src.api.main:app --reload
docker-compose up -d
POST /api/tts
Request body:
{
"text": "Hello, this is a test message",
"language": "en",
"avatar": {
"gender": "female",
"dialect": "en-US"
}
}
Response:
{
"file_url": "/audio-output/2023-09-15_12-30-45_female_en-US.mp3",
"duration_seconds": 2.5
}
├── audio-output/ # Generated audio files
├── models/ # Downloaded TTS models
│ └── tts/
├── src/ # Source code
│ ├── api/ # API endpoints
│ ├── core/ # Core TTS functionality
│ ├── ray/ # Ray distributed computing
│ └── monitoring/ # System monitoring
├── tests/ # Test suite
├── Dockerfile # Docker configuration
├── docker-compose.yml # Docker Compose configuration
├── requirements.txt # Python dependencies
└── README.md # This file
This project is licensed under the MIT License - see the LICENSE file for details.
3 commits
JavaScript
43.8%
Python
43.6%
Shell
7.2%
PLpgSQL
2.7%
PowerShell
1.8%