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.
Reading the scores: values closer to
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.Using Signals in Your Application
Here are practical patterns for working with the response data:Python