Usage
We follow the OpenAI signature where you can send the input text and the voice option as a part of the API request. All the output formatsmp3
, opus
, aac
, flac
, and pcm
are supported. Portkey also supports real time audio streaming for TTS models.
Here’s an example: