Realtimetts

Latest version: v0.4.41

Safety actively analyzes 701340 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 7

0.4.41

New Feature: KokoroEngine Support

- **KokoroEngine Integration**
- Introduces support for the Kokoro 82M TTS engine.
- Provides access to a variety of Kokoro voice models.

- **Installation**:
bash
pip install realtimetts==0.4.41[all]


- **Setup Resources**:
- Kokoro installation guide: [Kokoro Installation](https://huggingface.co/hexgrad/Kokoro-82M#usage)
- Test script: [kokoro_test.py](https://github.com/KoljaB/RealtimeTTS/blob/master/tests/kokoro_test.py)
- Engine implementation: [kokoro_engine.py](https://github.com/KoljaB/RealtimeTTS/blob/master/RealtimeTTS/engines/kokoro_engine.py)

Usage Overview

python
from RealtimeTTS import TextToAudioStream, KokoroEngine

Initialize Kokoro engine
engine = KokoroEngine(kokoro_root="path/to/Kokoro-82M")

Switch voice as needed
engine.set_voice("af_sky")

Create audio stream
stream = TextToAudioStream(engine)

Feed and play audio using Kokoro voices
stream.feed("Hello world")
stream.play()

0.4.40

0.4.21

🚀 New Features

- update to latest versions of dependencies (stream2sentence, coqui-tts, elevenlabs, openai, edge-tts)

**StyleTTS Engine**
- Added seed. Added fix for a styletts2 problem causing noise to be generated with very short texts, especially when using embedding_scale values > 1

🛠 Bug Fixes
- Fixed a problem in stream2sentence causing minimum_sentence_length to not be respected

0.4.20

🚀 New Features
**Azure Engine**
- Added support for **48 kHz audio output** in the Azure TTS engine for improved audio quality (and providing more flexibility in audio formats).

**StyleTTS Engine**
- introduced StyleTTSVoice for dynamic voice switching to allow transitions between multiple voice models

🛠 Bug Fixes
- Fixed **incorrect voice initialization** when switching between models in the StyleTTS engine.
- Fixed **model configuration path issues** during runtime when updating voice parameters.

0.4.19

- Added support for the StyleTTS2 engine.
- Updated Coqui-TTS to version 0.25.0, which includes a fix for issue 227
- Upgraded all dependent libraries to their latest versions

0.4.17

- performance improvements, bugfixes and better edge_test.py for edge tts


https://github.com/user-attachments/assets/a480bd3f-75d8-4e20-91fc-5afc155fa722

Page 1 of 7

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.