Text-to-Speech API from DoubaoPrice:35 PTC/ M characters Request
Body Params  application/json
{"audio": {
        "voice_type": "zh_male_M392_conversation_wvae_bigtts",
        "encoding": "mp3",
        "speed_ratio": 1.0
    },
    "request": {
        "reqid": "xxxx",
        "text": "你好啊",
        "operation": "query"
    }
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/doubao/tts_hd' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{"audio": {
        "voice_type": "zh_male_M392_conversation_wvae_bigtts",
        "encoding": "mp3",
        "speed_ratio": 1.0
    },
    "request": {
        "reqid": "xxxx",
        "text": "你好啊",
        "operation": "query"
    }
}'
Responses
application/json Modified at 2025-02-14 06:00:55