Gender detection

View as Markdown
Pre-Recorded

Enabling gender detection

Append gender_detection=true to your Pulse STT query string.

Sample request

$# Download sample audio (or use your own file)
$curl -sL -o audio.wav "https://github.com/smallest-inc/cookbook/raw/main/speech-to-text/getting-started/samples/audio.wav"
$
$curl --request POST \
> --url "https://api.smallest.ai/waves/v1/pulse/get_text?language=en&gender_detection=true" \
> --header "Authorization: Bearer $SMALLEST_API_KEY" \
> --header "Content-Type: audio/wav" \
> --data-binary "@audio.wav"

Gender detection is currently supported only for Pre-Recorded API. Real-Time API support is coming soon.

Output format & field of interest

Responses include a top-level gender (male, female) field that describes the dominant speaker in the processed segment. Store this field next to each transcript to power demographic analytics or routing logic.

Sample response

1{
2 "status": "success",
3 "transcription": "Hello world.",
4 "gender": "male"
5}