Audio

Create Audio Speech

Changed on

Generate audio speech from text.

This endpoint converts text to speech using the Morpheus Network providers. It automatically manages sessions and routes requests to the appropriate TTS model.

Returns binary audio data in the specified format.

Note: Swagger UI may not be able to play the audio directly. To test, click "Download" and play the file in your media player, or use curl to save the audio file.

post/api/v1/audio/speech

Request

  • The document declares no server URL.
  • Auth
    API key in header Authorization

Request body

inputstring required

Text to convert to speech

voicestring

Voice to use for speech generation

response_formatstring

Audio format: mp3, opus, aac, flac, wav, pcm

speednumber

Speech speed

session_idstring

Session ID (auto-created if not provided)

modelstring

Model name

Response

Binary audio file

unknown required

Changes