跳到主要内容

深度伪造语音检测 API

检测上传的音频文件是否可能包含合成或篡改的语音内容。

基础 URL​

https://api.genderrecognition.com

端点​

POST /v1/deep-voice-fake/api

请求标头​

apiKey: YOUR_API_KEY
Content-Type: multipart/form-data

请求正文​

字段类型必填说明
filefile是要检查的音频文件。

示例​

curl -X POST "https://api.genderrecognition.com/v1/deep-voice-fake/api" \
-H "apiKey: YOUR_API_KEY" \
-F "file=@audio.wav"

响应​

{
"success": true,
"prediction": "real",
"confidence": 94,
"probabilities": {
"real": 94,
"fake": 6
},
"remainingRequests": 2999
}

错误情况​

缺少 API 密钥​

{
"error": "API key is required"
}

API 密钥无效​

{
"error": "Invalid API key"
}

缺少文件​

{
"error": "No file uploaded"
}

文件类型无效​

{
"error": "Invalid file type. Allowed formats: WAV, MP3, FLAC, MP4, OGG, AIFF"
}

配额已用尽​

{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "You have exceeded your free tier limit of 50 requests.",
"detailedMessage": "Insufficient remaining requests. Required: 1, Available: 0",
"details": {
"limit": 50,
"used": 50,
"reset_date": "2026-07-01T00:00:00.000Z"
},
"suggested_action": "Please upgrade to a premium plan to continue using the API."
}
}

处理失败​

{
"error": "Deep voice fake detection failed"
}

说明​

  • 在信任用户提交的音频之前,请先调用此端点进行检查。
  • 音频上传使用 file 字段,文件大小不得超过 10 MB。
  • 验证失败不代表模型成功完成了预测。