Emotion detection

View as MarkdownOpen in Claude
Pre-Recorded

Enabling emotion detection

Include emotion_detection=true in your Pulse STT query parameters.

Sample request

$curl --request POST \
> --url "https://waves-api.smallest.ai/api/v1/pulse/get_text?model=pulse&language=en&emotion_detection=true" \
> --header "Authorization: Bearer $SMALLEST_API_KEY" \
> --header "Content-Type: audio/wav" \
> --data-binary "@/path/to/audio.wav"

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

Output format & field of interest

The response adds an emotions object containing floating-point scores (0–1) for happiness, sadness, disgust, fear, and anger. Use these fields to monitor sentiment, trigger QA alerts, or enrich customer analytics.

Sample response

1{
2 "transcription": "Hello world.",
3 "emotions": {
4 "happiness": 0.80,
5 "sadness": 0.15,
6 "disgust": 0.02,
7 "fear": 0.03,
8 "anger": 0.05
9 }
10}