Cleanup SentenceBoundary support (#396)

- Default to SentenceBoundary
- Modify boundary argument to lowercase to match other options.
- Drop merge_cues support as SentenceBoundary renders it obsolete.

Signed-off-by: rany <rany2@riseup.net>
This commit is contained in:
rany2
2025-08-05 14:30:30 +03:00
committed by GitHub
parent 645c207cfd
commit c78e49d28e
5 changed files with 17 additions and 61 deletions

View File

@@ -24,7 +24,7 @@ VOICE = "zh-CN-YunjianNeural"
def main() -> None:
"""Main function"""
communicate = edge_tts.Communicate(TEXT, VOICE, Boundary="SentenceBoundary")
communicate = edge_tts.Communicate(TEXT, VOICE, boundary="SentenceBoundary")
submaker = edge_tts.SubMaker()
stdout = sys.stdout
audio_bytes = []