API.Market
Go to API.market
  • Welcome to API.market
  • What are API Products?
  • How to subscribe to a SaaS API Product?
  • Managing Subscriptions
  • Analytics & Logs
  • How can I cancel my Subscription?
  • How do I add payment details?
  • How does API.market charges me?
  • Error Codes
  • Seller Docs
    • API Seller Console
    • What is an API Product?
    • What is a Pricing Plan
    • Importing an API Source
    • Creating a Product using the Wizard
    • Testing Your APIs & Products
    • Analytics & Logs
    • Custom Usage
    • Overriding Custom Usage on Result Retrieval
  • FUNDAMENTALS
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • About Us
  • API Product Docs
    • MagicAPI
      • Screenshot API
      • Domain Availability Checker API
      • WhoIS API
      • PDF Conversion API
      • Image Upscale API
      • DNS Checker API
      • Ageify API
      • Image Restoration API
      • Toon Me API
      • Coding Assistant
      • 🎭 FaceSwap API: Instantaneous replaces face with one another
      • 🏞️ Image Upload API
      • Deblurer API
      • Hair Changer API
      • 🤳🏻🤖AI Qr Code Generator API
      • Whisper API
      • Image Colorizer API
      • OpenJourney API
      • Object Remover API
      • Image Captioner API
      • Object Detector API
      • NSFW API
      • Crunchbase API
      • Pipfeed's Extract API Developer Documentation
      • Migrating from Capix FaceSwap API to magicapi/faceswap-capix API
    • BridgeML
      • Meta-Llama-3-8B-Instruct
      • Meta-Llama-3-70B-Instruct
      • Mistral-7B-Instruct-v0.1
      • Mixtral-8x22B-Instruct-v0.1
      • Meta-Llama-2-7b
      • Meta-Llama-2-13b
      • Meta-Llama-2-70b
      • Gemma-7b-it
      • NeuralHermes-2.5-Mistral-7B
      • BAAI/bge-large-en-v1.5
      • CodeLlama-70b-Instruct-hf
      • 🤖🧗Text-to-Image API
      • 📝🎧 Text to Audio API
    • Capix AI
      • FaceSwap Image and Video Face Swap API
      • MakeUp
      • Photolab.me
      • AI Picture Colorizer
      • AI Picture Upscaler
      • AI Background Remover
      • Object Remover
      • TTS Universal
      • Home GPT
      • AI & Plagiarism Checker
      • AI Story Generator
      • AI Essay Generator
      • Book Title Generator
    • Trueway
      • ⛕ 🗺️ Trueway Routing API
      • 🌐📍Trueway Geocoding API: Forward and Reverse Geocoding
      • 🛤️ ⏱️Trueway Matrix API: Travel Distance and Time
      • 🏛️ Trueway Places API
    • AILabTools
      • Cartoon-Yourself
    • SharpAPI
      • 📄 AI-Powered Resume/CV Parsing API
      • 🛩️ Airports Database & Flight Duration API
    • Text to Speech
      • Turn your text into Magical-sounding Audio
Powered by GitBook
On this page
  • Endpoints
  • Request and Response
  1. API Product Docs
  2. Text to Speech

Turn your text into Magical-sounding Audio

Designed to provide you with the most realistic human-sounding voices at an affordable price

PreviousText to Speech

Last updated 9 months ago

Developer Portal :

The Text-to-Speech (TTS) API offers an easy-to-use solution for converting text into lifelike audio. Whether you need to add a human touch to your app, create engaging content, or build accessibility features, this API provides a seamless way to generate high-quality voice output. With a variety of voice models and languages, you can tailor the audio experience to your specific needs.

This API features straightforward endpoints to list available models and languages and to perform TTS conversions. Simply send a request with the desired text and parameters, and receive a realistic audio file in response. The flexibility and affordability of this API make it an ideal choice for developers looking to enhance their projects with natural-sounding speech.

Endpoints

GET /models/list Retrieve list of available TTS models

GET /languages/list Retrieve list of available languages

POST /tts/run Run Text to Speech conversion

Request and Response

GET /models/list

Request

curl -X 'GET' \
  'https://api.magicapi.dev/api/v1/text-to-speech/text-to-speech/models/list' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY'

Response

{
  "status": 0,
  "msg": "Success",
  "models": [
    {
      "id": 1,
      "speaker_name": "Joe",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 2,
      "speaker_name": "Jane",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 3,
      "speaker_name": "Philip",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 4,
      "speaker_name": "Anthony",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 5,
      "speaker_name": "Pam",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 6,
      "speaker_name": "John",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 7,
      "speaker_name": "Bryan",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 8,
      "speaker_name": "Adrienne",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 9,
      "speaker_name": "Ariele",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 10,
      "speaker_name": "Brittany",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 11,
      "speaker_name": "Jack",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 12,
      "speaker_name": "Caroline",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 13,
      "speaker_name": "Samantha",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 14,
      "speaker_name": "Sara",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 15,
      "speaker_name": "Quinn",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 16,
      "speaker_name": "Victoria",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 17,
      "speaker_name": "Tracy",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 18,
      "speaker_name": "Georgia",
      "gender": "female",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 19,
      "speaker_name": "Henry",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 20,
      "speaker_name": "Jerry",
      "gender": "male",
      "languages": [
        "en"
      ],
      "multilingual": false
    },
    {
      "id": 21,
      "speaker_name": "Generic-female-1",
      "gender": "female",
      "languages": [
        "en",
        "fr-fr",
        "pt-br"
      ],
      "multilingual": true
    },
    {
      "id": 22,
      "speaker_name": "Generic-female-2",
      "gender": "female",
      "languages": [
        "en",
        "fr-fr",
        "pt-br"
      ],
      "multilingual": true
    },
    {
      "id": 23,
      "speaker_name": "Generic-female-3",
      "gender": "female",
      "languages": [
        "en",
        "fr-fr",
        "pt-br"
      ],
      "multilingual": true
    },
    {
      "id": 24,
      "speaker_name": "Generic-male-1",
      "gender": "male",
      "languages": [
        "en",
        "fr-fr",
        "pt-br"
      ],
      "multilingual": true
    },
    {
      "id": 25,
      "speaker_name": "Generic-male-2",
      "gender": "male",
      "languages": [
        "en",
        "fr-fr",
        "pt-br"
      ],
      "multilingual": true
    },
    {
      "id": 26,
      "speaker_name": "Generic-male-3",
      "gender": "male",
      "languages": [
        "en",
        "fr-fr",
        "pt-br"
      ],
      "multilingual": true
    }
  ]
}

GET /languages/list

Request

curl -X 'GET' \
  'https://api.magicapi.dev/api/v1/text-to-speech/text-to-speech/languages/list' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY'

Response

{
  "status": 0,
  "msg": "Success",
  "languages": [
    "en",
    "fr-fr",
    "pt-br"
  ]
}

POST /tts/run

Request

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/text-to-speech/text-to-speech/tts/run' \
  -H 'accept: audio/wav' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "speaker_id": 1,
  "lang": "en",
  "text_data": "Hi, this is the text that I want to transform into speech."
}'

Just paste the curl request in the Postman or terminal to receive the response result of the request.

Developer Portal :

https://api.market/store/text-to-speech/text-to-speech
https://api.market/store/text-to-speech/text-to-speech