Skip to main content

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)

  1. Visit the web interface
  2. Enter your text
  3. 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

hfstudio-0.1.2.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hfstudio-0.1.2-py3-none-any.whl (2.2 MB view details)

Uploaded Python 3

File details

Details for the file hfstudio-0.1.2.tar.gz.

File metadata

  • Download URL: hfstudio-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for hfstudio-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1e5e416fdee9e89413bc2e98d20ed42fdfda5006465376e11356a49886c007ce
MD5 c0c71b35887b012b46fdd5c4e8c87bd5
BLAKE2b-256 11536ea74bed599b2afc6c33f80976247741868d8580d66a0be3a9b8b3c096cf

See more details on using hashes here.

File details

Details for the file hfstudio-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: hfstudio-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for hfstudio-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72b849f862a3dc876717f40a05f5849a946a81203d110831957b56980159bd48
MD5 5f36907a0ebfebe654da66a26c4e4edb
BLAKE2b-256 54e43b3af562590e8472ad0bb0f089bc1df1ea51e498b527aca3b08aa8b1ee12

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page