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

How can I change speech speed(rate) in Python? #120

Closed asadal closed 11 months ago

asadal commented 11 months ago

Not in CLI. Could someone show me the sample code? Thanks in advance.

rany2 commented 11 months ago

x = Communicate("text", "voice", rate="+0%", volume="+0%");

It's in the class' signature, same parameters as CLI.