স্কিপ করে মূল কন্টেন্ট এ যান

ভয়েস থেকে লিঙ্গ API

আপলোড করা অডিও অথবা অডিও URL থেকে বক্তার সম্ভাব্য লিঙ্গ শনাক্ত করুন।

মূল URL​

https://api.genderrecognition.com

ফাইল এন্ডপয়েন্ট​

POST /v1/voice-gender-recognition/api

হেডারসমূহ​

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

বডি​

ক্ষেত্রধরনআবশ্যকবিবরণ
filefileহ্যাঁবিশ্লেষণের জন্য অডিও ফাইল।

উদাহরণ​

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

URL এন্ডপয়েন্ট​

POST /v1/voice-gender-recognition/api/url

হেডারসমূহ​

apiKey: YOUR_API_KEY
Content-Type: application/json

বডি​

{
"url": "https://example.com/audio.wav"
}

প্রতিক্রিয়া​

ফাইল অনুরোধে পূর্বাভাস, আত্মবিশ্বাসের শতাংশ এবং হালনাগাদ কোটা-তথ্য ফেরত আসে।

{
"success": true,
"gender": "male",
"confidence": 97,
"remainingRequests": 2999
}

URL অনুরোধে পূর্বাভাস ও কোটা-তথ্য ফেরত আসে। প্রথম অনুরোধ ধীর হলে info বার্তাও থাকতে পারে।

{
"success": true,
"gender": "male",
"remainingRequests": 2999
}

ত্রুটির পরিস্থিতি​

API কী নেই​

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

অবৈধ API কী​

{
"error": "Invalid API key"
}

ফাইল নেই​

{
"error": "No file uploaded"
}

ফাইলের ধরন অবৈধ​

{
"error": "Invalid file type. Only audio formats are allowed"
}

URL অনুরোধ অবৈধ​

{
"error": "A valid http or https URL is required"
}

JSON content type নেই​

{
"error": "Content-Type header is required. Please set Content-Type: application/json"
}

অসমর্থিত JSON content type​

{
"error": "Content-Type must be application/json"
}

কোটা শেষ​

{
"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."
}
}

নোট​

  • ফাইল অনুরোধে multipart form data ব্যবহার হয়।
  • URL অনুরোধে JSON ব্যবহার হয়।
  • অডিও আপলোডে file ক্ষেত্র ব্যবহার করুন এবং ফাইলের আকার 10 MB বা কম রাখুন।