Local and API-based Text-to-Speech Studio
Project description
HFStudio
A modern Text-to-Speech studio that supports both local and API-based model execution. Built with Svelte and FastAPI.
Features
- 🎙️ Text-to-Speech Generation - Convert text to natural-sounding speech
- 🔄 Dual Mode Operation - Switch between API and local model execution
- 🎛️ Voice Controls - Adjust speed, stability, and similarity parameters
- 📦 Multiple TTS Models - Support for HuggingFace, Coqui TTS, and more
- 🎵 Audio Playback - Built-in audio player with download capability
- 🚀 Fast & Responsive - Modern web interface with real-time feedback
Quick Start
API Mode (No Installation Required)
- Visit the web interface
- Enter your text
- Select a voice and click "Generate"
Local Mode
Install the Python package:
pip install hfstudio
Start the server:
hfstudio
The application will be available at http://localhost:8000
Development Setup
Prerequisites
- Node.js 18+ and npm
- Python 3.8+
- Git
Frontend Development
cd frontend
npm install
npm run dev
Backend Development
cd backend
pip install -e .
hfstudio --dev
Architecture
- Frontend: SvelteKit + TailwindCSS
- Backend: FastAPI + Transformers/Coqui TTS
- Communication: REST API with async support
Configuration
Create a .env file in the frontend directory:
PUBLIC_API_URL=http://localhost:8000
PUBLIC_DEFAULT_MODE=api
Create a config.yaml in the backend directory for advanced settings.
API Documentation
Once the server is running, visit:
- API Docs:
http://localhost:8000/docs - ReDoc:
http://localhost:8000/redoc
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
MIT License - see LICENSE for details.
Roadmap
- Basic TTS functionality
- Mode switching (API/Local)
- Voice cloning support
- Batch processing
- Real-time streaming
- Desktop application (Electron)
Support
For issues and feature requests, please use the GitHub Issues page.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hfstudio-0.1.1.tar.gz.
File metadata
- Download URL: hfstudio-0.1.1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00985f51ad7d21b60cb03795d1fa25434adc88779b0a46f09e116a8221725d9b
|
|
| MD5 |
8ee1c49ff2ca02e8a82f49857f0c9ea2
|
|
| BLAKE2b-256 |
775e53b2aa18549c1efb4c30c18c01a2d93c832c1b28ff9d85ed1cc6caea3fcd
|
File details
Details for the file hfstudio-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hfstudio-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45e1b37523a864e55bd2ff697866ebfc23f49c4e0417a257c9375f4dbd81af32
|
|
| MD5 |
4f8dcbed2e57b1fc2f246b93a547f61f
|
|
| BLAKE2b-256 |
917d8c55a1a9172ed72dc0f0f915ca313083b0f97ebbc2fe5f97c7e1c94920cb
|