Skip to main content
POST
/
gender-detection
/
classify
/
upload
Classify speaker gender (file upload)
curl --request POST \
  --url https://restapi.deepdub.ai/api/v1/gender-detection/classify/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form file='@example-file'
{
  "predicted_gender": "female",
  "confidence": 0.95,
  "prediction": {
    "female": 0.95,
    "male": 0.05
  },
  "duration_seconds": 3.5,
  "processing_time_ms": 120.5
}

Authorizations

x-api-key
string
header
required

API key for authentication. Must start with dd- prefix.

Headers

x-api-key
string
default:dd-00000000000000000000000065c9cbfe
required

API Key

Body

multipart/form-data
file
file
required

Audio file to classify (WAV, MP3, FLAC, OGG)

Response

Successful classification

Gender classification result

predicted_gender
enum<string>
required

Predicted gender of the speaker

Available options:
female,
male
Example:

"female"

confidence
number
required

Confidence score (0.0 to 1.0)

Required range: 0 <= x <= 1
Example:

0.95

prediction
object

Full prediction scores for both genders

duration_seconds
number

Duration of the audio in seconds

Example:

3.5

processing_time_ms
number

Processing time in milliseconds

Example:

120.5