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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

hfstudio-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hfstudio-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hfstudio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44dd4453d9ca77f7293af1fa118b61f0441b84168a26ce6f66fb0129eb0c3ca0
MD5 9622b93e6739dac6fb877e63a2662fa7
BLAKE2b-256 1e59968a2ec28f959deac753d3b04c72a9a4031153c7ca7295fc6063d4253fca

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