Generate Speech

POST /v1/audio/speech

Generate speech from text using the specified model.

application/json

Body Required

  • text string Required

    The text to convert to speech.

  • model string Required

    The model to use for speech generation.

    Values are male or female.

Responses

  • 200 application/json

    Successful Response

    Hide response attribute Show response attribute object
    • file_url string Required

      The URL of the generated audio file.

  • 400 application/json

    Bad Request

    Hide response attribute Show response attribute object
    • error object Required
      Hide error attributes Show error attributes object
      • message string Required

        A human-readable error message.

      • type string Required

        The type of error that occurred.

      • param string | null Required

        The parameter that caused the error, if applicable.

      • code string Required

        A machine-readable error code.

  • 401 application/json

    Unauthorized

    Hide response attribute Show response attribute object
    • error object Required
      Hide error attributes Show error attributes object
      • message string Required

        A human-readable error message.

      • type string Required

        The type of error that occurred.

      • param string | null Required

        The parameter that caused the error, if applicable.

      • code string Required

        A machine-readable error code.

  • 429 application/json

    Too Many Requests

    Hide response attribute Show response attribute object
    • error object Required
      Hide error attributes Show error attributes object
      • message string Required

        A human-readable error message.

      • type string Required

        The type of error that occurred.

      • param string | null Required

        The parameter that caused the error, if applicable.

      • code string Required

        A machine-readable error code.

POST /v1/audio/speech
curl \
 -X POST https://api.rimunace.xyz/v1/audio/speech \
 -H "Authorization: $API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"text":"string","model":"male"}'
Request examples
{
  "text": "string",
  "model": "male"
}
Response examples (200)
{
  "file_url": "string"
}
Response examples (400)
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
Response examples (401)
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}
Response examples (429)
{
  "error": {
    "message": "string",
    "type": "string",
    "param": "string",
    "code": "string"
  }
}