آواز سے عمر کی API
اپ لوڈ کردہ آڈیو فائل سے بولنے والے کی عمر کا اندازہ لگائیں۔
بنیادی URL
https://api.genderrecognition.com
اینڈپوائنٹ
POST /v1/voice-age/api
ہیڈرز
apiKey: YOUR_API_KEY
Content-Type: multipart/form-data
درخواست کا مواد
| فیلڈ | قسم | لازمی | وضاحت |
|---|---|---|---|
file | file | ہاں | تجزیے کے لیے آڈیو فائل۔ |
مثال
curl -X POST "https://api.genderrecognition.com/v1/voice-age/api" \
-H "apiKey: YOUR_API_KEY" \
-F "file=@audio.wav"
جواب
{
"success": true,
"estimated_age_years": 32,
"confidence": 91,
"probabilities": {
"male": 86,
"female": 9,
"child": 5
},
"remainingRequests": 2999
}
خرابی کی صورتیں
API key موجود نہیں
{
"error": "API key is required"
}
غلط API key
{
"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": "Voice age detection failed"
}
نوٹس
- بیک اینڈ عام آڈیو فارمیٹس مثلاً WAV، MP3، FLAC، MP4، OGG اور AIFF قبول کرتا ہے۔
- آڈیو اپ لوڈ میں
fileفیلڈ استعمال کریں؛ فائل 10 MB یا اس سے کم ہونی چاہیے۔