> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://dev.hume.ai/expression-measurement/docs/audio/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://dev.hume.ai/_mcp/server. # Audio **The audio endpoints measure emotional expression in speech.** The server detects speech, groups it into utterances, and measures each utterance at a fixed interval. Every measurement has two lists of scores: `expressions`, such as `amusement`, and `voice_attributes`, such as `monotone`, which describe how the voice and the recording sound. ## Upload or realtime Both endpoints return the same measurements for the same audio. They differ in how the audio arrives and how the results come back.
| [Upload](/expression-measurement/docs/audio/upload) | [Realtime](/expression-measurement/docs/audio/realtime) | |
|---|---|---|
| Endpoint | `POST /v1/expression/audio/file` | `WSS /v1/expression/audio/realtime` |
| Audio | A WAV file or headerless samples, up to 25 MB | Headerless samples, streamed as binary frames |
| Results | Every utterance and every measurement in one response | `utterance.start` , `measurement.result` , and `utterance.end` messages while speech continues |
| Configuration | A `config` part | `session.update` , before the first audio frame |
| Recorded as | A run under the `run_id` | A run under the `session_id` |
| Use for | Recorded media, for example to label a dataset or to evaluate generated audio | Media as it happens, for example to route or monitor a live call |