ElevenLabs Text To Speech

ElevenLabs Text To Speech · Acciones GPT

Eleven Labs Text-to-Speech

API for converting text to speech using specified model and voice IDs.

  • POST /convert-text-to-speechConvert text to speech

    Converts given text to speech using specified model and voice IDs.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Eleven Labs Text-to-Speech",
    "version": "1.0.0",
    "description": "API for converting text to speech using specified model and voice IDs."
  },
  "servers": [
    {
      "url": "https://eleven-labs-gpt-server-asrsubs.replit.app"
    }
  ],
  "paths": {
    "/convert-text-to-speech": {
      "post": {
        "summary": "Convert text to speech",
        "description": "Converts given text to speech using specified model and voice IDs.",
        "operationId": "convertTextToSpeech",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "text": {
                    "type": "string",
                    "description": "Text to be converted to speech."
                  },
                  "model_id": {
                    "type": "string",
                    "description": "ID of the speech model to use."
                  },
                  "voice_id": {
                    "type": "string",
                    "description": "ID of the voice to use."
                  }
                },
                "required": [
                  "text",
                  "model_id",
                  "voice_id"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Confirmation message of file creation."
                    },
                    "url": {
                      "type": "string",
                      "format": "uri",
                      "description": "URL to the generated speech audio file."
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}