Audio Emotion API

Add Speaker

Create a placeholder speaker on an audio file. The new speaker has zero segments — sentence ownership gets assigned via the existing transcript editor. Auto-allocates speaker_id from a monotonic counter persisted on the doc (never reuses ids freed by delete). Cached CSV/PDF reports are invalidated since the report enumerates speakers.

Returns the auto-allocated {speaker_id, name} so the FE can append the new tab without a re-read.

post/v1/audios/{audio_id}/speakers

Request

  • Base URL
    https://api.imentiv.ai (the document declares no server; this is the origin it was published from)
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

audio_idstring required

The unique audio ID.

Request body application/x-www-form-urlencoded

namestring

Speaker name (optional, max 35 chars).

Response

Successful Response

idstring required
speaker_idinteger required
namestring required

Changes

No recorded changes to this operation across all 12 revisions of this API.