{
  "openapi": "3.1.0",
  "info": {
    "title": "Spice Voice Engine — клиентский API",
    "version": "2026-10-02",
    "description": "См. sve-api.md: доступность, WebSocket, ответы и ограничения. Расширения требуют отдельного подключения."
  },
  "paths": {
    "/api/v1/transcribe": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/transcribe/batch": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/tasks/{task_id}/audio": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tasks/{task_id}/audio/info": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/diarize": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/diarization/engines": {
      "get": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/emotions/analyze": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/emotions/engines": {
      "get": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/tasks/{task_id}": {
      "get": {
        "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": {
        "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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tasks": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/batches/{batch_id}": {
      "get": {
        "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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/engines": {
      "get": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/models": {
      "get": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/engines/{engine_id}": {
      "get": {
        "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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/models/{model_id}/capabilities": {
      "get": {
        "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"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/models/recommend": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/audio/convert": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/audio/split-channels": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/audio/vad": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/audio/analyze": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/health": {
      "get": {
        "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": []
      }
    },
    "/api/v1/ready": {
      "get": {
        "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": []
      }
    },
    "/api/v1/tts/models": {
      "get": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/tts/voices": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tts/synthesize": {
      "post": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/pipelines/process": {
      "post": {
        "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": "По отдельному подключению; не гарантировано публичным тарифом"
      }
    },
    "/api/v1/telephony/batch": {
      "post": {
        "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": "По отдельному подключению; не гарантировано публичным тарифом"
      }
    },
    "/api/v1/translate": {
      "post": {
        "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": "По отдельному подключению; не гарантировано публичным тарифом"
      }
    },
    "/api/v1/translate/languages": {
      "get": {
        "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": "По отдельному подключению; не гарантировано публичным тарифом"
      }
    },
    "/api/v1/analytics/speech-metrics": {
      "post": {
        "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": "По отдельному подключению; не гарантировано публичным тарифом"
      }
    },
    "/api/v1/analytics/keywords": {
      "post": {
        "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": "По отдельному подключению; не гарантировано публичным тарифом"
      }
    },
    "/api/v1/analytics/dictionaries": {
      "get": {
        "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": "По отдельному подключению; не гарантировано публичным тарифом"
      }
    },
    "/api/v1/transcriptions/stats/summary": {
      "get": {
        "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": []
          }
        ]
      }
    },
    "/api/v1/transcriptions": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transcriptions/by-task/{task_id}": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/transcriptions/{transcription_id}": {
      "get": {
        "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"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "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"
      }
    }
  },
  "tags": [
    {
      "name": "transcription",
      "description": "Core speech-to-text operations (sync/async)."
    },
    {
      "name": "tasks",
      "description": "Async task management."
    },
    {
      "name": "streaming",
      "description": "WebSocket endpoints for real-time and progressive streaming."
    },
    {
      "name": "diarization",
      "description": "Speaker separation (Diarization) management."
    },
    {
      "name": "emotions",
      "description": "Audio emotion analysis engines."
    },
    {
      "name": "engines",
      "description": "Model management and capabilities."
    },
    {
      "name": "tools",
      "description": "Utility tools like audio probe."
    },
    {
      "name": "system",
      "description": "Health checks and system status."
    },
    {
      "name": "dashboard",
      "description": "Internal dashboard endpoints."
    }
  ],
  "servers": [
    {
      "url": "https://sve.antima.io"
    }
  ]
}
