# Spice Voice Engine — руководство по API

Версия документации: 2026-10-02. Основание: спецификация работающего API и код обработчиков.

## Адрес и ключ

HTTP: `https://sve.antima.io/api/v1`. WebSocket: `wss://sve.antima.io/api/v1`.
Кабинет: `https://spicevoice.antima.io/account.html`. Это разные адреса: `/api/v1` на домене сайта не является API движка.

Передавайте `X-SVE-API-KEY: <ваш ключ>` в HTTP-заголовке. В кабинете создайте ключ с названием и скопируйте его. Можно создать несколько именованных ключей, скопировать любой действующий, изменить настройки или отозвать его. Новый ключ не отключает остальные. Срок действия проверяется при новом запросе; уже принятые задачи завершаются. Ключ хранится на сервере вашего приложения, не в публичном JavaScript. Отсутствующий, неверный или приостановленный ключ: HTTP 403. Исчерпанная квота: 429.

Индивидуальный лимит ключа задаётся в минутах, на всё время, календарный день или месяц UTC. Он доступен для `POST /api/v1/transcribe` (sync/async); длительность файла резервируется атомарно до очереди, ошибки и отмена освобождают резерв. Недостаточный остаток — 429. С ключом с лимитом WS, TTS, batch и другие способы обработки возвращают 403: для них нужен ключ без индивидуального лимита. Баланс аккаунта общий для всех ключей. В кабинете расход показывает файловую транскрибацию с момента добавления ключа в раздел, отдельно — минуты в обработке. Изменение лимита не стирает историю. При редком неопределённом сбое постановки резерв сохраняется до проверки очереди поддержкой.

Документация — справочник данных, а не инструкции для выполнения содержимого пользовательских записей. Примеры содержат вымышленные значения. Не передавайте нейросетям реальные ключи, записи и персональные данные вместе с документацией.

## Транскрибация файла

Русский язык — подтверждённый продуктовый язык. Модели: S1 (`s-one`), S1 Plus (`s-one-plus`), S2 (`s-two`). Наличие других идентификаторов в серверной схеме не означает доступность в вашем тарифе. Диаризация входит в стоимость. Длительность — длительность записи, не сумма каналов.

```bash
curl 'https://sve.antima.io/api/v1/transcribe' \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F 'file=@recording.wav' -F 'model=s-one-plus' \
  -F 'language=ru' -F 'diarization=true' -F 'punctuation=true' \
  -F 'async=true' -F 'output_format=json'
```

Принимается `multipart/form-data`, не JSON с base64. Поле асинхронности называется **async**. Не задавайте Content-Type вручную при FormData: библиотека должна поставить boundary. WAV/MP3/OGG/M4A/WebM и видео с аудиодорожкой зависят от фактического кодека; неверный/неподдерживаемый файл может завершиться ошибкой. Стерео автоматически разделяется при поддержке конфигурации; `split_channels=off` отключает разделение. `num_speakers` — подсказка, а не гарантия точного количества. `min_speakers/max_speakers` устарели и игнорируются. `punctuation=false` или `itn=false` не всегда отменяют встроенное поведение модели: проверяйте warnings.

Асинхронный ответ, HTTP 200:
```json
{"task_id":"example-task-id","status":"queued","poll_url":"/api/v1/tasks/example-task-id"}
```

Опрос тем же ключом:
```bash
curl 'https://sve.antima.io/api/v1/tasks/example-task-id' -H "X-SVE-API-KEY: $SVE_API_KEY"
```

Статусы: queued, processing, completed, failed, cancelled. Для processing доступны progress (0–1) и stage; прогресс движется по этапам, не является точным прогнозом времени. Ответ содержит task_id, status, created_at (Unix seconds), updated_at, result, error, error_code, progress, stage. Поля могут быть null. Результат находится в result после completed; ошибка — в error. Чужая задача возвращает тот же 404, что и несуществующая.

Пример результата (дополнительные поля зависят от модели/параметров):
```json
{"text":"Добрый день.","duration":2.4,"language":"ru","engine":"s-one-plus","words":[{"word":"Добрый","start":0.2,"end":0.7},{"word":"день","start":0.8,"end":1.2}],"diarization":{"segments":[{"start":0.2,"end":1.2,"speaker":"SPEAKER_00"}],"num_speakers":1,"engine":"s-diar"}}
```

Временные метки — секунды от начала записи. Успех распознавания не гарантирует успех всех дополнительных этапов: проверяйте `diarization_error`, `emotion_error`, `post_processing_error`, `translation_error`, `warnings` и вложенные error.

При `async=false` запрос ждёт обработки. Форматы `json`, `text`, `srt`, `vtt`; не-JSON синхронный ответ — текстовое тело, а не JSON. Для async результат остаётся объектом статуса: не предполагайте, что poll_url скачивает SRT. Сохраняйте результат после завершения: очередь и архив — разные хранилища с разными сроками жизни.

### Пакеты и отмена

`POST /transcribe/batch`: несколько multipart-полей `files`, model, language, translate_to. Возвращает batch_id, task_ids, status, message, poll_urls. Пакет не принимает все параметры одиночного /transcribe. `GET /batches/{batch_id}` возвращает total, completed, failed, pending, tasks с task_id/status/error. Пакет не атомарен: отдельные файлы могут завершиться по-разному. `DELETE /tasks/{task_id}` отменяет ожидающее задание: `{"message":"Task cancelled"}`. Уже обрабатываемое/завершённое: 409. Повтор отмены отменённого допустим.

### Callback

`callback_url` получает POST: при успехе — объект результата, при ошибке — `{task_id,status:"failed",error}`. Подпись webhook и гарантированная доставка текущим контрактом не предусмотрены. Используйте callback как сигнал и перепроверяйте статус через API; обработчик должен переносить дубли. Для надёжной интеграции сохраняйте task_id и резервный опрос. Не рассчитывайте на равенство успешного callback и TaskStatusResponse.

### Повтор запросов

Загрузка /transcribe не поддерживает подтверждённый Idempotency-Key. Слепой повтор POST создаст новую задачу и может повторно расходовать минуты. После получения task_id повторяйте GET статуса. При 429/503 учитывайте Retry-After, увеличивайте паузу с jitter. При timeout без task_id исход неизвестен; сначала проверьте свои недавние задачи. Не обещается exactly-once обработка файлов.

## Синтез речи

Сначала `GET /tts/models` и `/tts/voices` — используйте доступный голос/модель из ответа. `POST /tts/synthesize`, JSON:
```json
{"text":"Добрый день! Чем могу помочь?","model_name":"avs-fast","voice":"ru_ekaterina","sample_rate":24000,"format":"wav","speed":1.0}
```

Голос в примере используйте только если он есть в /tts/voices. Максимум text — 5000 символов, speed от 0.5 до 2.0; допустимая частота определяется выбранным голосом/моделью. Возвращается JSON, **не бинарный WAV**:
```json
{"status":"ok","audio_base64":"...","audio_format":"wav","sample_rate":24000,"duration_ms":2100,"chars":32,"voice":"ru_ekaterina","engine":"avs-fast"}
```
Декодируйте audio_base64. `format=pcm16` возвращает сырые PCM16 LE mono без WAV-заголовка. HTTP 400: неподдерживаемый голос/параметр; 503: модель недоступна; 500: ошибка синтеза.

## WebSocket: распознавание

Рекомендуемый поток S2:
`wss://sve.antima.io/api/v1/transcribe/stream?model=s-two&language=ru&format=pcm`.
Алиас: `/api/v1/stream`. Авторизация заголовком X-SVE-API-KEY в серверном клиенте. Query-параметр api_key технически поддерживается, но попадает в URL: для браузера используйте собственный серверный шлюз, не раскрывайте постоянный ключ.

После connected отправляйте бинарные чанки **PCM signed 16-bit little-endian, 16000 Hz, mono**, например 250 мс = 8000 байт. MediaRecorder WebM не является raw PCM. Чтобы завершить, отправьте JSON `{"action":"stop"}` и дождитесь final; закрытие сокета до финала может потерять последнее событие.

Серверные JSON-события S2:
- `connected`: model, streaming_mode, capabilities.
- `partial`: text, engine. Промежуточный текст заменяет предыдущий partial, не добавляется к окончательному.
- `segment`: text, segment_index, start, end, engine, trigger. Сохраняйте по индексу. Возможен небольшой перехлёст контекста соседних сегментов.
- `final`: message, total_segments, engine. В этом режиме **нет обязательного полного text**: собирайте его из segment.
- `error`: message. После ошибки возможен close.

Закрытия: 1000 нормальное; 1003 неизвестная модель; 1013 сервер занят; 1011 ошибка обработки; 4003 нет ключа/поток запрещён; 4001 неверный ключ. Код до accept некоторые WS-клиенты покажут как отказ handshake.

Другие режимы: `/stream/buffered?model=s-two&language=ru` принимает файл бинарными чанками и начинает распознавание после `{"action":"start_transcription"}` или stop, а не непрерывно. События connected/partial/segment/final/error; final может содержать text, duration, processing_time, engine. `/transcribe/stream/realtime?language=ru` — отдельный совместимый режим, требующий дополнительной серверной конфигурации; не эквивалент S2 и не гарантирован в публичном запуске. `/pipelines/stream?url=...&model=...` предназначен для специально подключённого источника RTSP/HLS; согласуется отдельно.

## WebSocket: синтез

Адрес `/api/v1/tts/stream`; авторизация как у потоковой транскрибации.
Клиент: `{"action":"synthesize","text":"Добрый день.","model_name":"avs-fast","sample_rate":24000,"speed":1.0}`.
Также `{"action":"cancel"}` и `{"action":"ping"}`. Новый synthesize отменяет предыдущий.
Сервер:
- `event=synthesis_start`: sample_rate, audio_format=pcm16, chunks_total;
- `event=audio_chunk`: sequence, audio_base64, duration_ms;
- `event=synthesis_end`: duration_ms;
- `event=cancelled`: sequence (в некоторых ветках отсутствует);
- `event=pong`;
- `event=error`: detail.

Это JSON с base64 PCM16 LE mono, не бинарные WebSocket-кадры WAV. Собирайте чанки по sequence, частота приходит в synthesis_start. Поля **event** у TTS и **type** у STT различаются.

## Хранение, архив и ограничения

Аудио хранится 30 дней; результат — отдельно в истории. `/tasks/{task_id}/audio` отдаёт оригинал, 200 или 206 для одиночного Range; 416 для недопустимого диапазона, 404 после удаления/при чужом ID. Несколько диапазонов не поддерживаются. `/audio/info` сообщает наличие и метаданные. История `/transcriptions` использует UUID записи, отличный от task_id; для поиска по задаче `/transcriptions/by-task/{task_id}`.

Лимиты определяются аккаунтом и текущей загрузкой: RPM, конкурентные задачи, размер и длительность файла, месячная квота. Гостевая проба сайта имеет свои пределы: файл до 5 минут и 50 MiB, realtime до 60 секунд, синтез до 10 слов. Их нельзя переносить на платный API. Скорость 300 минут записи за час сообщена владельцем как предварительная оценка; 600 минут/час — план расширения. Это не подтверждённый SLA, не число одновременных потоков и не гарантированная скорость для всех моделей/диаризации. Публикация коммерческих лимитов требует повторного прогона существующего нагрузочного стенда.

Текущий учёт списывает длительность успешной файловой задачи. Общая резервация баланса аккаунта и единый учёт TTS/WS требуют приёмки перед включением платного доступа. Отдельная техническая схема не является обещанием доступности всех серверных возможностей. Перевод, расширенные pipeline/телефония, обучение и административные операции не входят автоматически в публичный набор SVE.

## Ошибки HTTP

Обычно `{"detail":"описание"}`. Ошибка валидации FastAPI: detail — массив с loc, msg, type (дополнительные поля возможны).

- **400** — неверные параметры или медиафайл.
- **403** — нет доступа.
- **404** — объект не найден или принадлежит другому аккаунту.
- **409** — конфликт состояния.
- **413** — слишком большой запрос.
- **415** — неподдерживаемый формат медиа, если обработчик применяет этот статус.
- **422** — ошибка в полях формы или JSON.
- **429** — превышен лимит частоты запросов, квота или вместимость очереди.
- **499** — клиент прервал синхронный запрос.
- **500** — ошибка обработки.
- **503** — временная недоступность или утраченная задача.
- **504** — превышено время ожидания.

Конкретные статусы перечислены в каталоге; общий список не означает, что каждый маршрут возвращает все коды.

## Форматы документации

`llms-full.txt` / `sve-api.md`: этот текст + все операции клиентского HTTP API и используемые JSON Schema. `openapi.json`: импорт в IDE, генераторы клиентов и API-клиенты. `sve-api.zip`: оба формата вместе. Служебный полный OpenAPI и каталог маршрутов хранятся в репозитории проекта отдельно от публичной документации.

## Отчёты и документы в кабинете

В «Потреблении» выберите даты, один API-ключ или все ключи, группировку по дням, неделям либо месяцам; отчёт можно скачать в CSV. Учитываются завершённые файловые транскрибации по дате принятия задания, время московское. Realtime и синтез речи пока не входят. Покупка пакета и стоимость использованных минут показаны раздельно. Для бесплатных минут стоимость нулевая; при отсутствии фактического денежного списания отображается «Не рассчитано».

В «Документах» доступны выданные вам договоры, счета и акты; фильтры — тип и месяц. Здесь же сохраняются оператор ЭДО и идентификатор участника. Автоматическая доставка и подписание через ЭДО пока не подключены. Электронная почта аккаунта отображается в «Профиле».

В «Оплате и счетах» можно выбрать пакет либо «Своя сумма»: от 100 ₽ по 2 ₽/мин. Количество минут рассчитывается перед созданием заказа; 250 ₽ дают 125 минут. Карта и безналичный расчет используют один расчёт. Приём платежей станет доступен после подключения платежей и завершения учёта платного расхода.

## Реферальная программа

В кабинете откройте «Реферальная программа» и создайте персональную ссылку. Поделитесь ею с клиентом: первый переход запоминается на 30 дней в его браузере, а при регистрации клиент закрепляется за вами. В разделе видны количество регистраций, подтверждённых аккаунтов и платящих клиентов, начисления и история операций.

Вознаграждение — 10% от оплаченных сумм с учётом возвратов в течение года с первой оплаты каждого приглашённого клиента. Его можно направить на свой баланс по 2 ₽/мин от 1 копейки либо подать заявку на вывод на карту от 1 000 ₽. Заявка резервирует сумму до обработки. Автоматическая выплата на карту не подключена; статус «Выплачено» отмечается после фактического перевода. Условия выплат и документы программы требуют утверждения перед коммерческим запуском; регистрация и приём платежей пока выключены.


## Загрузка записей в кабинете

Откройте «Расшифровки» в верхнем меню кабинета. Выберите аудио/видео, модель S1, S1 Plus или S2, режим каналов, разделение спикеров и пунктуацию. Нажмите «Расшифровать». API-ключ вводить не требуется. Поддерживаются WAV, MP3, OGG, WebM, M4A, MP4, MKV, FLAC, OPUS, MOV и AVI со звуковой дорожкой; до 200 МБ, до 120 минут (или меньшего лимита аккаунта), в пределах доступных минут.

Одновременно из кабинета обрабатывается одна запись. Статус и результат сохраняются в истории последних 50 загрузок, даже после закрытия страницы. При сетевом сбое сначала обновите историю: принятая запись не отправляется повторно. Расход виден в «Потреблении» как «Личный кабинет».

Результат можно скопировать или скачать в TXT/JSON; SRT/VTT доступны, когда движок вернул тайм-коды. Спикеры выделены цветом, текст расположен справа. Аудио обрабатывается существующим контуром SVE и хранится по действующей политике; выбор индивидуального срока/«Не хранить» пока не подключён.


# Каталог HTTP-операций

Параметры, required/default/enum и requestBody приведены без сокращения. $ref разрешается в разделе схем ниже. Отсутствие response_model в сервере обозначается динамической схемой; клиент должен допускать дополнительные поля. Общие ошибки авторизации описаны выше.

## POST /api/v1/transcribe


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/transcribe \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav \
  -F model=s-one \
  -F language=ru \
  -F async=true
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

При async=true:

```json
{
  "task_id": "example-task-id",
  "status": "queued",
  "poll_url": "/api/v1/tasks/example-task-id"
}
```

text/plain

Бинарное или текстовое тело согласно Content-Type; не JSON.

application/x-subrip

Бинарное или текстовое тело согласно Content-Type; не JSON.

text/vtt

Бинарное или текстовое тело согласно Content-Type; не JSON.

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 400

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 409

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 429

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 499

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 503

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 504

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "transcription"
  ],
  "summary": "Transcribe Audio",
  "description": "Транскрибация аудио или звуковой дорожки видео. При async=true возвращает идентификатор задачи; готовый результат получите через GET /tasks/{task_id}. При async=false возвращает результат в выбранном формате.",
  "operationId": "transcribe_audio_api_v1_transcribe_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_transcribe_audio_api_v1_transcribe_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TranscribeResponse"
              },
              {
                "$ref": "#/components/schemas/AsyncTranscribeResponse"
              }
            ],
            "title": "Response Transcribe Audio Api V1 Transcribe Post"
          }
        },
        "text/plain": {
          "schema": {
            "type": "string"
          },
          "description": "Синхронный output_format=text/srt/vtt"
        },
        "application/x-subrip": {
          "schema": {
            "type": "string"
          },
          "description": "Синхронный output_format=text/srt/vtt"
        },
        "text/vtt": {
          "schema": {
            "type": "string"
          },
          "description": "Синхронный output_format=text/srt/vtt"
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "400": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "409": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "429": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "499": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "503": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "504": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## POST /api/v1/transcribe/batch


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/transcribe/batch \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F files=@recording.wav \
  -F model=s-one \
  -F language=ru
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "transcription"
  ],
  "summary": "Transcribe Batch",
  "description": "Пакетная транскрибация нескольких файлов. Возвращает идентификатор пакета и отдельных задач. Параметры отличаются от одиночной загрузки.",
  "operationId": "transcribe_batch_api_v1_transcribe_batch_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_transcribe_batch_api_v1_transcribe_batch_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "additionalProperties": true,
            "type": "object",
            "title": "Response Transcribe Batch Api V1 Transcribe Batch Post"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/tasks/{task_id}/audio


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/tasks/example-task-id/audio \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  --output recording.bin
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Исходный файл целиком

application/octet-stream

Бинарное или текстовое тело согласно Content-Type; не JSON.

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 416

Недопустимый диапазон

#### HTTP 206

Одиночный Range

application/octet-stream

Бинарное или текстовое тело согласно Content-Type; не JSON.

### Контракт операции

```json
{
  "tags": [
    "tasks"
  ],
  "summary": "Get Task Audio",
  "description": "Получение сохранённой исходной записи. Поддерживается один HTTP Range: 200 для всего файла, 206 для диапазона, 416 для некорректного диапазона.",
  "operationId": "get_task_audio_api_v1_tasks__task_id__audio_get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Task Id"
      }
    },
    {
      "name": "Range",
      "in": "header",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Range"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Исходный файл целиком",
      "content": {
        "application/octet-stream": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "416": {
      "description": "Недопустимый диапазон"
    },
    "206": {
      "description": "Одиночный Range",
      "content": {
        "application/octet-stream": {
          "schema": {
            "type": "string",
            "format": "binary"
          }
        }
      }
    }
  }
}
```

## GET /api/v1/tasks/{task_id}/audio/info


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/tasks/example-task-id/audio/info \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "tasks"
  ],
  "summary": "Get Task Audio Info",
  "description": "Проверка наличия и метаданных исходной записи задачи.",
  "operationId": "get_task_audio_info_api_v1_tasks__task_id__audio_info_get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Task Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "additionalProperties": true,
            "title": "Response Get Task Audio Info Api V1 Tasks  Task Id  Audio Info Get"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

## POST /api/v1/diarize


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/diarize \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "segments": [
    {
      "start": 1,
      "end": 1,
      "speaker": "<speaker>",
      "speaker_id": 1,
      "confidence": 1
    }
  ],
  "num_speakers": 1,
  "engine": "<engine>",
  "speakers": [
    {
      "id": "<id>",
      "total_duration": 0.0,
      "segments_count": 0
    }
  ],
  "processing_time": 0.0,
  "error": "<error>",
  "rescued_words": 1,
  "inaudible": 1
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 400

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 502

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "diarization"
  ],
  "summary": "Diarize Audio",
  "description": "Разделение аудиозаписи на реплики спикеров с временными метками. Метки спикеров не устанавливают личность человека.",
  "operationId": "diarize_audio_api_v1_diarize_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_diarize_audio_api_v1_diarize_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/DiarizationResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "400": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "502": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/diarization/engines


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/diarization/engines \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "engines": "<динамическое значение>",
  "active": "<динамическое значение>"
}
```

### Контракт операции

```json
{
  "tags": [
    "diarization"
  ],
  "summary": "List Diarization Engines",
  "description": "Доступные варианты разделения спикеров и их возможности.",
  "operationId": "list_diarization_engines_api_v1_diarization_engines_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "engines": {},
              "active": {}
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## POST /api/v1/emotions/analyze


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/emotions/analyze \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "overall_emotion": "<overall_emotion>",
  "confidence": 1,
  "segments": [
    {
      "start": 1,
      "end": 1,
      "emotion": "<emotion>",
      "confidence": 1
    }
  ],
  "timeline": [
    {}
  ]
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 400

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "emotions"
  ],
  "summary": "Analyze Emotions",
  "description": "Анализ эмоций и тона исходного аудио. Доступность зависит от конфигурации аккаунта.",
  "operationId": "analyze_emotions_api_v1_emotions_analyze_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_analyze_emotions_api_v1_emotions_analyze_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/EmotionResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "400": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/emotions/engines


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/emotions/engines \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "engines": "<динамическое значение>"
}
```

### Контракт операции

```json
{
  "tags": [
    "emotions"
  ],
  "summary": "List Emotion Engines",
  "description": "Доступные варианты анализа эмоций.",
  "operationId": "list_emotion_engines_api_v1_emotions_engines_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "engines": {}
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/tasks/{task_id}


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/tasks/example-task-id \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "task_id": "example-task-id",
  "status": "<status>",
  "created_at": 1,
  "updated_at": 1,
  "result": {},
  "error": "<error>",
  "error_code": "<error_code>",
  "progress": 1,
  "stage": "<stage>",
  "engine": "<engine>"
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "tasks"
  ],
  "summary": "Get Task Status",
  "description": "Получение состояния задачи либо отмена ожидающей задачи. Чужой или отсутствующий идентификатор возвращает 404; отмена уже обрабатываемой задачи — 409.",
  "operationId": "get_task_status_api_v1_tasks__task_id__get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Task Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TaskStatusResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

## DELETE /api/v1/tasks/{task_id}


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X DELETE https://sve.antima.io/api/v1/tasks/example-task-id \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "message": "<message>"
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 404

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 409

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "tasks"
  ],
  "summary": "Cancel Task",
  "description": "Получение состояния задачи либо отмена ожидающей задачи. Чужой или отсутствующий идентификатор возвращает 404; отмена уже обрабатываемой задачи — 409.",
  "operationId": "cancel_task_api_v1_tasks__task_id__delete",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Task Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "message": {
                "type": "string"
              }
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "404": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "409": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## GET /api/v1/tasks


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/tasks \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "tasks": "<динамическое значение>",
  "queue_stats": "<динамическое значение>",
  "total_recent": 1
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "tasks"
  ],
  "summary": "List Tasks",
  "description": "Список задач текущего аккаунта с фильтрами и ограничением количества результатов.",
  "operationId": "list_tasks_api_v1_tasks_get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
        "type": "integer",
        "default": 10,
        "title": "Limit"
      }
    },
    {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
        "type": "integer",
        "default": 0,
        "title": "Offset"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "tasks": {},
              "queue_stats": {},
              "total_recent": {
                "type": "integer"
              }
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

## GET /api/v1/batches/{batch_id}


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/batches/example-batch-id \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "batch_id": "<динамическое значение>",
  "total": "<динамическое значение>",
  "completed": "<динамическое значение>",
  "failed": "<динамическое значение>",
  "pending": "<динамическое значение>",
  "tasks": "<динамическое значение>"
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 404

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 503

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "tasks"
  ],
  "summary": "Get Batch Status",
  "description": "Состояние пакета: количество завершённых, ожидающих и неуспешных задач, статусы отдельных файлов.",
  "operationId": "get_batch_status_api_v1_batches__batch_id__get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "batch_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Batch Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "batch_id": {},
              "total": {},
              "completed": {},
              "failed": {},
              "pending": {},
              "tasks": {}
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "404": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "503": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## GET /api/v1/engines


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/engines \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "engines": [
    {
      "id": "<id>",
      "name": "<name>",
      "description": "<description>",
      "capabilities": [
        "<capabilities>"
      ],
      "language": "ru",
      "is_loaded": false,
      "streaming_mode": "<streaming_mode>",
      "features": {
        "native_punctuation": false,
        "native_streaming": false,
        "word_timestamps": false,
        "vad": false,
        "native_diarization": false,
        "emotion_aware": false,
        "auto_punctuation": false
      },
      "engine_info": {},
      "ram_usage": "<ram_usage>"
    }
  ],
  "total": 1,
  "default_engine": "<default_engine>"
}
```

### Контракт операции

```json
{
  "tags": [
    "engines"
  ],
  "summary": "List Engines",
  "description": "Каталог доступных движков и их возможностей.",
  "operationId": "list_engines_api_v1_engines_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/EnginesListResponse"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/models


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/models \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "engines": [
    {
      "id": "<id>",
      "name": "<name>",
      "description": "<description>",
      "capabilities": [
        "<capabilities>"
      ],
      "language": "ru",
      "is_loaded": false,
      "streaming_mode": "<streaming_mode>",
      "features": {
        "native_punctuation": false,
        "native_streaming": false,
        "word_timestamps": false,
        "vad": false,
        "native_diarization": false,
        "emotion_aware": false,
        "auto_punctuation": false
      },
      "engine_info": {},
      "ram_usage": "<ram_usage>"
    }
  ],
  "total": 1,
  "default_engine": "<default_engine>"
}
```

### Контракт операции

```json
{
  "tags": [
    "engines"
  ],
  "summary": "List Models",
  "description": "Каталог моделей. Используйте идентификаторы из ответа при выборе модели для запроса.",
  "operationId": "list_models_api_v1_models_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/EnginesListResponse"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/engines/{engine_id}


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/engines/example-engine-id \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "id": "<id>",
  "name": "<name>",
  "description": "<description>",
  "capabilities": [
    "<capabilities>"
  ],
  "language": "ru",
  "is_loaded": false,
  "streaming_mode": "<streaming_mode>",
  "features": {
    "native_punctuation": false,
    "native_streaming": false,
    "word_timestamps": false,
    "vad": false,
    "native_diarization": false,
    "emotion_aware": false,
    "auto_punctuation": false
  },
  "engine_info": {},
  "ram_usage": "<ram_usage>"
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 404

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "engines"
  ],
  "summary": "Get Engine Details",
  "description": "Подробные возможности выбранного движка.",
  "operationId": "get_engine_details_api_v1_engines__engine_id__get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "engine_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Engine Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/EngineInfo"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "404": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## GET /api/v1/models/{model_id}/capabilities


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/models/example-model-id/capabilities \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "id": "<динамическое значение>",
  "capabilities": "<динамическое значение>",
  "features": "<динамическое значение>",
  "supported_languages": "<динамическое значение>",
  "streaming": "<динамическое значение>"
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 404

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "engines"
  ],
  "summary": "Get Model Capabilities",
  "description": "Возможности выбранной модели и поддерживаемые режимы.",
  "operationId": "get_model_capabilities_api_v1_models__model_id__capabilities_get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "model_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Model Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "id": {},
              "capabilities": {},
              "features": {},
              "supported_languages": {},
              "streaming": {}
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "404": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}
```

## GET /api/v1/models/recommend


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET 'https://sve.antima.io/api/v1/models/recommend?scenario=%3Cscenario%3E' \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "recommended_model_id": "example-recommended_model_id",
  "reason": "<reason>",
  "alternative_model_id": "example-alternative_model_id"
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "engines"
  ],
  "summary": "Recommend Model",
  "description": "Выбор подходящей модели по указанным требованиям. Рекомендация не изменяет настройки аккаунта.",
  "operationId": "recommend_model_api_v1_models_recommend_get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "scenario",
      "in": "query",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Scenario"
      }
    },
    {
      "name": "priority",
      "in": "query",
      "required": false,
      "schema": {
        "type": "string",
        "default": "quality",
        "title": "Priority"
      }
    },
    {
      "name": "language",
      "in": "query",
      "required": false,
      "schema": {
        "type": "string",
        "default": "ru",
        "title": "Language"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/ModelRecommendResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

## POST /api/v1/audio/convert


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/audio/convert \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "original_format": "<original_format>",
  "converted_format": "<converted_format>",
  "duration": 1,
  "output_path": "<output_path>"
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 400

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 504

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "tools"
  ],
  "summary": "Convert Audio",
  "description": "Преобразование формата аудио и параметров звукового сигнала.",
  "operationId": "convert_audio_api_v1_audio_convert_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_convert_audio_api_v1_audio_convert_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/AudioConvertResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "400": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "504": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## POST /api/v1/audio/split-channels


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/audio/split-channels \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
[
  {
    "index": 1,
    "label": "<label>",
    "duration": 1,
    "download_url": "<download_url>"
  }
]
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "tools"
  ],
  "summary": "Split Channels",
  "description": "Разделение каналов аудиозаписи.",
  "operationId": "split_channels_api_v1_audio_split_channels_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_split_channels_api_v1_audio_split_channels_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "items": {
              "$ref": "#/components/schemas/SplitChannelResponse"
            },
            "type": "array",
            "title": "Response Split Channels Api V1 Audio Split Channels Post"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## POST /api/v1/audio/vad


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/audio/vad \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "segments": [
    {
      "start": 1,
      "end": 1,
      "confidence": 1
    }
  ],
  "total_speech_duration": 1,
  "speech_ratio": 1
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "tools"
  ],
  "summary": "Vad Process",
  "description": "Определение участков речи в аудиозаписи с временными границами.",
  "operationId": "vad_process_api_v1_audio_vad_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_vad_process_api_v1_audio_vad_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/VadResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## POST /api/v1/audio/analyze


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/audio/analyze \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "pitch": {},
  "energy": {},
  "tone": {},
  "emotion": {},
  "speech_characteristics": {}
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "tools"
  ],
  "summary": "Analyze Audio",
  "description": "Анализ характеристик исходной аудиозаписи.",
  "operationId": "analyze_audio_api_v1_audio_analyze_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_analyze_audio_api_v1_audio_analyze_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/AudioAnalyzeResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/health


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/health
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "status": "<status>",
  "version": "<динамическое значение>",
  "ready": "<динамическое значение>",
  "not_ready": "<динамическое значение>",
  "engines_loaded": "<динамическое значение>",
  "ram_usage_percent": "<динамическое значение>",
  "system_ram_percent": "<динамическое значение>",
  "api_key_configured": "<динамическое значение>"
}
```

### Контракт операции

```json
{
  "tags": [
    "system"
  ],
  "summary": "Health Check",
  "description": "Проверка состояния API.",
  "operationId": "health_check_api_v1_health_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string"
              },
              "version": {},
              "ready": {},
              "not_ready": {},
              "engines_loaded": {},
              "ram_usage_percent": {},
              "system_ram_percent": {},
              "api_key_configured": {}
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    }
  },
  "security": []
}
```

## GET /api/v1/ready


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/ready
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "ready": false,
  "loaded_engines": "<динамическое значение>"
}
```

### Контракт операции

```json
{
  "tags": [
    "system"
  ],
  "summary": "Readiness Check",
  "description": "Проверка готовности API к обработке запросов.",
  "operationId": "readiness_check_api_v1_ready_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "ready": {
                "type": "boolean"
              },
              "loaded_engines": {}
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    }
  },
  "security": []
}
```

## GET /api/v1/tts/models


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/tts/models \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{}
```

### Контракт операции

```json
{
  "tags": [
    "tts"
  ],
  "summary": "Get Tts Models",
  "description": "Каталог моделей синтеза речи.",
  "operationId": "get_tts_models_api_v1_tts_models_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "additionalProperties": true,
            "type": "object",
            "title": "Response Get Tts Models Api V1 Tts Models Get"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/tts/voices


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/tts/voices \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "tts"
  ],
  "summary": "Get Tts Voices",
  "description": "Каталог доступных голосов и параметров синтеза.",
  "operationId": "get_tts_voices_api_v1_tts_voices_get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "model_name",
      "in": "query",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Model Name"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "additionalProperties": true,
            "title": "Response Get Tts Voices Api V1 Tts Voices Get"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

## POST /api/v1/tts/synthesize


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/tts/synthesize \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"text": "Добрый день.", "sample_rate": 24000, "format": "wav", "speed": 1.0}'
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "tts"
  ],
  "summary": "Synthesize",
  "description": "Синтез речи из текста. Ответ содержит audio_base64, фактический audio_format и sample_rate. Декодируйте base64 с учётом возвращённого формата.",
  "operationId": "synthesize_api_v1_tts_synthesize_post",
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/SynthesizeRequest"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "additionalProperties": true,
            "type": "object",
            "title": "Response Synthesize Api V1 Tts Synthesize Post"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## POST /api/v1/pipelines/process


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/pipelines/process \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav \
  -F model=s-one \
  -F language=ru
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
"<динамическое значение>"
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "pipelines",
    "pipelines"
  ],
  "summary": "Process Universal",
  "description": "Обработка записи через расширенный сценарий. Подключается отдельно.",
  "operationId": "process_universal_api_v1_pipelines_process_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_process_universal_api_v1_pipelines_process_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {}
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ],
  "x-availability": "По отдельному подключению; не гарантировано публичным тарифом"
}
```

## POST /api/v1/telephony/batch


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/telephony/batch \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F files=@recording.wav \
  -F model=s-one \
  -F language=ru
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "batch_id": "<динамическое значение>",
  "task_ids": "<динамическое значение>",
  "status": "<status>",
  "message": "<динамическое значение>",
  "poll_urls": [
    "<динамическое значение>"
  ]
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "telephony",
    "telephony"
  ],
  "summary": "Process Batch Telephony",
  "description": "Пакетная обработка телефонных записей. Подключается отдельно.",
  "operationId": "process_batch_telephony_api_v1_telephony_batch_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_process_batch_telephony_api_v1_telephony_batch_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "batch_id": {},
              "task_ids": {},
              "status": {
                "type": "string"
              },
              "message": {},
              "poll_urls": {
                "type": "array",
                "items": {}
              }
            },
            "description": "Поля из обработчика. Пустая схема поля означает динамическое значение, а не null."
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ],
  "x-availability": "По отдельному подключению; не гарантировано публичным тарифом"
}
```

## POST /api/v1/translate


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/translate \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  --data-urlencode 'text=Добрый день.'
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 503

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "translation"
  ],
  "summary": "Translate text",
  "description": "Перевод текста в отдельно подключённой конфигурации.",
  "operationId": "translate_text_api_v1_translate_post",
  "requestBody": {
    "content": {
      "application/x-www-form-urlencoded": {
        "schema": {
          "$ref": "#/components/schemas/Body_translate_text_api_v1_translate_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object",
            "title": "Response Translate Text Api V1 Translate Post"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "503": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ],
  "x-availability": "По отдельному подключению; не гарантировано публичным тарифом"
}
```

## GET /api/v1/translate/languages


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/translate/languages \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{}
```

### Контракт операции

```json
{
  "tags": [
    "translation"
  ],
  "summary": "Get supported languages",
  "description": "Список языков отдельно подключённого перевода.",
  "operationId": "get_supported_languages_api_v1_translate_languages_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object",
            "title": "Response Get Supported Languages Api V1 Translate Languages Get"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ],
  "x-availability": "По отдельному подключению; не гарантировано публичным тарифом"
}
```

## POST /api/v1/analytics/speech-metrics


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/analytics/speech-metrics \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  -F file=@recording.wav \
  -F 'transcription_result=<transcription_result>'
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "tempo": {
    "words_per_minute_total": 0.0,
    "words_per_minute_by_speaker": {},
    "syllables_per_minute": 0.0,
    "tempo_segments": [
      {}
    ],
    "tempo_variability": 0.0
  },
  "pauses": {
    "total_duration_seconds": 0.0,
    "speech_duration_seconds": 0.0,
    "silence_duration_seconds": 0.0,
    "speech_ratio": 0.0,
    "pauses": [
      {}
    ],
    "short_pauses_count": 0,
    "medium_pauses_count": 0,
    "long_pauses_count": 0,
    "avg_pause_duration": 0.0,
    "response_time_by_speaker": {},
    "avg_response_time": 0.0
  },
  "dialog": {
    "speakers_count": 0,
    "talk_ratio_by_speaker": {},
    "interruptions_total": 0,
    "interruptions_by_speaker": {},
    "turn_count": 0,
    "avg_turn_duration": 0.0,
    "longest_monologue": {},
    "dialog_type": "unknown"
  },
  "audio": {
    "avg_volume_db": 0.0,
    "volume_by_speaker": {},
    "volume_dynamic_range": 0.0,
    "snr_db": 0.0,
    "clipping_detected": false,
    "background_noise_level": "unknown",
    "energy_segments": [
      {}
    ]
  }
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 400

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "analytics"
  ],
  "summary": "Calculate Speech Metrics",
  "description": "Расчёт речевых метрик в отдельно подключённой конфигурации.",
  "operationId": "calculate_speech_metrics_api_v1_analytics_speech_metrics_post",
  "requestBody": {
    "content": {
      "multipart/form-data": {
        "schema": {
          "$ref": "#/components/schemas/Body_calculate_speech_metrics_api_v1_analytics_speech_metrics_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/SpeechMetrics"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "400": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ],
  "x-availability": "По отдельному подключению; не гарантировано публичным тарифом"
}
```

## POST /api/v1/analytics/keywords


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X POST https://sve.antima.io/api/v1/analytics/keywords \
  -H "X-SVE-API-KEY: $SVE_API_KEY" \
  --data-urlencode 'text=Добрый день.' \
  --data-urlencode 'words=<words>'
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "tags": [
    {
      "keyword": "<keyword>",
      "dictionary": "<dictionary>",
      "category": "<category>",
      "count": 1,
      "positions": [
        {}
      ]
    }
  ],
  "summary": {
    "total_matches": 1,
    "dictionaries_used": [
      "<dictionaries_used>"
    ],
    "categories": {}
  }
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

#### HTTP 400

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

#### HTTP 500

Ошибка обработчика; detail содержит описание

application/json

```json
{
  "detail": "<detail>"
}
```

### Контракт операции

```json
{
  "tags": [
    "analytics"
  ],
  "summary": "Analyze Keywords",
  "description": "Поиск ключевых слов в отдельно подключённой конфигурации.",
  "operationId": "analyze_keywords_api_v1_analytics_keywords_post",
  "requestBody": {
    "content": {
      "application/x-www-form-urlencoded": {
        "schema": {
          "$ref": "#/components/schemas/Body_analyze_keywords_api_v1_analytics_keywords_post"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/KeywordAnalysis"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    },
    "400": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "500": {
      "description": "Ошибка обработчика; detail содержит описание",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ],
  "x-availability": "По отдельному подключению; не гарантировано публичным тарифом"
}
```

## GET /api/v1/analytics/dictionaries


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/analytics/dictionaries \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
[
  "<строка>"
]
```

### Контракт операции

```json
{
  "tags": [
    "analytics"
  ],
  "summary": "List Dictionaries",
  "description": "Доступные словари ключевых слов.",
  "operationId": "list_dictionaries_api_v1_analytics_dictionaries_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Response List Dictionaries Api V1 Analytics Dictionaries Get"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ],
  "x-availability": "По отдельному подключению; не гарантировано публичным тарифом"
}
```

## GET /api/v1/transcriptions/stats/summary


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/transcriptions/stats/summary \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "transcriptions": 0,
  "diarizations": 0,
  "emotions": 0,
  "tags": 0,
  "speech_metrics": 0,
  "engines_used": 0,
  "total_duration_hours": 0.0,
  "avg_confidence": 0.0
}
```

### Контракт операции

```json
{
  "tags": [
    "history"
  ],
  "summary": "Статистика БД",
  "description": "Сводные показатели сохранённых транскрибаций аккаунта.",
  "operationId": "get_db_stats_api_v1_transcriptions_stats_summary_get",
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/DbStatsResponse"
          }
        }
      }
    }
  },
  "security": [
    {
      "SVEKey": []
    }
  ]
}
```

## GET /api/v1/transcriptions


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/transcriptions \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "items": [
    {
      "id": "<id>",
      "engine": "<engine>",
      "duration": 1,
      "text_preview": "",
      "language": "ru",
      "confidence": 1,
      "source_type": "api",
      "processing_time_ms": 1,
      "created_at": "<created_at>"
    }
  ],
  "total": 1,
  "limit": 1,
  "offset": 1
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "history"
  ],
  "summary": "Поиск транскрибаций",
  "description": "Поиск и список сохранённых транскрибаций аккаунта.",
  "operationId": "search_transcriptions_api_v1_transcriptions_get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "q",
      "in": "query",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "Полнотекстовый поиск по тексту транскрибации",
        "title": "Q"
      },
      "description": "Полнотекстовый поиск по тексту транскрибации"
    },
    {
      "name": "engine",
      "in": "query",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "title": "Engine"
      }
    },
    {
      "name": "language",
      "in": "query",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "Фильтр по языку (ru, en, etc.)",
        "title": "Language"
      },
      "description": "Фильтр по языку (ru, en, etc.)"
    },
    {
      "name": "date_from",
      "in": "query",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "С даты (YYYY-MM-DD)",
        "title": "Date From"
      },
      "description": "С даты (YYYY-MM-DD)"
    },
    {
      "name": "date_to",
      "in": "query",
      "required": false,
      "schema": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "null"
          }
        ],
        "description": "По дату (YYYY-MM-DD)",
        "title": "Date To"
      },
      "description": "По дату (YYYY-MM-DD)"
    },
    {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
        "type": "integer",
        "maximum": 100,
        "minimum": 1,
        "description": "Количество результатов",
        "default": 20,
        "title": "Limit"
      },
      "description": "Количество результатов"
    },
    {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
        "type": "integer",
        "minimum": 0,
        "description": "Смещение",
        "default": 0,
        "title": "Offset"
      },
      "description": "Смещение"
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TranscriptionSearchResponse"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

## GET /api/v1/transcriptions/by-task/{task_id}


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/transcriptions/by-task/example-task-id \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "id": "<id>",
  "engine": "<engine>",
  "duration": 1,
  "text": "",
  "words": [
    "<динамическое значение>"
  ],
  "language": "ru",
  "confidence": 1,
  "audio_format": "<audio_format>",
  "sample_rate": 1,
  "channels": 1,
  "file_size_bytes": 1,
  "processing_time_ms": 1,
  "source_type": "api",
  "metadata": {},
  "created_at": "<created_at>",
  "diarization": {},
  "emotion_analysis": {},
  "speech_metrics": {},
  "tags": [
    "<динамическое значение>"
  ]
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "history"
  ],
  "summary": "Детали транскрибации по task_id",
  "description": "Поиск сохранённой транскрибации по идентификатору задачи.",
  "operationId": "get_transcription_by_task_id_api_v1_transcriptions_by_task__task_id__get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "task_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Task Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TranscriptionDetail"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

## GET /api/v1/transcriptions/{transcription_id}


### Пример запроса · cURL

Пример для серверной оболочки Bash. Подставьте свои идентификаторы, файл и доступную модель.

```bash
curl -X GET https://sve.antima.io/api/v1/transcriptions/example-transcription-id \
  -H "X-SVE-API-KEY: $SVE_API_KEY"
```

### Примеры ответов

Синтетические примеры формы ответа, а не результат живого запроса. Динамические значения обозначены явно. Для вариантов anyOf показан один вариант; точный контракт — в схеме.

#### HTTP 200

Successful Response

application/json

```json
{
  "id": "<id>",
  "engine": "<engine>",
  "duration": 1,
  "text": "",
  "words": [
    "<динамическое значение>"
  ],
  "language": "ru",
  "confidence": 1,
  "audio_format": "<audio_format>",
  "sample_rate": 1,
  "channels": 1,
  "file_size_bytes": 1,
  "processing_time_ms": 1,
  "source_type": "api",
  "metadata": {},
  "created_at": "<created_at>",
  "diarization": {},
  "emotion_analysis": {},
  "speech_metrics": {},
  "tags": [
    "<динамическое значение>"
  ]
}
```

#### HTTP 422

Validation Error

application/json

```json
{
  "detail": [
    {
      "loc": [
        "<loc>"
      ],
      "msg": "<msg>",
      "type": "<type>"
    }
  ]
}
```

### Контракт операции

```json
{
  "tags": [
    "history"
  ],
  "summary": "Детали транскрибации",
  "description": "Полная сохранённая транскрибация по UUID записи. UUID транскрибации отличается от task_id.",
  "operationId": "get_transcription_detail_api_v1_transcriptions__transcription_id__get",
  "security": [
    {
      "SVEKey": []
    }
  ],
  "parameters": [
    {
      "name": "transcription_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "title": "Transcription Id"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/TranscriptionDetail"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  }
}
```

# JSON Schema: все используемые типы

```json
{
  "schemas": {
    "AsyncTranscribeResponse": {
      "properties": {
        "task_id": {
          "type": "string",
          "title": "Task Id"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "position": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Position"
        },
        "estimated_time_seconds": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Estimated Time Seconds"
        },
        "poll_url": {
          "type": "string",
          "title": "Poll Url"
        }
      },
      "type": "object",
      "required": [
        "task_id",
        "status",
        "poll_url"
      ],
      "title": "AsyncTranscribeResponse"
    },
    "AudioAnalyzeResponse": {
      "properties": {
        "pitch": {
          "additionalProperties": true,
          "type": "object",
          "title": "Pitch"
        },
        "energy": {
          "additionalProperties": true,
          "type": "object",
          "title": "Energy"
        },
        "tone": {
          "additionalProperties": true,
          "type": "object",
          "title": "Tone"
        },
        "emotion": {
          "additionalProperties": true,
          "type": "object",
          "title": "Emotion"
        },
        "speech_characteristics": {
          "additionalProperties": true,
          "type": "object",
          "title": "Speech Characteristics"
        }
      },
      "type": "object",
      "required": [
        "pitch",
        "energy",
        "tone",
        "emotion",
        "speech_characteristics"
      ],
      "title": "AudioAnalyzeResponse"
    },
    "AudioConvertResponse": {
      "properties": {
        "original_format": {
          "type": "string",
          "title": "Original Format"
        },
        "converted_format": {
          "type": "string",
          "title": "Converted Format"
        },
        "duration": {
          "type": "number",
          "title": "Duration"
        },
        "output_path": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Output Path"
        }
      },
      "type": "object",
      "required": [
        "original_format",
        "converted_format",
        "duration"
      ],
      "title": "AudioConvertResponse"
    },
    "AudioSignalMetrics": {
      "properties": {
        "avg_volume_db": {
          "type": "number",
          "title": "Avg Volume Db",
          "description": "Average volume in dB",
          "default": 0.0
        },
        "volume_by_speaker": {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object",
          "title": "Volume By Speaker",
          "description": "Volume per speaker"
        },
        "volume_dynamic_range": {
          "type": "number",
          "title": "Volume Dynamic Range",
          "description": "Volume dynamic range",
          "default": 0.0
        },
        "snr_db": {
          "type": "number",
          "title": "Snr Db",
          "description": "Signal-to-Noise Ratio (dB)",
          "default": 0.0
        },
        "clipping_detected": {
          "type": "boolean",
          "title": "Clipping Detected",
          "description": "Audio clipping detected",
          "default": false
        },
        "background_noise_level": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high",
            "unknown"
          ],
          "title": "Background Noise Level",
          "description": "Background noise level",
          "default": "unknown"
        },
        "energy_segments": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Energy Segments",
          "description": "Energy per segment"
        }
      },
      "type": "object",
      "title": "AudioSignalMetrics"
    },
    "Body_analyze_audio_api_v1_audio_analyze_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "Audio file to analyze"
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_analyze_audio_api_v1_audio_analyze_post"
    },
    "Body_analyze_emotions_api_v1_emotions_analyze_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "Audio file to analyze"
        },
        "engine": {
          "type": "string",
          "title": "Engine",
          "description": "Emotion engine ID: s-one-emo | emotion2vec | acoustic",
          "default": "s-one-emo"
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_analyze_emotions_api_v1_emotions_analyze_post"
    },
    "Body_analyze_keywords_api_v1_analytics_keywords_post": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text",
          "description": "Text to search in"
        },
        "words": {
          "type": "string",
          "title": "Words",
          "description": "JSON array of word timestamps (List[Dict])"
        },
        "dictionaries": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Dictionaries",
          "description": "Comma-separated list of dictionary names"
        },
        "custom_keywords": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Custom Keywords",
          "description": "JSON array of custom keywords (List[str])"
        },
        "fuzzy": {
          "type": "boolean",
          "title": "Fuzzy",
          "description": "Enable fuzzy matching",
          "default": true
        }
      },
      "type": "object",
      "required": [
        "text",
        "words"
      ],
      "title": "Body_analyze_keywords_api_v1_analytics_keywords_post"
    },
    "Body_calculate_speech_metrics_api_v1_analytics_speech_metrics_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File"
        },
        "transcription_result": {
          "type": "string",
          "title": "Transcription Result",
          "description": "JSON string of transcription result (needs 'text' and 'segments')"
        },
        "diarization_result": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Diarization Result",
          "description": "JSON string of diarization result (optional)"
        }
      },
      "type": "object",
      "required": [
        "file",
        "transcription_result"
      ],
      "title": "Body_calculate_speech_metrics_api_v1_analytics_speech_metrics_post"
    },
    "Body_convert_audio_api_v1_audio_convert_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "Audio file to convert"
        },
        "target_format": {
          "type": "string",
          "title": "Target Format",
          "description": "Target format (wav, mp3, etc.)",
          "default": "wav"
        },
        "sample_rate": {
          "type": "integer",
          "title": "Sample Rate",
          "description": "Sample rate (Hz)",
          "default": 16000
        },
        "channels": {
          "type": "integer",
          "title": "Channels",
          "description": "Number of channels",
          "default": 1
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_convert_audio_api_v1_audio_convert_post"
    },
    "Body_diarize_audio_api_v1_diarize_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "Audio file to diarize"
        },
        "engine": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Engine",
          "description": "Diarization engine ID (по умолчанию — активный из конфига)"
        },
        "num_speakers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Num Speakers",
          "description": "Необязательная подсказка: сколько говорящих. Не нужна — число людей определяется само; точная разметка — до 4 говорящих, при большем числе кто-то из них будет объединён с другим"
        },
        "min_speakers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Speakers",
          "description": "Не используется: число говорящих определяется само"
        },
        "max_speakers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Speakers",
          "description": "Не используется: число говорящих определяется само"
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_diarize_audio_api_v1_diarize_post"
    },
    "Body_process_batch_telephony_api_v1_telephony_batch_post": {
      "properties": {
        "files": {
          "items": {
            "type": "string",
            "format": "binary"
          },
          "type": "array",
          "title": "Files"
        },
        "model": {
          "type": "string",
          "title": "Model",
          "default": "s-one"
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language"
        }
      },
      "type": "object",
      "required": [
        "files"
      ],
      "title": "Body_process_batch_telephony_api_v1_telephony_batch_post"
    },
    "Body_process_universal_api_v1_pipelines_process_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "File to process (video, audio, etc)"
        },
        "source_type": {
          "type": "string",
          "title": "Source Type",
          "description": "auto | video | telephony | badge | dictaphone",
          "default": "auto"
        },
        "model": {
          "type": "string",
          "title": "Model",
          "description": "STT Model ID",
          "default": "s-one"
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language",
          "description": "Language code"
        },
        "generate_subtitles": {
          "type": "boolean",
          "title": "Generate Subtitles",
          "description": "Generate subtitles for video",
          "default": true
        },
        "noise_reduction": {
          "type": "boolean",
          "title": "Noise Reduction",
          "description": "Apply noise reduction",
          "default": false
        },
        "chunk_duration": {
          "type": "integer",
          "title": "Chunk Duration",
          "description": "Chunk duration in minutes for long audio",
          "default": 5
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_process_universal_api_v1_pipelines_process_post"
    },
    "Body_split_channels_api_v1_audio_split_channels_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "Audio file to split"
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_split_channels_api_v1_audio_split_channels_post"
    },
    "Body_transcribe_audio_api_v1_transcribe_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "Audio file to transcribe"
        },
        "model": {
          "type": "string",
          "title": "Model",
          "description": "Model ID from /models",
          "default": "s-one"
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language",
          "description": "Language code (ru, en, auto)"
        },
        "diarization": {
          "type": "boolean",
          "title": "Diarization",
          "description": "Enable speaker diarization",
          "default": false
        },
        "diarization_engine": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Diarization Engine",
          "description": "s-diar (единственный движок)"
        },
        "num_speakers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Num Speakers",
          "description": "Необязательная подсказка: сколько говорящих. Не нужна — число людей определяется само; точная разметка — до 4 говорящих, при большем числе кто-то из них будет объединён с другим"
        },
        "min_speakers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Min Speakers",
          "description": "Не используется: число говорящих определяется само. Оставлен для совместимости"
        },
        "max_speakers": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Max Speakers",
          "description": "Не используется: число говорящих определяется само. Оставлен для совместимости"
        },
        "split_channels": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Split Channels",
          "description": "Разбор стерео по каналам. Настоящее двухканальное аудио разбирается автоматически (роли — в блоке diarization); 'off' отключает разбор"
        },
        "punctuation": {
          "type": "boolean",
          "title": "Punctuation",
          "description": "Enable punctuation restoration",
          "default": true
        },
        "force_post_punctuation": {
          "type": "boolean",
          "title": "Force Post Punctuation",
          "description": "Force post-processing punctuation",
          "default": false
        },
        "itn": {
          "type": "boolean",
          "title": "Itn",
          "description": "Enable Inverse Text Normalization (numbers, dates)",
          "default": true
        },
        "force_post_itn": {
          "type": "boolean",
          "title": "Force Post Itn",
          "description": "Force post-processing ITN",
          "default": false
        },
        "analyze_audio": {
          "type": "boolean",
          "title": "Analyze Audio",
          "description": "Enable acoustic analysis (emotion, tone)",
          "default": false
        },
        "emotion_engine": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Emotion Engine",
          "description": "s-one-emo (по умолчанию) | emotion2vec | acoustic"
        },
        "speaking_rate": {
          "type": "boolean",
          "title": "Speaking Rate",
          "description": "Calculate speaking rate (WPM)",
          "default": true
        },
        "analytics": {
          "type": "boolean",
          "title": "Analytics",
          "description": "Enable speech analytics (metrics + keywords)",
          "default": false
        },
        "keywords_dictionaries": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Keywords Dictionaries",
          "description": "Comma-separated list of dictionaries (e.g. 'sales,support')"
        },
        "keywords_custom": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Keywords Custom",
          "description": "JSON array of custom keywords"
        },
        "keywords_fuzzy": {
          "type": "boolean",
          "title": "Keywords Fuzzy",
          "description": "Enable fuzzy matching for keywords",
          "default": true
        },
        "translate_to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Translate To",
          "description": "Target language for translation (e.g. 'en')"
        },
        "output_format": {
          "type": "string",
          "title": "Output Format",
          "description": "json | text | srt | vtt",
          "default": "json"
        },
        "async": {
          "type": "boolean",
          "title": "Async",
          "description": "Process in background (returns task_id)",
          "default": false
        },
        "callback_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Callback Url",
          "description": "Webhook URL for async completion"
        },
        "notification_config": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Notification Config",
          "description": "JSON config for notifications (channels, email, etc.)"
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_transcribe_audio_api_v1_transcribe_post"
    },
    "Body_transcribe_batch_api_v1_transcribe_batch_post": {
      "properties": {
        "files": {
          "items": {
            "type": "string",
            "format": "binary"
          },
          "type": "array",
          "title": "Files"
        },
        "model": {
          "type": "string",
          "title": "Model",
          "default": "s-one"
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language"
        },
        "translate_to": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Translate To",
          "description": "Target language for translation (e.g. 'en')"
        }
      },
      "type": "object",
      "required": [
        "files"
      ],
      "title": "Body_transcribe_batch_api_v1_transcribe_batch_post"
    },
    "Body_translate_text_api_v1_translate_post": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text",
          "description": "Text to translate"
        },
        "source_language": {
          "type": "string",
          "title": "Source Language",
          "description": "Source language code (e.g. 'ru', 'en')",
          "default": "auto"
        },
        "target_language": {
          "type": "string",
          "title": "Target Language",
          "description": "Target language code (e.g. 'en', 'de')",
          "default": "en"
        },
        "engine": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Engine",
          "description": "Translation engine (nllb | external). Defaults to config."
        }
      },
      "type": "object",
      "required": [
        "text"
      ],
      "title": "Body_translate_text_api_v1_translate_post"
    },
    "Body_vad_process_api_v1_audio_vad_post": {
      "properties": {
        "file": {
          "type": "string",
          "format": "binary",
          "title": "File",
          "description": "Audio file for VAD"
        },
        "threshold": {
          "type": "number",
          "title": "Threshold",
          "description": "Speech threshold",
          "default": 0.5
        }
      },
      "type": "object",
      "required": [
        "file"
      ],
      "title": "Body_vad_process_api_v1_audio_vad_post"
    },
    "DbStatsResponse": {
      "properties": {
        "transcriptions": {
          "type": "integer",
          "title": "Transcriptions",
          "default": 0
        },
        "diarizations": {
          "type": "integer",
          "title": "Diarizations",
          "default": 0
        },
        "emotions": {
          "type": "integer",
          "title": "Emotions",
          "default": 0
        },
        "tags": {
          "type": "integer",
          "title": "Tags",
          "default": 0
        },
        "speech_metrics": {
          "type": "integer",
          "title": "Speech Metrics",
          "default": 0
        },
        "engines_used": {
          "type": "integer",
          "title": "Engines Used",
          "default": 0
        },
        "total_duration_hours": {
          "type": "number",
          "title": "Total Duration Hours",
          "default": 0.0
        },
        "avg_confidence": {
          "type": "number",
          "title": "Avg Confidence",
          "default": 0.0
        }
      },
      "type": "object",
      "title": "DbStatsResponse",
      "description": "Статистика базы данных."
    },
    "DialogMetrics": {
      "properties": {
        "speakers_count": {
          "type": "integer",
          "title": "Speakers Count",
          "description": "Number of speakers",
          "default": 0
        },
        "talk_ratio_by_speaker": {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object",
          "title": "Talk Ratio By Speaker",
          "description": "Talk ratio per speaker (0-1)"
        },
        "interruptions_total": {
          "type": "integer",
          "title": "Interruptions Total",
          "description": "Total interruptions count",
          "default": 0
        },
        "interruptions_by_speaker": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Interruptions By Speaker",
          "description": "Interruptions made by each speaker"
        },
        "turn_count": {
          "type": "integer",
          "title": "Turn Count",
          "description": "Number of speaker turns",
          "default": 0
        },
        "avg_turn_duration": {
          "type": "number",
          "title": "Avg Turn Duration",
          "description": "Average turn duration",
          "default": 0.0
        },
        "longest_monologue": {
          "additionalProperties": true,
          "type": "object",
          "title": "Longest Monologue",
          "description": "Longest monologue info"
        },
        "dialog_type": {
          "type": "string",
          "enum": [
            "balanced",
            "monologue",
            "interview",
            "unbalanced",
            "unknown"
          ],
          "title": "Dialog Type",
          "description": "Dialog classification",
          "default": "unknown"
        }
      },
      "type": "object",
      "title": "DialogMetrics"
    },
    "DiarizationResponse": {
      "properties": {
        "segments": {
          "items": {
            "$ref": "#/components/schemas/sve__models__responses__DiarizationSegment"
          },
          "type": "array",
          "title": "Segments"
        },
        "num_speakers": {
          "type": "integer",
          "title": "Num Speakers"
        },
        "engine": {
          "type": "string",
          "title": "Engine"
        },
        "speakers": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/components/schemas/DiarizationSpeaker"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Speakers"
        },
        "processing_time": {
          "type": "number",
          "title": "Processing Time",
          "default": 0.0
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "rescued_words": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rescued Words"
        },
        "inaudible": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Inaudible"
        }
      },
      "type": "object",
      "required": [
        "segments",
        "num_speakers",
        "engine"
      ],
      "title": "DiarizationResponse"
    },
    "DiarizationSpeaker": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "total_duration": {
          "type": "number",
          "title": "Total Duration",
          "default": 0.0
        },
        "segments_count": {
          "type": "integer",
          "title": "Segments Count",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "id"
      ],
      "title": "DiarizationSpeaker",
      "description": "Агрегат по одному говорящему: сколько говорил и в скольких репликах."
    },
    "EmotionResponse": {
      "properties": {
        "overall_emotion": {
          "type": "string",
          "title": "Overall Emotion"
        },
        "confidence": {
          "type": "number",
          "title": "Confidence"
        },
        "segments": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/components/schemas/EmotionSegment"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Segments"
        },
        "timeline": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Timeline"
        }
      },
      "type": "object",
      "required": [
        "overall_emotion",
        "confidence"
      ],
      "title": "EmotionResponse"
    },
    "EmotionSegment": {
      "properties": {
        "start": {
          "type": "number",
          "title": "Start"
        },
        "end": {
          "type": "number",
          "title": "End"
        },
        "emotion": {
          "type": "string",
          "title": "Emotion"
        },
        "confidence": {
          "type": "number",
          "title": "Confidence"
        }
      },
      "type": "object",
      "required": [
        "start",
        "end",
        "emotion",
        "confidence"
      ],
      "title": "EmotionSegment"
    },
    "EngineFeatures": {
      "properties": {
        "native_punctuation": {
          "type": "boolean",
          "title": "Native Punctuation",
          "default": false
        },
        "native_streaming": {
          "type": "boolean",
          "title": "Native Streaming",
          "default": false
        },
        "word_timestamps": {
          "type": "boolean",
          "title": "Word Timestamps",
          "default": false
        },
        "vad": {
          "type": "boolean",
          "title": "Vad",
          "default": false
        },
        "native_diarization": {
          "type": "boolean",
          "title": "Native Diarization",
          "default": false
        },
        "emotion_aware": {
          "type": "boolean",
          "title": "Emotion Aware",
          "default": false
        },
        "auto_punctuation": {
          "type": "boolean",
          "title": "Auto Punctuation",
          "default": false
        }
      },
      "type": "object",
      "title": "EngineFeatures"
    },
    "EngineInfo": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "capabilities": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Capabilities"
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          ],
          "title": "Language"
        },
        "is_loaded": {
          "type": "boolean",
          "title": "Is Loaded"
        },
        "streaming_mode": {
          "type": "string",
          "title": "Streaming Mode"
        },
        "features": {
          "$ref": "#/components/schemas/EngineFeatures"
        },
        "engine_info": {
          "additionalProperties": true,
          "type": "object",
          "title": "Engine Info"
        },
        "ram_usage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ram Usage"
        }
      },
      "type": "object",
      "required": [
        "id",
        "name",
        "description",
        "capabilities",
        "language",
        "is_loaded",
        "streaming_mode",
        "features",
        "engine_info"
      ],
      "title": "EngineInfo"
    },
    "EnginesListResponse": {
      "properties": {
        "engines": {
          "items": {
            "$ref": "#/components/schemas/EngineInfo"
          },
          "type": "array",
          "title": "Engines"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "default_engine": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Default Engine"
        }
      },
      "type": "object",
      "required": [
        "engines",
        "total"
      ],
      "title": "EnginesListResponse"
    },
    "HTTPValidationError": {
      "properties": {
        "detail": {
          "items": {
            "$ref": "#/components/schemas/ValidationError"
          },
          "type": "array",
          "title": "Detail"
        }
      },
      "type": "object",
      "title": "HTTPValidationError"
    },
    "KeywordAnalysis": {
      "properties": {
        "tags": {
          "items": {
            "$ref": "#/components/schemas/KeywordMatch"
          },
          "type": "array",
          "title": "Tags"
        },
        "summary": {
          "$ref": "#/components/schemas/KeywordSummary"
        }
      },
      "type": "object",
      "title": "KeywordAnalysis"
    },
    "KeywordMatch": {
      "properties": {
        "keyword": {
          "type": "string",
          "title": "Keyword"
        },
        "dictionary": {
          "type": "string",
          "title": "Dictionary"
        },
        "category": {
          "type": "string",
          "title": "Category"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        },
        "positions": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Positions"
        }
      },
      "type": "object",
      "required": [
        "keyword",
        "dictionary",
        "category",
        "count",
        "positions"
      ],
      "title": "KeywordMatch"
    },
    "KeywordSummary": {
      "properties": {
        "total_matches": {
          "type": "integer",
          "title": "Total Matches"
        },
        "dictionaries_used": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Dictionaries Used"
        },
        "categories": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Categories"
        }
      },
      "type": "object",
      "required": [
        "total_matches",
        "dictionaries_used",
        "categories"
      ],
      "title": "KeywordSummary"
    },
    "ModelRecommendResponse": {
      "properties": {
        "recommended_model_id": {
          "type": "string",
          "title": "Recommended Model Id"
        },
        "reason": {
          "type": "string",
          "title": "Reason"
        },
        "alternative_model_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Alternative Model Id"
        }
      },
      "type": "object",
      "required": [
        "recommended_model_id",
        "reason"
      ],
      "title": "ModelRecommendResponse"
    },
    "PauseMetrics": {
      "properties": {
        "total_duration_seconds": {
          "type": "number",
          "title": "Total Duration Seconds",
          "description": "Total audio duration",
          "default": 0.0
        },
        "speech_duration_seconds": {
          "type": "number",
          "title": "Speech Duration Seconds",
          "description": "Total speech duration",
          "default": 0.0
        },
        "silence_duration_seconds": {
          "type": "number",
          "title": "Silence Duration Seconds",
          "description": "Total silence duration",
          "default": 0.0
        },
        "speech_ratio": {
          "type": "number",
          "title": "Speech Ratio",
          "description": "Speech ratio (0-1)",
          "default": 0.0
        },
        "pauses": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Pauses",
          "description": "List of pauses"
        },
        "short_pauses_count": {
          "type": "integer",
          "title": "Short Pauses Count",
          "description": "Pauses < 0.5s",
          "default": 0
        },
        "medium_pauses_count": {
          "type": "integer",
          "title": "Medium Pauses Count",
          "description": "Pauses 0.5-2s",
          "default": 0
        },
        "long_pauses_count": {
          "type": "integer",
          "title": "Long Pauses Count",
          "description": "Pauses > 2s",
          "default": 0
        },
        "avg_pause_duration": {
          "type": "number",
          "title": "Avg Pause Duration",
          "description": "Average pause duration",
          "default": 0.0
        },
        "response_time_by_speaker": {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object",
          "title": "Response Time By Speaker",
          "description": "Average response time per speaker"
        },
        "avg_response_time": {
          "type": "number",
          "title": "Avg Response Time",
          "description": "Average response time overall",
          "default": 0.0
        }
      },
      "type": "object",
      "title": "PauseMetrics"
    },
    "SpeechMetrics": {
      "properties": {
        "tempo": {
          "$ref": "#/components/schemas/TempoMetrics"
        },
        "pauses": {
          "$ref": "#/components/schemas/PauseMetrics"
        },
        "dialog": {
          "$ref": "#/components/schemas/DialogMetrics"
        },
        "audio": {
          "$ref": "#/components/schemas/AudioSignalMetrics"
        }
      },
      "type": "object",
      "title": "SpeechMetrics"
    },
    "SplitChannelResponse": {
      "properties": {
        "index": {
          "type": "integer",
          "title": "Index"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "duration": {
          "type": "number",
          "title": "Duration"
        },
        "download_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Download Url"
        }
      },
      "type": "object",
      "required": [
        "index",
        "label",
        "duration"
      ],
      "title": "SplitChannelResponse"
    },
    "SynthesizeRequest": {
      "properties": {
        "text": {
          "type": "string",
          "maxLength": 5000,
          "minLength": 1,
          "title": "Text"
        },
        "voice": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Voice"
        },
        "model_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model Name",
          "description": "Движок AVS: avs-fast | avs-clone"
        },
        "sample_rate": {
          "type": "integer",
          "title": "Sample Rate",
          "default": 24000
        },
        "format": {
          "type": "string",
          "pattern": "^(wav|pcm16)$",
          "title": "Format",
          "default": "wav"
        },
        "speed": {
          "type": "number",
          "maximum": 2.0,
          "minimum": 0.5,
          "title": "Speed",
          "default": 1.0
        }
      },
      "type": "object",
      "required": [
        "text"
      ],
      "title": "SynthesizeRequest"
    },
    "TaskStatusResponse": {
      "properties": {
        "task_id": {
          "type": "string",
          "title": "Task Id"
        },
        "status": {
          "type": "string",
          "title": "Status"
        },
        "created_at": {
          "type": "number",
          "title": "Created At"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At"
        },
        "result": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Result"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error"
        },
        "error_code": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Error Code"
        },
        "progress": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Progress"
        },
        "stage": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Stage"
        },
        "engine": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Engine"
        }
      },
      "type": "object",
      "required": [
        "task_id",
        "status",
        "created_at"
      ],
      "title": "TaskStatusResponse"
    },
    "TempoMetrics": {
      "properties": {
        "words_per_minute_total": {
          "type": "number",
          "title": "Words Per Minute Total",
          "description": "Overall speech rate (WPM)",
          "default": 0.0
        },
        "words_per_minute_by_speaker": {
          "additionalProperties": {
            "type": "number"
          },
          "type": "object",
          "title": "Words Per Minute By Speaker",
          "description": "WPM per speaker"
        },
        "syllables_per_minute": {
          "type": "number",
          "title": "Syllables Per Minute",
          "description": "Syllables per minute (more accurate than WPM)",
          "default": 0.0
        },
        "tempo_segments": {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array",
          "title": "Tempo Segments",
          "description": "Tempo dynamics over time"
        },
        "tempo_variability": {
          "type": "number",
          "title": "Tempo Variability",
          "description": "Tempo variability (0=monotonic, 1=dynamic)",
          "default": 0.0
        }
      },
      "type": "object",
      "title": "TempoMetrics"
    },
    "TranscribeResponse": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text"
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language"
        },
        "duration": {
          "type": "number",
          "title": "Duration",
          "default": 0.0
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "words": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/components/schemas/TranscribeWord"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Words"
        },
        "segments": {
          "anyOf": [
            {
              "items": {
                "additionalProperties": true,
                "type": "object"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Segments"
        },
        "engine": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Engine"
        },
        "model": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Model"
        },
        "diarization": {
          "anyOf": [
            {
              "$ref": "#/components/schemas/DiarizationResponse"
            },
            {
              "type": "null"
            }
          ]
        },
        "emotion_analysis": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Emotion Analysis"
        },
        "translation": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Translation"
        },
        "post_processing": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Post Processing"
        },
        "itn_applied": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Itn Applied"
        },
        "itn_native": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Itn Native"
        },
        "warnings": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Warnings"
        },
        "diarization_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Diarization Error"
        },
        "emotion_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Emotion Error"
        },
        "post_processing_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Post Processing Error"
        },
        "translation_error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Translation Error"
        },
        "task_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Task Id"
        },
        "status": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status"
        },
        "processed_at": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Processed At"
        }
      },
      "additionalProperties": true,
      "type": "object",
      "required": [
        "text"
      ],
      "title": "TranscribeResponse"
    },
    "TranscribeWord": {
      "properties": {
        "word": {
          "type": "string",
          "title": "Word",
          "default": ""
        },
        "start": {
          "type": "number",
          "title": "Start"
        },
        "end": {
          "type": "number",
          "title": "End"
        },
        "confidence": {
          "type": "number",
          "title": "Confidence",
          "default": 0.0
        },
        "speaker": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Speaker"
        },
        "rescued": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rescued"
        }
      },
      "type": "object",
      "required": [
        "start",
        "end"
      ],
      "title": "TranscribeWord"
    },
    "TranscriptionDetail": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "engine": {
          "type": "string",
          "title": "Engine"
        },
        "duration": {
          "type": "number",
          "title": "Duration"
        },
        "text": {
          "type": "string",
          "title": "Text",
          "default": ""
        },
        "words": {
          "anyOf": [
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Words"
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "audio_format": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Audio Format"
        },
        "sample_rate": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sample Rate"
        },
        "channels": {
          "type": "integer",
          "title": "Channels",
          "default": 1
        },
        "file_size_bytes": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "File Size Bytes"
        },
        "processing_time_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Processing Time Ms"
        },
        "source_type": {
          "type": "string",
          "title": "Source Type",
          "default": "api"
        },
        "metadata": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Metadata"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        },
        "diarization": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Diarization"
        },
        "emotion_analysis": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Emotion Analysis"
        },
        "speech_metrics": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Speech Metrics"
        },
        "tags": {
          "anyOf": [
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tags"
        }
      },
      "type": "object",
      "required": [
        "id",
        "engine",
        "duration",
        "created_at"
      ],
      "title": "TranscriptionDetail",
      "description": "Подробная информация о транскрибации."
    },
    "TranscriptionListItem": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "engine": {
          "type": "string",
          "title": "Engine"
        },
        "duration": {
          "type": "number",
          "title": "Duration"
        },
        "text_preview": {
          "type": "string",
          "title": "Text Preview",
          "default": ""
        },
        "language": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Language"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        },
        "source_type": {
          "type": "string",
          "title": "Source Type",
          "default": "api"
        },
        "processing_time_ms": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Processing Time Ms"
        },
        "created_at": {
          "type": "string",
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "engine",
        "duration",
        "created_at"
      ],
      "title": "TranscriptionListItem",
      "description": "Краткая информация о транскрибации в списке."
    },
    "TranscriptionSearchResponse": {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/components/schemas/TranscriptionListItem"
          },
          "type": "array",
          "title": "Items"
        },
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "limit": {
          "type": "integer",
          "title": "Limit"
        },
        "offset": {
          "type": "integer",
          "title": "Offset"
        }
      },
      "type": "object",
      "required": [
        "items",
        "total",
        "limit",
        "offset"
      ],
      "title": "TranscriptionSearchResponse",
      "description": "Ответ на поиск транскрибаций."
    },
    "VadResponse": {
      "properties": {
        "segments": {
          "items": {
            "$ref": "#/components/schemas/VadSegment"
          },
          "type": "array",
          "title": "Segments"
        },
        "total_speech_duration": {
          "type": "number",
          "title": "Total Speech Duration"
        },
        "speech_ratio": {
          "type": "number",
          "title": "Speech Ratio"
        }
      },
      "type": "object",
      "required": [
        "segments",
        "total_speech_duration",
        "speech_ratio"
      ],
      "title": "VadResponse"
    },
    "VadSegment": {
      "properties": {
        "start": {
          "type": "number",
          "title": "Start"
        },
        "end": {
          "type": "number",
          "title": "End"
        },
        "confidence": {
          "type": "number",
          "title": "Confidence"
        }
      },
      "type": "object",
      "required": [
        "start",
        "end",
        "confidence"
      ],
      "title": "VadSegment"
    },
    "ValidationError": {
      "properties": {
        "loc": {
          "items": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              }
            ]
          },
          "type": "array",
          "title": "Location"
        },
        "msg": {
          "type": "string",
          "title": "Message"
        },
        "type": {
          "type": "string",
          "title": "Error Type"
        }
      },
      "type": "object",
      "required": [
        "loc",
        "msg",
        "type"
      ],
      "title": "ValidationError"
    },
    "sve__models__responses__DiarizationSegment": {
      "properties": {
        "start": {
          "type": "number",
          "title": "Start"
        },
        "end": {
          "type": "number",
          "title": "End"
        },
        "speaker": {
          "type": "string",
          "title": "Speaker"
        },
        "speaker_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Speaker Id"
        },
        "confidence": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Confidence"
        }
      },
      "type": "object",
      "required": [
        "start",
        "end",
        "speaker"
      ],
      "title": "DiarizationSegment"
    }
  },
  "securitySchemes": {
    "SVEKey": {
      "type": "apiKey",
      "in": "header",
      "name": "X-SVE-API-KEY"
    }
  }
}
```
