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.3.tar.gz (3.7 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.3-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hfstudio-0.1.3.tar.gz
  • Upload date:
  • Size: 3.7 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.3.tar.gz
Algorithm Hash digest
SHA256 fcd1a04bf43a7f8a5548e128e8f989d29e06d504f28762d7bf23887e213d6868
MD5 52cb7cbdf7eb6c3e696507a88ffbe1eb
BLAKE2b-256 fba9028519df804d2a88210f2794aa95e80dc5360a392e3e3362ef0c7e2c4f41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hfstudio-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4fcbe71e420a83eefa5f15ed7f719718cab9eaf01549e6e9f9e1fdefad513e4b
MD5 01d64bd5bd852d71a168bb71edc09330
BLAKE2b-256 0c9cf21af8b3572f0e7fafa381c610cdc37a1cf990cb88a3317be7324348a8cc

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