Skip to main content
POST
Classify speaker gender (file upload)

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