王者荣耀语音查询
查询王者荣耀英雄的所有语音台词,返回每条台词的文本和 MP3 音频链接。支持中文名和拼音搜索。
GET
https://api.tinyaii.cn/v1/wzry/voice
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| name | string | 必填 | 英雄名称(支持中文名和拼音) | 赵云 |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
| hero | string | 英雄名称 |
| hero_id | int | 英雄ID |
| avatar | string | 英雄头像链接 |
| count | int | 语音数量 |
| voices | array | 语音列表 |
| voices[].tag | string | 语音分类(大厅/移动/技能/击杀等) |
| voices[].line | string | 台词文本 |
| voices[].audio | string | MP3 音频链接 |
返回示例
{
"code": 200,
"message": "success",
"data": {
"hero": "大禹",
"hero_id": 188,
"avatar": "https://game.gtimg.cn/images/yxzj/img201606/heroimg/188/188.jpg",
"count": 69,
"voices": [
{
"tag": "大厅语音1",
"line": "山海镇伏,前路昭彰!",
"audio": "https://game.gtimg.cn/.../17676898876272.mp3"
},
{
"tag": "移动语音1",
"line": "灾难当前,那我们就战胜灾难!",
"audio": "https://game.gtimg.cn/.../17676908162014.mp3"
}
]
}
}
调用示例
curl "https://api.tinyaii.cn/v1/wzry/voice?name=赵云" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch("https://api.tinyaii.cn/v1/wzry/voice?name=赵云", {
headers: { "Authorization": "Bearer YOUR_API_KEY" },
});
console.log(await res.json());import requests
resp = requests.get(
"https://api.tinyaii.cn/v1/wzry/voice",
params={"name": "赵云"},
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=10,
)
print(resp.json())把 YOUR_API_KEY 换成你的密钥即可直接运行。密钥只保存在你自己的设备上。