SuperAPIAI Directory

tortoise-tts

github.com · AI audio

Tortoise TTS is an open-source text-to-speech system trained with a focus on audio quality and multi-voice capabilities, developed by James Betker. It uses an autoregressive decoder and a diffusion decoder, aiming for highly realistic prosody and intonation. The project provides inference code and supports pip installation, local installation (requires an NVIDIA GPU), a Hugging Face online demo, as well as command-line and programming interfaces. Early generation was slow, but after optimization it can achieve a real-time factor of 0.25-0.3 on 4GB of VRAM, with latency below 500 milliseconds in streaming mode. It is suitable for scenarios with high requirements for speech naturalness and multiple voices.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

Tortoise TTS is an open-source text-to-speech (TTS) project whose design priorities are strong multi-voice capabilities and highly realistic prosody and intonation. The repository contains all the code needed to run Tortoise TTS in inference mode.

Key capabilities:

  • Multi-voice speech synthesis: supports reading text with one or more voices.
  • High-quality prosody and intonation: model training emphasizes speech naturalness.
  • Multiple usage methods: including command-line scripts, programming interfaces, a Socket streaming service, and a Hugging Face online demo.

Usage:

  • Online demo: Hugging Face Spaces provides a live demo; you can duplicate the Space and add a GPU to avoid queuing; a CPU-only Space cannot run the demo.
  • pip installation: supports installing the latest development version via pip, or installing directly from the Git repository.
  • Local installation: requires an NVIDIA GPU. On Windows, the Conda installation method is recommended. Steps include installing miniconda, creating and activating a conda environment, installing PyTorch, cloning the repository, and running the setup installation script. M1/M2 chips on macOS 13+ require installing the PyTorch nightly version, and DeepSpeed is disabled on Apple Silicon; the --use_deepspeed flag will be ignored, and you may need to prepend PYTORCH_ENABLE_MPS_FALLBACK=1 to the command.
  • Command-line tools: do.py allows speaking a phrase with a single or multiple voices and supports Socket streaming (listening on port 5000). read.py is used to read large amounts of text, splitting a text file into sentences and converting them to speech one by one, generating a series of audio clips and then merging them into a single file; the --regenerate parameter can be used to regenerate problematic clips.
  • Programming interface: Tortoise can be called from code, supporting DeepSpeed, KV cache, and float16 to accelerate inference.

Applicable scenarios:

  • Applications requiring high-quality, multi-voice speech synthesis.
  • Scenarios with high requirements for speech naturalness and prosody.
  • Research purposes, with the paper published at https://arxiv.org/abs/2305.07243。

Limitations:

  • Local operation requires an NVIDIA GPU (M1/M2 is supported on macOS, but with additional limitations).
  • The model was known in its early days for being slow, taking about 2 minutes to generate a medium-length sentence on a K80; after optimization it can achieve a real-time factor of 0.25-0.3 on 4GB of VRAM, with latency below 500 milliseconds in streaming mode.
  • A CPU-only Hugging Face Space cannot run the demo.
  • DeepSpeed is unavailable on Apple Silicon.

License: Apache 2.0 License.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools