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.24k stars 447 forks source link

text breaks #136

Closed moha-abdi closed 10 months ago

moha-abdi commented 10 months ago

is it possible to somehow add text pauses. may be using [pause] or something

rany2 commented 10 months ago

Same issue as https://github.com/rany2/edge-tts/issues/58

moha-abdi commented 10 months ago

If someone is searching for how to pause with edge_tts I just wrote a custom Class that uses edge_tts and handles pause times as the edge_tts no longer support custom SSML. It would be good to add something like this to edge_tts but I think its not necessary as most of the people dont need this.

here is the link to it: https://gist.github.com/moha-abdi/8ddbcb206c38f592c65ada1e5479f2bf