matatonic / openedai-speech

An OpenAI API compatible text to speech server using Coqui AI's xtts_v2 and/or piper tts as the backend.
GNU Affero General Public License v3.0
362 stars 45 forks source link

Add wav output support #23

Closed ther3zz closed 3 months ago

ther3zz commented 3 months ago

Previously if response_format was passed with a value of "wav", an error 500 was returned. This allows wav response_format and returns a wav file

matatonic commented 3 months ago

Thanks for this, I noticed yesterday that pcm and wav format was added to the API - I'm in the process of updating it, and also adding streaming.

matatonic commented 3 months ago

Wav added in 0.14.0