{"openapi":"3.0.3","info":{"title":"ESP Mixer 统一语音 API","version":"1.0.0","description":"四个变声模型家族、五种运行配置共用同一入口。使用 voice ID 选择模型与音色。HTTP 契约与独立的 NetTrans 实时协议配套。"},"servers":[{"url":"/","description":"当前部署（可替换为新服务器 HTTPS 地址）"}],"security":[{"bearerAuth":[]},{"browserSession":[]}],"paths":{"/api/v1":{"get":{"operationId":"discover","summary":"服务入口与协议版本","description":"","responses":{"200":{"description":"服务入口与协议版本","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[]}},"/healthz":{"get":{"operationId":"health","summary":"网关存活检查","description":"只表示网关可响应，不表示 GPU 模型已就绪；请检查 /api/v1/status。","responses":{"200":{"description":"网关存活检查","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"service":{"type":"string"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[]}},"/api/v1/catalog":{"get":{"operationId":"catalog","summary":"全部模型配置与音色","description":"","responses":{"200":{"description":"全部模型配置与音色","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Catalog"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/models":{"get":{"operationId":"models","summary":"模型配置与加载状态","description":"","responses":{"200":{"description":"模型配置与加载状态","content":{"application/json":{"schema":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/Model"}}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/voices":{"get":{"operationId":"voices","summary":"音色目录","description":"","responses":{"200":{"description":"音色目录","content":{"application/json":{"schema":{"type":"object","properties":{"voices":{"type":"array","items":{"$ref":"#/components/schemas/Voice"}}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createVoice","summary":"上传参考音色","description":"参考录音至少 3 秒。适用于 MeanVC2、Seed-VC、X-VC；RVC 需要训练权重，不支持此上传接口。","responses":{"201":{"description":"上传参考音色","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Voice"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"engine","in":"query","required":true,"schema":{"type":"string"}},{"name":"name","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":40}}],"requestBody":{"required":true,"description":"原始 WAV 文件体，16 kHz、单声道、PCM16，最长 30 秒；不是 multipart 或 JSON/base64。","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}},"/api/v1/status":{"get":{"operationId":"status","summary":"模型、会话、任务及 GPU 运行状态","description":"","responses":{"200":{"description":"模型、会话、任务及 GPU 运行状态","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/warm":{"post":{"operationId":"warm","summary":"预热指定音色所属模型","description":"异步受理；轮询 status.models，等待目标 engine 的 state=ready。冷启动可能需要数十秒。","responses":{"202":{"description":"预热指定音色所属模型","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"type":"string","example":"seed-vc-female"}},"required":["voice"]}}}}}},"/api/v1/jobs":{"post":{"operationId":"createJob","summary":"提交文件变声任务","description":"所有转换模型共用此接口；voice 决定 engine。轮询任务直到 complete，再下载 audio。failed 时读取 error。","responses":{"202":{"description":"提交文件变声任务","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"voice","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"description":"原始 WAV 文件体，16 kHz、单声道、PCM16，最长 60 秒；不是 multipart 或 JSON/base64。","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}},"/api/v1/jobs/{id}":{"get":{"operationId":"getJob","summary":"查询文件任务","description":"","responses":{"200":{"description":"查询文件任务","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/v1/jobs/{id}/audio":{"get":{"operationId":"getAudio","summary":"下载转换后的 WAV","description":"任务完成前返回 404；输出格式固定为 16 kHz 单声道 PCM16。","responses":{"200":{"description":"下载转换后的 WAV","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/v1/sessions/{id}/voice":{"post":{"operationId":"selectVoice","summary":"切换一个实时会话的音色/模型","description":"id 使用 audio.ready.data.session 或 status.sessions[].id，不是 8 位 channelId。目标模型须先预热；确认 voice.changed 后使用新音色。","responses":{"200":{"description":"切换一个实时会话的音色/模型","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"voice":{"type":"string","example":"seed-vc-female"}},"required":["voice"]}}}}}},"/api/v1/commands/warm":{"post":{"operationId":"warmCommands","summary":"加载语音识别与指令模型","description":"轮询 status.commands.state=ready。","responses":{"202":{"description":"加载语音识别与指令模型","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/asr/warm":{"post":{"operationId":"warmAsr","summary":"加载选定 ASR","description":"model: sensevoice-small、qwen3-asr-0.6b、whisper-large-v3-turbo；轮询 status.asr 对应 state=ready。","responses":{"202":{"description":"加载选定 ASR","content":{"application/json":{"schema":{"type":"object","properties":{"accepted":{"type":"boolean"},"model":{"type":"string"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"}},"required":["model"]}}}}}},"/api/v1/transcribe":{"post":{"operationId":"transcribe","summary":"自部署语音转文字","description":"音频长度 0.2–30 秒；model 查询参数选择 sensevoice-small（默认）、qwen3-asr-0.6b、whisper-large-v3-turbo。分句 HTTP 识别，不是原生流式；先等待 status.asr 中模型 ready，未预热 503、忙碌 429。speechDetected 不能保证排除歌词。","responses":{"200":{"description":"自部署语音转文字","content":{"application/json":{"schema":{"type":"object","properties":{"transcript":{"type":"string"},"elapsedMs":{"type":"number"},"model":{"type":"string"},"events":{"type":"array","items":{"type":"string"}},"speechDetected":{"type":"boolean"},"mode":{"type":"string"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"model","in":"query","required":false,"schema":{"type":"string","enum":["sensevoice-small","qwen3-asr-0.6b","whisper-large-v3-turbo"]}}],"requestBody":{"required":true,"description":"原始 WAV 文件体，16 kHz、单声道、PCM16，最长 30 秒；不是 multipart 或 JSON/base64。","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}},"/api/v1/commands/recognize":{"post":{"operationId":"recognizeCommand","summary":"识别切换音色指令","description":"SenseVoice + Qwen 返回受白名单约束的 switch_voice 工具选择；此 HTTP 接口仅识别，不直接修改实时会话。","responses":{"200":{"description":"识别切换音色指令","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Command"}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"engine","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"description":"原始 WAV 文件体，16 kHz、单声道、PCM16，最长 8 秒；不是 multipart 或 JSON/base64。","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}},"/api/v1/text/analyze":{"post":{"operationId":"analyzeText","summary":"独立测试文本理解模型","description":"general 返回理解/摘要文本；voice-command 只返回音色工具判断，不执行切换。与 ASR/语音控制共享串行进程，忙碌时返回 400。先加载 commands。","responses":{"200":{"description":"独立测试文本理解模型","content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string"},"task":{"type":"string"},"text":{"type":"string"},"elapsedMs":{"type":"number"},"inputTokens":{"type":"integer"},"outputTokens":{"type":"integer"},"truncated":{"type":"boolean"},"triggered":{"type":"boolean"},"tool":{"type":"object","properties":{}},"reason":{"type":"string"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"engine","in":"query","required":false,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","enum":["qwen3-0.6b"],"default":"qwen3-0.6b"},"text":{"type":"string","minLength":1,"maxLength":4000},"task":{"type":"string","enum":["general","voice-command"],"default":"general"},"instruction":{"type":"string","maxLength":800},"maxTokens":{"type":"integer","minimum":16,"maximum":256,"default":192}},"required":["text"]}}}}}},"/api/v1/soaks":{"post":{"operationId":"createSoak","summary":"启动 GPU 本机老化测试","description":"目标模型须已预热。最多两个老化任务；只测 GPU 本机，不包含公网、S3 或 SPI。","responses":{"202":{"description":"启动 GPU 本机老化测试","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"voice","in":"query","required":true,"schema":{"type":"string"}},{"name":"seconds","in":"query","required":true,"schema":{"type":"integer","minimum":60,"maximum":86400}}],"requestBody":{"required":true,"description":"原始 WAV 文件体，16 kHz、单声道、PCM16，最长 60 秒；不是 multipart 或 JSON/base64。","content":{"audio/wav":{"schema":{"type":"string","format":"binary"}}}}}},"/api/v1/soaks/{id}/stop":{"post":{"operationId":"stopSoak","summary":"停止老化任务","description":"","responses":{"200":{"description":"停止老化任务","content":{"application/json":{"schema":{"type":"object","properties":{"stopping":{"type":"boolean"}}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/v1/soaks/{id}/report":{"get":{"operationId":"getSoakReport","summary":"下载老化状态和报告","description":"","responses":{"200":{"description":"下载老化状态和报告","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"参数、音频格式、模型忙或状态不允许；详细原因见 error。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"资源或接口不存在。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}},"/api/v1/login":{"post":{"operationId":"browserLogin","summary":"同源浏览器登录","description":"供同源网页使用，必须有匹配的 Origin；设置 8 小时 HttpOnly/SameSite=Strict Cookie。脚本和设备直接用 Bearer，无需登录。未开放任意跨域网页调用。","responses":{"200":{"description":"登录成功并设置 Cookie","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}}}}}},"401":{"description":"访问密钥缺失/无效，或浏览器 Cookie 的来源校验失败。","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"不是同源浏览器请求","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"一分钟内登录尝试过多","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]}}}}}}},"externalDocs":{"url":"/docs","description":"中文接入指南、实时协议与迁移说明"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"沿用测试台访问密钥；不要放进 URL。"},"browserSession":{"type":"apiKey","in":"cookie","name":"voice_session","description":"仅同源浏览器；写操作及 WebSocket 校验 Origin。"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"Model":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"state":{"type":"string","enum":["cold","loading","ready","failed"]},"gpu":{"type":"integer"},"chunkSamples":{"type":"integer"},"sessions":{"type":"integer"},"pending":{"type":"integer"},"error":{"type":"string","nullable":true},"acceptsReference":{"type":"boolean","description":"未给出时默认为支持；RVC 为 false。"},"license":{"type":"string"},"upstream":{"type":"string"},"metrics":{"type":"object","properties":{}}},"required":["id","state"]},"Voice":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"engine":{"type":"string"},"source":{"type":"string"},"license":{"type":"string"},"attribution":{"type":"string"},"sourceUrl":{"type":"string"},"licenseUrl":{"type":"string"},"aliases":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"number"}},"required":["id","name","engine"]},"Catalog":{"type":"object","properties":{"models":{"type":"array","items":{"$ref":"#/components/schemas/Model"}},"voices":{"type":"array","items":{"$ref":"#/components/schemas/Voice"}},"categories":{"type":"object","properties":{"conversion":{"type":"array","items":{"$ref":"#/components/schemas/Model"}},"asr":{"type":"array","items":{"$ref":"#/components/schemas/Model"}},"text":{"type":"array","items":{"$ref":"#/components/schemas/Model"}}}}},"required":["models","voices"]},"Job":{"type":"object","properties":{"id":{"type":"string"},"state":{"type":"string","enum":["waiting","running","complete","failed"]},"voice":{"type":"string"},"createdAt":{"type":"number"},"progress":{"type":"number","minimum":0,"maximum":1},"error":{"type":"string"},"audioSeconds":{"type":"number"},"elapsedMs":{"type":"number"},"rtf":{"type":"number"},"inferenceP50Ms":{"type":"number"},"inferenceP95Ms":{"type":"number"}},"required":["id","state"]},"Session":{"type":"object","properties":{"id":{"type":"string"},"channel":{"type":"string"},"voice":{"type":"string"},"engine":{"type":"string"},"switching":{"type":"boolean"},"commandsEnabled":{"type":"boolean"},"framesIn":{"type":"integer"},"framesOut":{"type":"integer"},"gaps":{"type":"integer"},"bufferedMs":{"type":"number"},"processingP95Ms":{"type":"number","nullable":true},"serverLatencyP95Ms":{"type":"number","nullable":true}},"required":["id"]},"Command":{"type":"object","properties":{"transcript":{"type":"string"},"elapsedMs":{"type":"number"},"triggered":{"type":"boolean"},"reason":{"type":"string"},"tool":{"type":"object","properties":{"name":{"type":"string","enum":["switch_voice"]},"arguments":{"type":"object","properties":{"voice_id":{"type":"string"}}}}}}},"Status":{"type":"object","properties":{"asr":{"type":"array","items":{"type":"object","properties":{}}},"models":{"type":"array","items":{"$ref":"#/components/schemas/Model"}},"sessions":{"type":"array","items":{"$ref":"#/components/schemas/Session"}},"commands":{"type":"object","properties":{}},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/Job"}},"soaks":{"type":"array","items":{"type":"object","properties":{}}},"counters":{"type":"object","properties":{}},"gpu":{"type":"array","items":{"type":"object","properties":{}}},"resources":{"type":"object","properties":{}},"uptimeSeconds":{"type":"number"}}}}},"x-websocket":{"path":"/api/v1/realtime","legacyPath":"/voice","profile":{"profile":"esp-voice-v1","codec":"pcm_s16le","sampleRate":16000,"channels":1,"frameMs":20},"authentication":"Bearer request header, or same-origin browser session cookie","documentation":"/docs#realtime","maxSessions":4,"maxSessionsPerEngine":1}}