LibreAI / Audio / marytts
// audio · marytts/marytts

marytts

MaryTTS — open-source, multilingual text-to-speech platform written in pure Java

★ 2.6k stars⑂ 771 forksNOASSERTIONupdated 2025-01
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

marytts is an open-source audio project by marytts (marytts/marytts on GitHub). It has 2,582 GitHub stars and 771 forks, is released under the NOASSERTION license, and was last updated on GitHub on 17 January 2025.

Repository
marytts/marytts
GitHub stars
2,582
Forks
771
License
NOASSERTION
Last updated on GitHub
17 January 2025
Category
Audio
Listing
Full install guide
Official site
Official site
// how it works

How it works

  1. Clarify your goal

    Decide whether you will run the standalone server (easiest from the releases page) or build from source / embed MaryTTS in a Java project.

  2. Get MaryTTS

    Download a ready-to-use package from the GitHub releases page, or clone the source repo.

  3. Install and configure

    From source, run it with Gradle; optionally start the voice installer GUI to download more voices, then restart the server.

  4. Run your first synthesis

    Open the server at http://localhost:59125, or send it an HTTP synthesis request from Python/shell using the linked txt2wav examples.

// features

Why people love it

Pure Java, cross-platform

The whole client-server system is written in pure Java and runs wherever a JVM runs.

Multilingual platform

Designed as a multilingual TTS platform with downloadable voices; the default artifact referenced in the README is a US English HSMM voice.

HTTP server API

Any programming language can synthesize by compiling, starting the server and querying it over HTTP (examples for Python 3 and shell are linked).

Voice installer GUI

./gradlew runInstallerGui downloads and installs additional voices (restart the server to use them).

Embeddable via Maven/Gradle

Declare a dependency on MaryTTS voice artifacts to use it inside your own Java projects.

Distribution packaging

Gradle tasks (distZip/distTar/installDist) build a standalone server distribution, and user dictionaries can extend pronunciations.

Advertisement
// run it

Run it yourself

  1. Clone the repo

    Clone MaryTTS (or download a ready package from the releases page instead).

    git clone https://github.com/marytts/marytts.git
    cd marytts
  2. Build (optional)

    Compile and test all modules and create outputs under build/.

    ./gradlew build
  3. Run the server

    Start a MaryTTS server and open it in your browser (port and address are configurable with -Dsocket.port/-Dsocket.addr).

    ./gradlew run  # http://localhost:59125
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains MaryTTS?

The marytts open-source project maintains it; it originated from DFKI's MARY platform (older docs at mary.dfki.de and the marytts-wiki).

Is MaryTTS free?

Yes — the README states the code is under the LGPL version 3 license. (GitHub's license field shows NOASSERTION; the README/license file states LGPL-3.)

Does it need a paid API key?

No — synthesis runs locally on your own server; there is no cloud API involved.

How does it compare to pyttsx3 or gTTS?

pyttsx3 wraps your OS's voices in Python and gTTS calls Google Translate's endpoint. MaryTTS is a standalone multilingual server platform you host, with its own downloadable voices and an HTTP API for any language.

How do I get started?

Download the release package or clone and run ./gradlew run, then open http://localhost:59125.

// keep exploring

Similar tools

Audio

MeloTTS

MeloTTS — multilingual text-to-speech for English, Spanish, French, Chinese, Japanese and Korean.

★ 7.7k starsMIT
View guide →
Audio

murmure

Private cross-platform speech-to-text with LLM cleanup built in.

★ 1.1k starsAGPL-3.0
View guide →
Audio

Chatterbox

Chatterbox — Resemble AI's open-source TTS family: expressive text-to-speech and voice cloning, multilingual V3, low-latency Turbo and tiny Nano models, MIT

★ 27.1k starsMIT
View guide →
Audio

hyprwhspr

Native Linux dictation: fast, private, and hackable speech-to-text.

★ 1.2k starsMIT
View guide →
Audio

cboard

Free AAC communication boards with text-to-speech, in the browser.

★ 759 starsGPL-3.0
View guide →
Audio

kokoclone

Voice cloning inside Kokoro: natural multilingual speech, your voice.

★ 203 starsApache-2.0
View guide →
// alternatives

Alternatives in Audio

The most-starred other Audio projects in the LibreAI catalogue — the realistic shortlist if marytts is not the right fit.

Get marytts

Free and open — grab the source, star the repo, and start creating.