v0.4.41
RealtimeTTS v0.4.41 Release Notes
New Feature: KokoroEngine Support
-
KokoroEngine Integration
- Introduces support for the Kokoro 82M TTS engine.
- Provides access to a variety of Kokoro voice models.
-
Installation:
pip install realtimetts[all]==0.4.41
-
Setup Resources:
- Kokoro installation guide: Kokoro Installation
- Test script: kokoro_test.py
- Engine implementation: kokoro_engine.py
Usage Overview
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()