Response Structure
Both analysis endpoints (/v1/analyze/cognitive and /v1/analyze/emotion) return an application/json body on success. The top-level structure contains a status indicator and a signals object with the extracted data:
Cognitive Response Example
Emotion Response Example
The exact fields in the
signals object may vary as Dolva’s models evolve. Design your integration to handle additional or missing fields gracefully — use optional chaining or null checks rather than assuming all fields are always present.Cognitive Signals
Cognitive signals describe the speaker’s mental state as reflected in their speech patterns.| Field | Range | Interpretation |
|---|---|---|
cognitive_load | 0.0 – 1.0 | Higher values indicate greater cognitive effort or mental load |
clarity | 0.0 – 1.0 | Higher values indicate clearer, more organized speech patterns |
1.0 indicate stronger expression of that signal. A cognitive_load of 0.8 suggests high mental effort; a value of 0.2 suggests relaxed, low-effort processing.
Emotion Signals
Emotion signals describe the affective properties of the audio.| Field | Range | Interpretation |
|---|---|---|
valence | 0.0 – 1.0 | Emotional positivity: 1.0 = very positive, 0.0 = very negative |
arousal | 0.0 – 1.0 | Energy level: 1.0 = highly activated/energized, 0.0 = calm/subdued |
dominant_emotion | string | The strongest detected emotion (e.g., "calm", "tense", "engaged") |
Using Signals in Your Application
Here are practical patterns for working with the response data:Python