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

add other audio formats #134

Closed moha-abdi closed 10 months ago

moha-abdi commented 10 months ago

Hello, I only see this saves the audio files as mp3 format may be adding .wav which is more usable would be a good option.

rany2 commented 10 months ago

Unfortunately the TTS server would only allow you to generate mp3 and webm. Everything else is filtered out by the server even though their Azure service supports way more formats. The webm output supported also always sounds inferior because it has less bitrate.