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

any support for WAV output? (python seems to support wav playback natively) #161

Closed RaSan147 closed 7 months ago

RaSan147 commented 7 months ago

Is there any flag to update the format?

https://github.com/rany2/edge-tts/blob/5b7add93b9f64c27b5ed7138c30a1a4f25ba6a9d/src/edge_tts/communicate.py#L364

Value reference: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/how-to-audio-content-creation#export-tuned-audio

will these values work?

rany2 commented 7 months ago

It doesn't unfortunately. Edge used to also use webm format but that seems to no longer work either, the server just doesn't return anything. That's why this value is hardcoded now.