v4

latestOpenAPI 3.0.0raw.githubusercontent.com2026-05-23171869.8 KB
Gender Detection

Classify speaker gender

Classify the gender of the speaker in an audio file. Accepts either an audio URL (S3 or HTTP) or base64-encoded audio data. Supports WAV, MP3, FLAC, OGG, and other common audio formats.

post/gender-detection/classify

Headers

x-api-keystring required

API Key

Request body

audio_urlstring

URL to an audio file (S3 or HTTP). Provide either audio_url or audio_base64.

audio_base64string

Base64-encoded audio data. Provide either audio_url or audio_base64.

Example request

{
  "audio_url": "https://example.com/audio/sample.wav"
}

Response

Successful classification

predicted_gender'female' | 'male' required

Predicted gender of the speaker

confidencenumber required

Confidence score (0.0 to 1.0)

duration_secondsnumber

Duration of the audio in seconds

processing_time_msnumber

Processing time in milliseconds

Example response

{
  "predicted_gender": "female",
  "confidence": 0.95,
  "prediction": {
    "female": 0.95,
    "male": 0.05
  },
  "duration_seconds": 3.5,
  "processing_time_ms": 120.5
}