The title really says it all. I tried to get the generated speech in Opus format from the API using curl and I couldn’t figure out how. The documentation doesn’t explain how. I just tried adding "format": "ogg"
to the json, but that wasn’t it.
Have you tried just putting the .opus extension on the output file name?
The correct parameter is response_format
not format
. Please check the reference page for details.
response_format
string
Optional
Defaults to mp3
The format to audio in. Supported formats are mp3, opus, aac, and flac.
2 Likes
also the value of the key response_format should be “opus” and not ogg. @supershaneski is right, always check the docs.