---
title: "Add Speaker"
method: POST
path: "/v1/audios/{audio_id}/speakers"
tags: ["Audio Emotion API"]
---

# Add Speaker

`POST /v1/audios/{audio_id}/speakers`

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.

## Path parameters

- `audio_id` string, required — The unique audio ID.

## Response `200`

Successful Response

- AddSpeakerResponse — Response model after adding a placeholder speaker to an audio. Attributes: id (str): Audio ID the speaker was added to. speaker_id (int): Auto-allocated id (monotonic; never reuses ids freed by delete). name (str): Persisted name (trimmed; may be empty — FE renders "Speaker {id}" fallback).
  - `id` string, required
  - `speaker_id` integer, required
  - `name` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/imentiv/apis/welcome-to-imentiv-ai.md) · [All operations](https://skmtc.net/imentiv/apis/welcome-to-imentiv-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/imentiv/welcome-to-imentiv-ai/revisions/4a61d1ac9025/schema)
