Skip to main content

Easily run and use TTS models with just a few lines of code.

Project description

SimpleTTS

A lightweight Python library for text-to-speech synthesis that makes it easy to use and switch between different TTS models.

[!NOTE] This project is under active development and APIs may change. Not recommended for production use yet.

Features

  • 🚀 Simple, intuitive API
  • 🔄 Easy model switching
  • 🎯 Focus on ease of use
  • 📦 Minimal dependencies
  • 🔌 Extensible architecture

Installation

Install the latest release from PyPI:

pip install simpletts

Or get the latest version from source:

pip install git+https://github.com/fakerybakery/simpletts

Quick Start

from simpletts.models.xtts import XTTS
import soundfile as sf

tts = XTTS(device="auto")
# Note: XTTS is licensed under the CPML license which restricts commercial use.

array, sr = tts.synthesize("Hello, world!", ref="sample.wav")

sf.write("output.wav", array, sr)

Supported Models

Model License Description
XTTS CPML High-quality multilingual TTS with voice cloning capabilities
Kokoro Apache-2.0 Fast and lightweight English TTS with voice cloning

Roadmap

Models

  • XTTS - Production-ready multilingual TTS
  • Kokoro - StyleTTS 2-based English TTS without voice cloning
  • StyleTTS 2 - Fast and efficient zero-shot voice cloning
  • F5-TTS - Superb voice cloning and naturalness, but slower and less stable

Features

  • Simple Python API for easy integration
  • Command-line interface for quick testing and batch processing
  • REST API and web interface for remote access
  • Model benchmarking tools
  • Batch processing support
  • Audio post-processing options

License

This project is licensed under the BSD-3-Clause license. See the LICENSE file for more details.

While SimpleTTS itself is open source and can be used commercially, please note that some supported models have different licensing terms:

  • XTTS is licensed under CPML which restricts commercial use
  • Kokoro is licensed under Apache-2.0 which allows commercial use
  • Other models may have their own licensing requirements

For complete licensing information for all included models and dependencies, please see the licenses directory.

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

simpletts-0.0.1.tar.gz (16.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: simpletts-0.0.1.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.16

File hashes

Hashes for simpletts-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c06c0f5451552b14d99d15dcaa4f037d21ccdf08b5da8f1e0141320f72b3dc17
MD5 f6e2cccfe6ec1c7980f6ae855f307886
BLAKE2b-256 0627fb98ea8c1e8e0d1187042fe3745af5902192d1ef337ed7e3a8bd0a7e3771

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