Retrieve audio configuration parameters

December 23, 2024 (March 17, 2025)

Table of contents

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

Please configure at least one www.minimax.io/audio account for this endpoint, see Setup MiniMax for details.

https://api.useapi.net/v1/minimax/audio/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": "US (General)"
            },
            {
                "language": "...",
                "tag_name": "..."
            }
        ],
        "voice_tag_age": [
            {
                "tag_name": "Young Adult"
            },
            {
                "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
    }
    
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/audio/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/audio/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/audio/config/?account={account}"
    headers = {
        "Content-Type": "application/json", 
        "Authorization" : f"Bearer {token}"
    }
    response = requests.get(apiUrl, headers=headers)
    print(response, response.json())
    
Try It