Stream2sentence

Latest version: v0.3.0

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

Scan your dependencies

Page 1 of 2

0.3.0

- combine sentences that are shorter than the specified minimum length with subsequent sentences (fixes situations where minimum_sentence_length would not work)

0.2.9

**Enhancements to Sentence Processing**
- Improved buffer handling by ensuring it starts with an alphanumeric character to prevent TTS confusion caused by initial non-phonetic characters.
- **Bug Fix:** Resolved an issue where the word counter wasn’t reset after triggering `force_first_fragment_after_words`, causing processing errors.
- Increased the default `force_first_fragment_after_words` threshold from 15 to 30 for better fragment control.

(Bugfix for: https://github.com/KoljaB/RealtimeTTS/issues/223)

0.2.7

- implements PRs 3, 4
- fixes 5
- upgrades stanza, nltk and emoji dependencies to latest versions
- upgrades nltk to latest "punkt-tab" model

0.2.5

- new parameters for sentence splitting:
context_size_look_overhead: The number of characters to look over the context_size boundaries to detect sentence splitting characters (improves sentence detection).
quick_yield_for_all_sentences (bool): If set to True, the generator will yield every sentence first fragment as quickly as possible (not only the first sentence first fragment)
quick_yield_every_fragment (bool): If set to True, the generator not only yield every sentence first fragment, but also every following fragment.

0.2.4

- bugfix with some special characters that could break sentence splitting (esp in context of using chinese tokenizers where sentence splitting could fail)

0.2.3

- new parameters:
sentence_fragment_delimiters: Characters considered as sentence delimiters for yielding quick fragment.
force_first_fragment_after_words: Forces the first sentence fragment to yield after a specified number of words. Default is 10 words.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.