v0.4.51
KoljaB/RealtimeTTSv0.4.51Mar 17, 2025by KoljaB
AI Summary
This update adds a callback mechanism to track word-level timing during playback, supported by Azure and Kokoro engines.
Key Highlights
- Added `on_word` callback to TextToAudioStream
- TimingInfo class parameter with word, start_time, and end_time
- Supported by AzureEngine and English voices of KokoroEngine
New Features
- Word alignment callback
- TimingInfo tracking
Full Release Notes
# RealtimeTTS v0.4.51 Release Notes - added on_word callback to TextToAudioStream that gets called when a word gets played out Supported by AzureEngine and english voices of KokoroEngine. An instance of class TimingInfo from BaseEngine.py gets submitted as parameter. It carries the members word, start_time and end_time. For examples please look into tests/kokoro_test.py and tests/azure_test.py https://github.com/user-attachments/assets/e7cb35ed-2d4c-407f-a768-4f01a5afa619