v0.4.4

KoljaB/RealtimeTTSv0.4.4Jul 18, 2024by KoljaB

AI Summary

Introduced customization hooks for text tokenization and synthesis lifecycle events, plus an async server feature.

Key Highlights

  • Added `tokenize_sentences` callback
  • Added `before_sentence_synthesized` callback
  • Merged async server PR #109

New Features

  • Custom tokenization function
  • Synthesis callback
  • Async server support

Full Release Notes

Added:  

`tokenize_sentences` (callable)
    - **Default**: `None`
    - **Description**: A custom function that tokenizes sentences from the input text. You can provide your own lightweight tokenizer if you are unhappy with nltk and stanza. It should take text as a string and return split sentences as a list of strings.  

and  

`before_sentence_synthesized` (callable)
    - **Default**: `None`
    - **Description**: Callback function that gets called before a single sentence fragment gets synthesized.

Merged PR #109 (async server to serve multiple requests in parallel, thx to [Raj Hammeer Singh Hada](https://github.com/criminact) for providing this