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
5.38k stars 549 forks source link

[Suggestion] option to directly wav file using the raw pcm output formats #57

Closed geocine closed 1 year ago

geocine commented 1 year ago

If possible add an option to output to wav file. I am trying to make raw-44100hz-16bit-mono-pcm work

rany2 commented 1 year ago

Not possible, Microsoft's API freaks out if you use an output format that they do not use in Edge and bans you. You could take the MP3 file and convert it to WAV using ffmpeg if you like.