Skip to content

v0.4.41

Choose a tag to compare

@KoljaB KoljaB released this 11 Jan 17:14
· 178 commits to master since this release

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:

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()