Retrieve audio configuration parameters

December 23, 2024 (August 24, 2026)

Table of contents

  1. Request Headers
  2. Query Parameters
  3. Responses
  4. Model
  5. Examples
  6. Try It

Returns the vocabularies speech generation accepts — the emotion names, the voice tags used for filtering, and the languages available for language_boost.

https://api.useapi.net/v1/minimax/speech/config/?…

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
Query Parameters
  • account is optional when only one account configured. However, if you have multiple accounts configured, this parameter becomes required.
Responses
  • 200 OK

    {
        "t2a_emotion": [
            {
                "label": "Happy",
                "value": "happy"
            },
            {
                "label": "...",
                "value": "..."
            }
        ],
        "voice_tag_accent": [
            {
                "language": "English",
                "tag_name": "EN-US (General)"
            },
            {
                "language": "...",
                "tag_name": "..."
            }
        ],
        "voice_tag_age": [
            {
                "tag_name": "Young"
            },
            {
                "tag_name": "..."
            }
        ],
        "voice_tag_gender": [
            {
                "tag_name": "Male"
            },
            {
                "tag_name": "..."
            }
        ],
        "voice_tag_language": [
            {
                "tag_name": "English"
            },
            {
                "tag_name": "..."
            }
        ]
    }
    
  • 400 Bad Request

    {
        "error": "<Error message>",
        "code": 400
    }
    
  • 401 Unauthorized

    {
      "error": "Unauthorized",
      "code": 401
    }
    
  • 596 Account Error

    {
      "error": "Your minimax account has pending error. Please address this issue at https://useapi.net/docs/api-minimax-v1/post-minimax-accounts-account before making any new API calls.",
      "code": 596
    }
    
Model
{   // TypeScript, all fields are optional
    t2a_emotion: {
        label: string
        value: string
    }[]
    voice_tag_accent: {
        language: string
        tag_name: string
    }[]
    voice_tag_age: {
        tag_name: string
    }[]
    voice_tag_gender: {
        tag_name: string
    }[]
    voice_tag_language: {
        tag_name: string
    }[]
}
Examples
  • curl "https://api.useapi.net/v1/minimax/speech/config/?account=account" \
       -H "Accept: application/json" \
       -H "Authorization: Bearer …" 
    
  • const token = "API token";
    const account = "Previously configured account"; 
    const apiUrl = `https://api.useapi.net/v1/minimax/speech/config/?account=${account}`; 
    const response = await fetch(apiUrl, {
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    const result = await response.json();
    console.log("response", {response, result});
    
  • import requests
    token = "API token"
    account = "Previously configured account"
    apiUrl = f"https://api.useapi.net/v1/minimax/speech/config/?account={account}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It