rany2 / edge-tts

Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
https://pypi.org/project/edge-tts/
GNU General Public License v3.0
4.21k stars 444 forks source link

control line breaks for text to subtitles #195

Closed yumianhuli1 closed 4 months ago

yumianhuli1 commented 4 months ago

How to control line breaks in the process of converting text to subtitles, so that the subtitles break lines where I want them to?Or automatically break sentences according to punctuation For example,The SubMaker module of edge_tts automatically generates the following subtitles: 00:00:00.100 --> 00:00:06.075 you are right

00:00:06.425 --> 00:00:13.075 man, thank you

But I want to this: 00:00:00.100 --> 00:00:06.075 you are right,man

00:00:06.425 --> 00:00:13.075 thank you

How to control?thanks!