# Python text to speech libraries

Python text to speech libraries turn a string of text into spoken audio. These libraries give voice assistants, accessibility features, and AI agents a spoken reply.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [edge-tts](#edge-tts) | 7.8M | 12.5K | Oct 2026 | LGPL-2.1 |
| [piper1-gpl](#piper1-gpl) | 1.3M | 6.2K | Sep 2026 | GPL-3.0 |
| [gTTS](#gtts) | 1.2M | 2.6K | Nov 2024 | MIT |
| [pyttsx3](#pyttsx3) | 493.4K | 2.5K | Jul 2025 | MPL-2.0 |
| [kokoro](#kokoro) | 299.6K | 10.0K | Apr 2025 | Apache-2.0* |
| [TTS](#tts) | 50.6K | 46.2K | Dec 2023 | MPL-2.0 |
| [RealtimeTTS](#realtimetts) | 28.0K | 4.1K | May 2026 | MIT |
| [parler-tts](#parler-tts) | 2.9K | 5.6K | Jan 2025 | Apache-2.0* |

Downloads: PyPI, last thirty days. Stars and releases: GitHub. Amber: no release in over a year. *Code only; model weights have their own license.

[edge-tts](#edge-tts) has the most installs, while [TTS](#tts) has the most GitHub stars.

## Capabilities

| Library | Runs fully offline | Clones a voice | Streams audio output | Runs on CPU | Output formats |
| --- | --- | --- | --- | --- | --- |
| [edge-tts](#edge-tts) | Unsupported | Unsupported | Built-in |  | MP3 |
| [piper1-gpl](#piper1-gpl) | Built-in | Unsupported | Built-in | Built-in | WAV |
| [gTTS](#gtts) | Unsupported | Unsupported | Built-in | Unsupported | MP3 |
| [pyttsx3](#pyttsx3) | Built-in | Unsupported |  |  | MP3 |
| [kokoro](#kokoro) | Built-in | Unsupported | Built-in | Built-in | WAV |
| [TTS](#tts) | Built-in | Built-in | Built-in | Built-in | WAV |
| [RealtimeTTS](#realtimetts) | Built-in | Via plugin | Via plugin | Built-in | WAV |
| [parler-tts](#parler-tts) | Built-in | Unsupported | Built-in | Built-in | WAV |

## Libraries

### edge-tts

[GitHub](https://github.com/rany2/edge-tts) · [PyPI](https://pypi.org/project/edge-tts/)

edge-tts sends text to the online text-to-speech service built into Microsoft Edge and saves the speech as an audio file, with an optional SRT subtitle file. `Communicate` takes the text and a voice name. From a terminal, the `edge-tts` command takes the same inputs. Its `--list-voices` option prints every voice the service offers. The `edge-playback` command speaks immediately, using the mpv player outside Windows.

- Downloads / mo: 7.8M
- Stars: 12.5K
- Last release: 7.3.1, Oct 2026
- License: LGPL-2.1
- Capabilities: [From the edge-tts docs](https://raw.githubusercontent.com/rany2/edge-tts/master/src/edge_tts/communicate.py)

**Strengths**

- **No API key.** Generates speech with no account or key.
- **400+ voices.** Neural voices in more than 100 languages and accents.
- **Subtitles included.** Saves an SRT subtitle file alongside the MP3.

**Watch out for**

- **Online only.** Calls Microsoft's service, so it stops when that service is down.
- **No custom SSML.** The service rejects custom speech markup.

```sh
pip install edge-tts
```

**souzatharsis/podcastfy** (6.8K stars)

[souzatharsis/podcastfy](https://github.com/souzatharsis/podcastfy) turns podcast text into audio bytes with edge-tts Communicate, saving through a temporary file.

```python
def generate_audio(self, text: str, voice: str, model: str, voice2: str = None) -> bytes:
    """Generate audio using Edge TTS."""
    import nest_asyncio
    import asyncio

    # Apply nest_asyncio to allow nested event loops
    nest_asyncio.apply()

    async def _generate():
        communicate = edge_tts.Communicate(text, voice)
        # Create a temporary file with proper context management
        with tempfile.NamedTemporaryFile(suffix='.mp3', delete=False) as tmp_file:
            temp_path = tmp_file.name

        try:
            # Save audio to temporary file
            await communicate.save(temp_path)
            # Read the audio data
            with open(temp_path, 'rb') as f:
                return f.read()
        finally:
            # Clean up temporary file
            if os.path.exists(temp_path):
                os.remove(temp_path)

    # Use nest_asyncio to handle nested event loops
    loop = asyncio.get_event_loop()
    return loop.run_until_complete(_generate())
```

[edge.py · generate_audio()](https://github.com/souzatharsis/podcastfy/blob/4cee7a3ee87686d94fdcb2b7d4a9a4f3973a47c7/podcastfy/tts/providers/edge.py#L20-L47) · pushed May 2026 · [More projects using edge-tts →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20edge-tts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import edge_tts

TEXT = "Hello World!"
VOICE = "en-GB-SoniaNeural"
OUTPUT_FILE = "test.mp3"

communicate = edge_tts.Communicate(TEXT, VOICE)
communicate.save_sync(OUTPUT_FILE)
```

From [the docs](https://github.com/rany2/edge-tts/blob/bd44c1d1aaebdc1db7f47456ee12431b42ec7cac/examples/sync_audio_gen_with_predefined_voice.py)

### piper1-gpl

[GitHub](https://github.com/OHF-Voice/piper1-gpl) · [PyPI](https://pypi.org/project/piper-tts/)

Piper is a local neural text-to-speech engine that uses espeak-ng to turn text into phonemes, the individual sounds of speech, before its voice model generates audio. The Python package installs as `piper-tts`, voices download with `piper.download_voices`, and `PiperVoice.synthesize_wav` saves the audio as a WAV file. Voices are ONNX models, a portable model format, and `use_cuda=True` runs them on a GPU through `onnxruntime-gpu`.

- Downloads / mo: 1.3M
- Stars: 6.2K
- Last release: 1.8.0, Sep 2026
- License: GPL-3.0
- Runs on: ONNX Runtime
- Capabilities: [From the piper1-gpl docs](https://github.com/OHF-Voice/piper1-gpl/)

**Strengths**

- **Runs locally on a CPU.** A local neural engine that synthesizes speech with no GPU or network connection.
- **Runs on a Raspberry Pi.** Works offline on small devices such as a Raspberry Pi 4.
- **Many languages.** Voices for 44 languages and regions, including Welsh and Swahili.

**Watch out for**

- **Less natural than big models.** Larger neural models sound more human.
- **No voice cloning.** New voices must be downloaded or trained.
- **Looking for maintainers.** The Open Home Foundation, which runs the project, is seeking new maintainers.

```sh
pip install piper-tts
```

**Halleck45/OpenPronounce** (202 stars)

[Halleck45/OpenPronounce](https://github.com/Halleck45/OpenPronounce) synthesizes a reference pronunciation offline with a cached PiperVoice and returns the waveform and sample rate.

```python
def synthesize_piper(text, lang, voice):
    """Synthesize with Piper (offline). Returns ``(waveform, sample_rate)``."""
    piper = _import("piper", "piper")

    if voice not in _piper_voices:
        model, config = _piper_voice_files(voice)
        _piper_voices[voice] = piper.PiperVoice.load(model, config)
    engine = _piper_voices[voice]

    chunks = list(engine.synthesize(text))
    if not chunks:
        raise RuntimeError(f"Piper produced no audio for {text!r}")
    waveform = np.concatenate([c.audio_float_array for c in chunks]).astype(np.float32)
    return waveform, chunks[0].sample_rate
```

[tts.py · synthesize_piper()](https://github.com/Halleck45/OpenPronounce/blob/c3db475181d779a145e3d31f3ce6d0e988f1eeb9/openpronounce/tts.py#L130-L143) · pushed Nov 2026 · [More projects using piper1-gpl →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20piper-tts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import wave
from piper import PiperVoice

voice = PiperVoice.load("/path/to/en_US-lessac-medium.onnx")
with wave.open("test.wav", "wb") as wav_file:
    voice.synthesize_wav(
        "Welcome to the world of speech synthesis!",
        wav_file,
    )
```

From [the docs](https://github.com/OHF-Voice/piper1-gpl/blob/85d9ab3203ce417bd37da7c06a088f905a958f0b/docs/API_PYTHON.md)

### gTTS

[GitHub](https://github.com/pndurette/gTTS) · [PyPI](https://pypi.org/project/gtts/) · [Docs](http://gtts.readthedocs.org/)

gTTS sends text to the speech feature of Google Translate and writes the spoken audio to a file, a file-like object, or standard output. `gTTS` builds the request and `save` writes the audio. On the command line, `gtts-cli` takes text and an output file. A sentence tokenizer splits long text so any length can be read while keeping natural intonation. The project uses an undocumented Google feature and is separate from Google Cloud Text-to-Speech.

- Downloads / mo: 1.2M
- Stars: 2.6K
- Last release: 2.5.4, Nov 2024
- License: MIT
- Capabilities: [From the gTTS docs](https://gtts.readthedocs.io/en/latest/changelog.html)

**Strengths**

- **About 60 languages.** Regional accents come from the tld setting.
- **MP3 to a file or memory.** Saves speech to a file or an in-memory buffer.
- **Any length of text.** Splits long text into sentences and keeps natural intonation.

**Watch out for**

- **Unofficial.** Google doesn't support it, so changes on Google's side can break it.
- **One voice per language.** No pitch, voice choice, or SSML.
- **Rate-limited.** Heavy use gets HTTP 429 errors from Google.

```sh
pip install gtts
```

**Halleck45/OpenPronounce** (202 stars)

[Halleck45/OpenPronounce](https://github.com/Halleck45/OpenPronounce) synthesizes a reference pronunciation with gTTS, saving an audio file with the chosen accent and loading it back as a waveform.

```python
def synthesize_gtts(text, lang, voice):
    """Synthesize with Google Translate TTS (network). Returns ``(waveform, sample_rate)``."""
    import librosa
    from gtts import gTTS

    fd, mp3_path = tempfile.mkstemp(suffix=".mp3", prefix="openpronounce-tts-")
    os.close(fd)
    try:
        gTTS(text=text, lang=lang, tld=voice, slow=False).save(mp3_path)
        waveform, sr = librosa.load(mp3_path, sr=None, mono=True)
    finally:
        try:
            os.remove(mp3_path)
        except OSError:
            pass
    return waveform, sr
```

[tts.py · synthesize_gtts()](https://github.com/Halleck45/OpenPronounce/blob/c3db475181d779a145e3d31f3ce6d0e988f1eeb9/openpronounce/tts.py#L83-L98) · pushed Nov 2026 · [More projects using gTTS →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20gtts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**killixn/selfbot.py** (190 stars)

[killixn/selfbot.py](https://github.com/killixn/selfbot.py) sends a chat message as speech by writing gTTS audio to an in-memory buffer.

```python
@bot.command()
async def tts(ctx, *, content: str=None):
    await ctx.message.delete()

    if not content:
        await ctx.send("> **[ERROR]**: Invalid command.\n> __Command__: `tts <message>`", delete_after=5)
        return

    content = content.strip()

    tts = gTTS(text=content, lang="en")

    f = io.BytesIO()
    tts.write_to_fp(f)
    f.seek(0)

    await ctx.send(file=discord.File(f, f"{content[:10]}.wav"))
```

[main.py · tts()](https://github.com/killixn/selfbot.py/blob/ec47cda295659eb0be6060bf87e81fb2fb023a37/main.py#L247-L263) · pushed Oct 2026 · [More projects using gTTS →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20gtts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from gtts import gTTS
tts = gTTS('hello', lang='en')
tts.save('hello.mp3')
```

From [the docs](https://github.com/pndurette/gTTS/blob/8aa85204802f5c5d5b53e124de10921ce467f55a/docs/module.rst)

### pyttsx3

[GitHub](https://github.com/nateshmbhat/pyttsx3) · [PyPI](https://pypi.org/project/pyttsx3/)

pyttsx3 speaks text offline through speech engines installed on the computer: Microsoft's Speech API on Windows, NSSpeechSynthesizer or AVSpeech on macOS, and eSpeak on all three systems. `init` creates an engine, `say` queues text, and `runAndWait` speaks it; `save_to_file` writes the speech to a file instead. Engine properties set the speaking rate, volume, and voice. Unlike [gTTS](#gtts), the library needs no network connection.

- Downloads / mo: 493.4K
- Stars: 2.5K
- Last release: 2.99, Jul 2025
- License: MPL-2.0
- Capabilities: [From the pyttsx3 docs](https://pyttsx3.readthedocs.io/en/latest/engine.html)

**Strengths**

- **Works offline.** Uses voices already installed on the computer.
- **Saves to a file.** save_to_file() writes speech to an audio file.
- **Adjustable speed and volume.** Set rate and volume as engine properties.

**Watch out for**

- **Sounds like the system voice.** Quality depends on the voices Windows, macOS, or Linux provide.
- **Fails on servers without audio.** init() raises a RuntimeError on Linux with no audio driver.
- **One request at a time.** Calls from several threads wait in line.
- **eSpeak on Linux.** Linux needs the espeak-ng system package for speech output and for saving files.

```sh
pip install pyttsx3
```

**maudoin/ollama-voice** (379 stars)

[maudoin/ollama-voice](https://github.com/maudoin/ollama-voice) speaks an assistant's reply by writing it to a WAV file with save_to_file, then playing the file.

```python
def text_to_speech(self, text):
    print(text)
    tempPath = 'temp.wav'
    #self.tts.say(text)
    self.tts.save_to_file(text , tempPath)
    self.tts.runAndWait()
    wf = wave.open(tempPath, 'rb')
    # ...

    wf.close()
    self.display_message(text)
```

[assistant.py · text_to_speech()](https://github.com/maudoin/ollama-voice/blob/2b2e78081ac48decc97524d4bfe278a0617398ca/assistant.py#L246-L269) · pushed Oct 2025 · [More projects using pyttsx3 →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20pyttsx3%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import pyttsx3

engine = pyttsx3.init()

# For Mac, If you face error related to "pyobjc" when running the `init()` method :
# Install 9.0.1 version of pyobjc : "pip install pyobjc>=9.0.1"

engine.say("I will speak this text")
engine.runAndWait()
```

From [the README](https://github.com/nateshmbhat/pyttsx3/blob/master/README.md)

### kokoro

[GitHub](https://github.com/hexgrad/kokoro) · [PyPI](https://pypi.org/project/kokoro/)

kokoro is the inference library for Kokoro, an open-weight text-to-speech model with eighty-two million parameters and Apache-licensed weights. `KPipeline` takes a language code, such as `'a'` for American English, and calling the pipeline on text with a voice name yields audio chunks to play or save. The library converts text to phonemes, the sounds that make up speech, with misaki and falls back to espeak-ng for unknown English words and some other languages. Japanese and Mandarin need the `misaki[ja]` and `misaki[zh]` extras.

- Downloads / mo: 299.6K
- Stars: 10.0K
- Last release: 0.9.4, Apr 2025
- License: Apache-2.0
- Runs on: PyTorch
- Capabilities: [From the kokoro docs](https://pypi.org/project/kokoro/)

**Strengths**

- **Natural for its size.** An 82M model that sounds close to much larger ones.
- **Runs on a CPU.** No GPU needed.
- **Lighter ONNX version.** kokoro-onnx runs the same model with fewer dependencies.

**Watch out for**

- **Preset voices only.** No voice cloning.
- **Rushes long lines.** Lines past 400 tokens tend to speed up.
- **Needs espeak-ng.** Install the espeak-ng system package for some languages.

```sh
pip install kokoro
```

**Halleck45/OpenPronounce** (202 stars)

[Halleck45/OpenPronounce](https://github.com/Halleck45/OpenPronounce) synthesizes speech offline with a KPipeline per language, sharing one Kokoro model across pipelines.

```python
def synthesize_kokoro(text, lang, voice):
    """Synthesize with Kokoro-82M (offline). Returns ``(waveform, sample_rate)``."""
    kokoro = _import("kokoro", "kokoro")

    lang_code, _ = _kokoro_language(lang)
    if lang_code not in _kokoro_pipelines:
        # Share the 82M model between per-language pipelines.
        model = next((p.model for p in _kokoro_pipelines.values()), True)
        _kokoro_pipelines[lang_code] = kokoro.KPipeline(lang_code=lang_code, repo_id=KOKORO_REPO, model=model)
    pipeline = _kokoro_pipelines[lang_code]

    parts = [r.audio.detach().cpu().numpy() for r in pipeline(text, voice=voice) if r.audio is not None]
    if not parts:
        raise RuntimeError(f"Kokoro produced no audio for {text!r}")
    return np.concatenate(parts).astype(np.float32), KOKORO_SAMPLE_RATE
```

[tts.py · synthesize_kokoro()](https://github.com/Halleck45/OpenPronounce/blob/c3db475181d779a145e3d31f3ce6d0e988f1eeb9/openpronounce/tts.py#L161-L175) · pushed Nov 2026 · [More projects using kokoro →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20kokoro%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**aedocw/epub2tts** (962 stars)

[aedocw/epub2tts](https://github.com/aedocw/epub2tts) turns a chunk of an ebook into a WAV file by joining the audio segments a KPipeline returns.

```python
def proccess_text(self, text, wave_file_name):
    audio_segments = []
    for gs, ps, audio in self.pipeline(text, voice=self.speaker, speed=self.speed, split_pattern=r'\n\n\n'):
        audio_segments.append(audio)
    final_audio = np.concatenate(audio_segments)
    sf.write(wave_file_name, final_audio, 24000)

    if os.path.exists(wave_file_name):
        return True
    return False
```

[epub2tts.py · proccess_text()](https://github.com/aedocw/epub2tts/blob/2b5641b9d4f36c0d69166b4da0117b4b22a840e5/epub2tts.py#L151-L160) · pushed Feb 2026 · [More projects using kokoro →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20kokoro%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from kokoro import KPipeline
import soundfile as sf
pipeline = KPipeline(lang_code='a')
text = '''
[Kokoro](/kˈOkəɹO/) is an open-weight TTS model with 82 million parameters. Despite its lightweight architecture, it delivers comparable quality to larger models while being significantly faster and more cost-efficient. With Apache-licensed weights, [Kokoro](/kˈOkəɹO/) can be deployed anywhere from production environments to personal projects.
'''
generator = pipeline(text, voice='af_heart')
for i, (gs, ps, audio) in enumerate(generator):
    print(i, gs, ps)
    sf.write(f'{i}.wav', audio, 24000)
```

From [the README](https://github.com/hexgrad/kokoro/blob/dfb907a02bba8152ca444717ca5d78747ccb4bec/README.md)

### TTS

[GitHub](https://github.com/coqui-ai/TTS) · [PyPI](https://pypi.org/project/tts/) · [Docs](http://coqui.ai)

Coqui TTS is a deep learning toolkit for generating speech, with pretrained models in more than a thousand languages and tools to train or fine-tune new ones. `TTS` from `TTS.api` loads a model by name, and `tts_to_file` writes speech to a WAV file. Passing `speaker_wav` with a recording clones that speaker's voice. The production model is XTTS, which supports sixteen languages and streams its output.

- Downloads / mo: 50.6K
- Stars: 46.2K
- Last release: 0.22.0, Dec 2023
- License: MPL-2.0
- Runs on: PyTorch
- Capabilities: [From the TTS docs](https://github.com/coqui-ai/TTS/blob/dev/README.md)

**Strengths**

- **Clones voices.** Copies a speaker's voice from a short audio clip.
- **Many languages.** XTTS v2 speaks 17 languages naturally, and MMS models reach about 1,100.
- **Train custom voices.** Includes tools to train and fine-tune models.

**Watch out for**

- **GPU for real-time speed.** The neural models run on a CPU, more slowly than on a GPU.
- **XTTS isn't for commercial use.** The XTTS model license forbids commercial use.

```sh
pip install tts
```

**aedocw/epub2tts** (962 stars)

[aedocw/epub2tts](https://github.com/aedocw/epub2tts) writes a chunk of an ebook to a WAV file with tts_to_file, passing a speaker for multi-speaker models.

```python
def proccess_text(self, text, wave_file_name):
    if self.model_name == "tts_models/en/vctk/vits":
        self.minratio = 0
        # assume we're using a multi-speaker model
        if self.debug:
            print(text)
            with open("debugout.txt", "a") as file: file.write(f"{text}\n")
        self.tts.tts_to_file(
            text=text,
            speaker=self.config['speaker'],
            file_path=wave_file_name,
        )
    else:
        if self.debug:
            print(text)
            with open("debugout.txt", "a") as file: file.write(f"{text}\n")
        self.tts.tts_to_file(
            text=text, file_path=wave_file_name
        )
```

[epub2tts.py · proccess_text()](https://github.com/aedocw/epub2tts/blob/2b5641b9d4f36c0d69166b4da0117b4b22a840e5/epub2tts.py#L319-L337) · pushed Feb 2026 · [More projects using TTS →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20tts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Scthe/ai-iris-avatar** (204 stars)

[Scthe/ai-iris-avatar](https://github.com/Scthe/ai-iris-avatar) writes speech to a WAV file with Coqui TTS, cloning a reference voice through tts_with_vc_to_file when configured.

```python
def exec_tts_to_file(
    cfg: AppConfig, tts: TTS, text: str, out_file_path: str, verbose=False
):
    is_cloning, tts_kwargs = get_tts_options(cfg, tts)

    if is_cloning:
        if verbose:
            speaker = tts_kwargs.get("speaker_wav", "")
            print(colored("Cloning voice based on:", "blue"), f"'{speaker}'")
        wav = tts.tts_with_vc_to_file(text=text, file_path=out_file_path, **tts_kwargs)
    else:
        if verbose:
            print(colored("Voice cloning:", "blue"), "OFF")
        wav = tts.tts_to_file(text=text, file_path=out_file_path, **tts_kwargs)

    return wav
```

[tts_utils.py · exec_tts_to_file()](https://github.com/Scthe/ai-iris-avatar/blob/6a86fa1999b51adf8276d7630cae6ae92d9b8908/server/tts_utils.py#L69-L84) · pushed Dec 2024 · [More projects using TTS →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20tts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from TTS.api import TTS
api = TTS(model_name="tts_models/eng/fairseq/vits").to("cuda")
api.tts_to_file("This is a test.", file_path="output.wav")

# TTS with on the fly voice conversion
api = TTS("tts_models/deu/fairseq/vits")
api.tts_with_vc_to_file(
    "Wie sage ich auf Italienisch, dass ich dich liebe?",
    speaker_wav="target/speaker.wav",
    file_path="ouptut.wav"
)
```

From [the docs](https://github.com/coqui-ai/TTS/blob/8c20a599d8d4eac32db2f7b8cd9f9b3d1190b73a/docs/source/inference.md)

### RealtimeTTS

[GitHub](https://github.com/KoljaB/RealtimeTTS) · [PyPI](https://pypi.org/project/realtimetts/)

RealtimeTTS turns strings, generators, and streaming LLM output into speech with low latency. `TextToAudioStream` wraps an engine, such as `SystemEngine` for the voices built into the operating system, and `feed` accepts text, including an iterator whose text is still arriving while audio plays. The same interface drives cloud APIs, local neural models, and voice-cloning engines, and switches to another engine when one fails. Output plays locally, streams to another process, or saves as WAV.

- Downloads / mo: 28.0K
- Stars: 4.1K
- Last release: 0.7.3, May 2026
- License: MIT
- Capabilities: [From the RealtimeTTS docs](https://github.com/KoljaB/RealtimeTTS/blob/master/docs/engine-selection.md)

**Strengths**

- **Speaks while text streams in.** Plays audio while an LLM is still writing.
- **One API for many engines.** System voices, cloud APIs, and local models work the same way.
- **Automatic fallback.** Switches to another engine if one fails.

**Watch out for**

- **Install each engine separately.** Every engine is its own extra package.
- **Needs PortAudio on Linux and macOS.** Install PortAudio before the audio engines.
- **Recommended engine needs NVIDIA.** The recommended engine runs on NVIDIA GPUs.

```sh
pip install realtimetts
```

**openinterpreter/01** (5.2K stars)

[openinterpreter/01](https://github.com/openinterpreter/01) speaks an assistant's reply while it streams, feeding each chunk to RealtimeTTS and starting playback at the first delimiter.

```python
async def new_output(self):
    while True:
        output = await old_output()
        # if output == {"role": "assistant", "type": "message", "start": True}:
        #     return {"role": "assistant", "type": "audio", "format": "bytes.wav", "start": True}

        if isinstance(output, bytes):
            return output

        await asyncio.sleep(0)

        delimiters = ".?!;,\n…)]}"

        if output["type"] == "message" and len(output.get("content", "")) > 0:

            self.tts.feed(output.get("content"))

            if not self.tts.is_playing() and any([c in delimiters for c in output.get("content")]): # Start playing once the first delimiter is encountered.
                self.tts.play_async(on_audio_chunk=self.on_tts_chunk, muted=not self.play_audio, sentence_fragment_delimiters=delimiters, minimum_sentence_length=9)
                return {"role": "assistant", "type": "audio", "format": "bytes.wav", "start": True}

        if output == {"role": "assistant", "type": "message", "end": True}:
            if not self.tts.is_playing(): # We put this here in case it never outputs a delimiter and never triggers play_async^
                self.tts.play_async(on_audio_chunk=self.on_tts_chunk, muted=not self.play_audio, sentence_fragment_delimiters=delimiters, minimum_sentence_length=9)
                return {"role": "assistant", "type": "audio", "format": "bytes.wav", "start": True}
            return {"role": "assistant", "type": "audio", "format": "bytes.wav", "end": True}
```

[server.py · new_output()](https://github.com/openinterpreter/01/blob/81242d8568d07c5cc5e92565531eb808405dbadc/software/source/server/server.py#L112-L137) · pushed Nov 2024 · [More projects using RealtimeTTS →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20realtimetts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**kimjammer/Neuro** (2.1K stars)

[kimjammer/Neuro](https://github.com/kimjammer/Neuro) speaks a chat message by feeding it to a RealtimeTTS stream and playing it in the background.

```python
def play(self, message):
    if not self.enabled:
        return

    # If the message is only whitespace, don't attempt to play it
    if not message.strip():
        return

    self.signals.sio_queue.put(("current_message", message))
    self.stream.feed(message)
    self.stream.play_async()
```

[tts.py · play()](https://github.com/kimjammer/Neuro/blob/84cd3f14e103add11903772e595dd776daf54432/tts.py#L26-L36) · pushed Jan 2025 · [More projects using RealtimeTTS →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20realtimetts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
from RealtimeTTS import TextToAudioStream, SystemEngine


if __name__ == "__main__":
    stream = TextToAudioStream(SystemEngine())
    stream.feed("Hello from RealtimeTTS.")
    stream.play()
```

From [the README](https://github.com/KoljaB/RealtimeTTS/blob/5fbaa53c8afecf39d7468517c7c3846028cb192f/README.md)

### parler-tts

[GitHub](https://github.com/huggingface/parler-tts) · [PyPI](https://pypi.org/project/parler-tts/)

Parler-TTS generates speech in a voice described in plain text, such as the speaker's gender, pitch, pace, and recording quality. The model loads through Hugging Face Transformers and takes two inputs: the description and the text to speak. Thirty-four named speakers keep the same voice across runs when the description mentions that speaker's name. Datasets, training code, and weights are all public under permissive licenses.

- Downloads / mo: 2.9K
- Stars: 5.6K
- Last release: 0.2.3, Jan 2025
- License: Apache-2.0
- Runs on: PyTorch
- Capabilities: [From the parler-tts docs](https://pypi.org/project/parler-tts/)

**Strengths**

- **Describe the voice in words.** Text like "a calm female voice, slow pace" sets the voice.
- **Consistent named speakers.** 34 named speakers keep the same voice across runs.
- **Few lines of code.** Runs through Hugging Face Transformers.

**Watch out for**

- **GPU recommended.** The README example runs on a CUDA GPU when one is present and falls back to the CPU.
- **Sounds like an audiobook.** Trained on read speech, so casual or emotional styles are weak.

```sh
pip install parler-tts
```

**lancedb/vectordb-recipes** (987 stars)

[lancedb/vectordb-recipes](https://github.com/lancedb/vectordb-recipes) turns a chatbot reply into a WAV file with Parler-TTS, describing the voice in a text prompt.

```python
def text_to_speech(text, filename="output_audio.wav"):
    device = "cuda:0" if torch.cuda.is_available() else "cpu"
    model = ParlerTTSForConditionalGeneration.from_pretrained(
        "parler-tts/parler_tts_mini_v0.1"
    ).to(device)
    tokenizer = AutoTokenizer.from_pretrained("parler-tts/parler_tts_mini_v0.1")

    # ...
    description = "Utilize a male voice with a low pitch and an Indian English accent for the chatbot. The speech should be fast yet clear, ensuring each word is distinctly articulated in a crisp and confined audio environment."
    input_ids = tokenizer(description, return_tensors="pt").input_ids.to(device)
    prompt_input_ids = tokenizer(text, return_tensors="pt").input_ids.to(device)

    generation = model.generate(input_ids=input_ids, prompt_input_ids=prompt_input_ids)
    audio_arr = generation.cpu().numpy().squeeze()
    sf.write(filename, audio_arr, model.config.sampling_rate)

    return filename
```

[tts_module.py · text_to_speech()](https://github.com/lancedb/vectordb-recipes/blob/77958528f5a5b4d6d276facaa57e9db039e28ccd/applications/Chatbot_with_Parler_TTS/tts_module.py#L7-L23) · pushed Nov 2026 · [More projects using parler-tts →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20parler-tts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**av/harbor** (3.3K stars)

[av/harbor](https://github.com/av/harbor) serves an OpenAI-style speech endpoint that generates audio with Parler-TTS from text and a voice description.

```python
async def generate_audio(
    input: Annotated[str, Body()],
    voice: Annotated[str, Body()] = config.voice,
    model: Annotated[str, Body()] = config.model,
    response_format: Annotated[ResponseFormat, Body()] = config.response_format,
    speed: Annotated[float, Body()] = SPEED,
) -> FileResponse:
    tts, tokenizer = model_manager.get_or_load_model(model)
    # ...
    input_ids = tokenizer(voice, return_tensors="pt").input_ids.to(device)
    prompt_input_ids = tokenizer(input, return_tensors="pt").input_ids.to(device)
    generation = tts.generate(
        input_ids=input_ids, prompt_input_ids=prompt_input_ids
    ).to(  # type: ignore
        torch.float32
    )
    audio_arr = generation.cpu().numpy().squeeze()
    # ...
    sf.write(f"out.{response_format}", audio_arr, tts.config.sampling_rate)
    return FileResponse(f"out.{response_format}", media_type=f"audio/{response_format}")
```

[main.py · generate_audio()](https://github.com/av/harbor/blob/ff2314e670fb607d278d9acc1cfd425ff7cb822e/services/parler/main.py#L144-L170) · pushed Oct 2026 · [More projects using parler-tts →](https://dashboard.exa.ai/playground/search?q=Python%20projects%20that%20use%20parler-tts%20for%20text%20to%20speech%2C%20turning%20text%20into%20spoken%20audio&filters=%7B%22highlights%22%3Atrue%2C%22numResults%22%3A10%2C%22type%22%3A%22auto%22%2C%22includeDomains%22%3A%5B%22github.com%22%5D%7D)

**Quickstart**

```python
import torch
from parler_tts import ParlerTTSForConditionalGeneration
from transformers import AutoTokenizer
import soundfile as sf

device = "cuda:0" if torch.cuda.is_available() else "cpu"

model = ParlerTTSForConditionalGeneration.from_pretrained("parler-tts/parler-tts-mini-v1").to(device)
tokenizer = AutoTokenizer.from_pretrained("parler-tts/parler-tts-mini-v1")

prompt = "Hey, how are you doing today?"
description = "A female speaker delivers a slightly expressive and animated speech with a moderate speed and pitch. The recording is of very high quality, with the speaker's voice sounding clear and very close up."

input_ids = tokenizer(description, return_tensors="pt").input_ids.to(device)
prompt_input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to(device)

generation = model.generate(input_ids=input_ids, prompt_input_ids=prompt_input_ids)
audio_arr = generation.cpu().numpy().squeeze()
sf.write("parler_tts_out.wav", audio_arr, model.config.sampling_rate)
```

From [the README](https://github.com/huggingface/parler-tts/blob/d108732cd57788ec86bc857d99a6cabd66663d68/README.md)

## FAQ

### What is the best Python text to speech library?

It depends on the job. [pyttsx3](#pyttsx3) speaks offline with the computer's own voices, [kokoro](#kokoro) gives natural neural voices on a CPU, [gTTS](#gtts) covers many languages online, and [Coqui TTS](#tts) clones voices. [edge-tts](#edge-tts) uses online voices and has 7.8M downloads a month.

### Which Python text to speech library works offline?

[pyttsx3](#pyttsx3), [Piper](#piper1-gpl), [kokoro](#kokoro), [Coqui TTS](#tts), [RealtimeTTS](#realtimetts), and [parler-tts](#parler-tts) all run without an internet connection. [pyttsx3](#pyttsx3) uses the voices built into Windows, macOS, or Linux, while the others run neural models on the machine. [edge-tts](#edge-tts) and [gTTS](#gtts) need the internet. See [Capabilities](#capabilities).

### How to convert text to speech in Python?

Install a library with pip, pass it the text, and save or play the audio. With [gTTS](#gtts), `gTTS(text, lang='en').save(path)` writes an MP3 file. With [pyttsx3](#pyttsx3), `say()` queues the text and `runAndWait()` speaks it aloud with no internet.

### Which Python text to speech library can clone a voice?

[Coqui TTS](#tts) clones a voice from a short audio clip, and [RealtimeTTS](#realtimetts) clones voices through its optional engines. The other six libraries use preset or system voices only. See [Capabilities](#capabilities).

### Does edge-tts need an internet connection?

Yes. [edge-tts](#edge-tts) sends text to Microsoft Edge's online speech service, so it stops working without a connection or when that service is down. For offline speech, [Piper](#piper1-gpl) and [kokoro](#kokoro) run on the machine itself.

### What is kokoro TTS?

[kokoro](#kokoro) is a Python library that runs Kokoro, a small open-weight text-to-speech model, on the machine itself. It works offline on a CPU with no GPU, and it sounds close to much larger models.

## How this page was built

Data checked Nov 10, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "open source Python libraries for text to speech, turning text into spoken audio",
    "numResults": 20,
    "type": "auto",
    "includeDomains": [
      "github.com"
    ]
  }
}
```

The other calls behind this page:

```
POST /search
Query: Python text to speech library package
Within: github.com
```

```
POST /contents
Reads: https://github.com/rany2/edge-tts, https://pypi.org/project/edge-tts/
```

```
POST /answer
Query: Can the Python library edge-tts (edge-tts on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library edge-tts (edge-tts on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library edge-tts (edge-tts on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library edge-tts (edge-tts on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library edge-tts (edge-tts) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses edge-tts for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/jianchang512/pyvideotrans/blob/3ef2b964638d615e71b983411aca88d03d2cc6d8/videotrans/task/_base.py
```

```
POST /contents
Reads: https://github.com/Open-LLM-VTuber/Open-LLM-VTuber/blob/49be6690d67b91267f6799fc299015fa73db0775/src/open_llm_vtuber/tts/edge_tts.py
```

```
POST /contents
Reads: https://github.com/aedocw/epub2tts/blob/bfc1fc8b51dd9216d006a3e64c11cf7eb79e5a03/utils/get-edge-tts-samples.py
```

```
POST /contents
Reads: https://github.com/LookJohnny/soulForge/blob/d17795169cc772f4a9af5b114236c59e9a7df442/packages/ai-core/src/ai_core/services/tts/edge_tts_provider.py
```

```
POST /contents
Reads: https://github.com/OHF-Voice/piper1-gpl, https://pypi.org/project/piper-tts/
```

```
POST /answer
Query: Can the Python library piper1-gpl (piper-tts on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library piper1-gpl (piper-tts on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library piper1-gpl (piper-tts on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library piper1-gpl (piper-tts on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library piper1-gpl (piper-tts) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses piper-tts for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/pndurette/gTTS, http://gtts.readthedocs.org/, https://pypi.org/project/gtts/
```

```
POST /answer
Query: Can the Python library gTTS (gtts on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library gTTS (gtts on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library gTTS (gtts on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library gTTS (gtts on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library gTTS (gtts) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses gtts for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/PySimpleGUI/PySimpleGUI/blob/56015f36ed439272c2d0731d42b84268edf06f34/DemoPrograms/Demo_Chatterbot_With_TTS.py
```

```
POST /contents
Reads: https://github.com/sukeesh/Jarvis/blob/77b09800859b56fa7d4f05140ece4392151a092c/jarviscli/utilities/voice.py
```

```
POST /contents
Reads: https://github.com/mrismanaziz/Man-Userbot/blob/9b552b0d5800cb36a46bb26c3f7d468abdc9798d/userbot/modules/scrapers.py
```

```
POST /contents
Reads: https://github.com/killixn/selfbot.py/blob/ec47cda295659eb0be6060bf87e81fb2fb023a37/main.py
```

```
POST /contents
Reads: https://github.com/mlcommons/peoples-speech/blob/845c4cf707ee696473d7f358af4174a0e033b6f6/platform/micro-services/data-book/source/data_book/importer/fast_text_importer.py
```

```
POST /contents
Reads: https://github.com/nateshmbhat/pyttsx3, https://pypi.org/project/pyttsx3/
```

```
POST /answer
Query: Can the Python library pyttsx3 (pyttsx3 on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library pyttsx3 (pyttsx3 on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library pyttsx3 (pyttsx3 on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library pyttsx3 (pyttsx3 on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library pyttsx3 (pyttsx3) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses pyttsx3 for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/Open-LLM-VTuber/Open-LLM-VTuber/blob/49be6690d67b91267f6799fc299015fa73db0775/src/open_llm_vtuber/tts/pyttsx3_tts.py
```

```
POST /contents
Reads: https://github.com/ndleah/python-mini-project/blob/fcb488b6f7704b8b31b2a7b24eb323e27f410407/Speaking_Wikipedia/speaking_wikipedia.py
```

```
POST /contents
Reads: https://github.com/sukeesh/Jarvis/blob/77b09800859b56fa7d4f05140ece4392151a092c/jarviscli/utilities/voice.py
```

```
POST /contents
Reads: https://github.com/HarshCasper/Rotten-Scripts/blob/1e9bc38433cbdd4e78a479e36b5ec160d6eed416/Python/Battery_Full_Charged_Notifier/battery_full_charged_notifier.pyw
```

```
POST /contents
Reads: https://github.com/python-geeks/Automation-scripts/blob/b404f7ff1497a700692dca43a59c4f02a75e26b1/speech_alarm/script.py
```

```
POST /contents
Reads: https://github.com/hexgrad/kokoro, https://pypi.org/project/kokoro/
```

```
POST /answer
Query: Can the Python library kokoro (kokoro on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library kokoro (kokoro on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library kokoro (kokoro on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library kokoro (kokoro on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library kokoro (kokoro) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses kokoro for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/xorbitsai/inference/blob/011608a75aa0c4f2c1c4cd6fd3e94871fb864ee2/xinference/model/audio/kokoro_zh.py
```

```
POST /contents
Reads: https://github.com/coqui-ai/TTS, http://coqui.ai, https://pypi.org/project/tts/
```

```
POST /answer
Query: Can the Python library TTS (tts on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library TTS (tts on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library TTS (tts on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library TTS (tts on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library TTS (tts) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses tts for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/daswer123/xtts-webui/blob/9db8e5eb3d95ff09a6e6e8c23534039fcddfc673/scripts/tts_funcs.py
```

```
POST /contents
Reads: https://github.com/daswer123/xtts-api-server/blob/4ddffab7ec6d585d4dfd4015deca04f243855d43/xtts_api_server/tts_funcs.py
```

```
POST /contents
Reads: https://github.com/KoljaB/RealtimeTTS, https://pypi.org/project/realtimetts/
```

```
POST /answer
Query: Can the Python library RealtimeTTS (realtimetts on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library RealtimeTTS (realtimetts on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library RealtimeTTS (realtimetts on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library RealtimeTTS (realtimetts on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library RealtimeTTS (realtimetts) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses realtimetts for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/disler/always-on-ai-assistant/blob/b8c9aacfb53c665ba4bb595cf59f27b588786a54/modules/base_assistant.py
```

```
POST /contents
Reads: https://github.com/huggingface/parler-tts, https://pypi.org/project/parler-tts/
```

```
POST /answer
Query: Can the Python library parler-tts (parler-tts on PyPI) synthesize speech fully offline on the local machine, without a cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library parler-tts (parler-tts on PyPI) clone a voice from a short audio sample? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library parler-tts (parler-tts on PyPI) stream synthesized audio in chunks while it is being generated? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: Can the Python library parler-tts (parler-tts on PyPI) synthesize speech locally on a CPU, with no GPU and no cloud service? Answer from its own documentation.
Returns:
  - answer
  - how
  - evidence
```

```
POST /answer
Query: What output formats can the Python library parler-tts (parler-tts) save or return synthesized speech as? Answer from its own documentation.
Returns:
  - formats
  - evidence
```

```
POST /search
Query: Python project that uses parler-tts for text to speech, turning text into spoken audio, application code
Within: github.com
```

```
POST /contents
Reads: https://github.com/KoljaB/RealtimeTTS/blob/628564531e1bc46ef6f530559be05e2817446707/RealtimeTTS/engines/parler_engine.py
```

Docs: https://exa.ai/docs/reference/search
