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.0.1.tar.gz (5.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: hfstudio-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hfstudio-0.0.1.tar.gz
Algorithm Hash digest
SHA256 14be161832aee80f7f4c80864f89ff0f98ac8b68ad6b54aaeb9515a9141357bb
MD5 2f98501900690a012d1c3fe7b4d76339
BLAKE2b-256 b64cb70e98099d019a9b1ca1de39f9fa057af7c6e88b740693137ea50cc532ae

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