Enhance API documentation by adding new endpoints for ASR preview, assistant configuration retrieval, and knowledge base management. Update existing assistant and tool definitions for improved clarity and functionality. Remove outdated sections from history records documentation, ensuring a streamlined reference for users.
This commit is contained in:
@@ -279,6 +279,36 @@ POST /api/v1/asr/{id}/transcribe
|
||||
|
||||
---
|
||||
|
||||
### 8. 预览 ASR (上传音频文件)
|
||||
|
||||
```http
|
||||
POST /api/v1/asr/{id}/preview
|
||||
```
|
||||
|
||||
上传音频文件进行识别预览。
|
||||
|
||||
**Request (multipart/form-data):**
|
||||
|
||||
| 参数 | 类型 | 必填 | 说明 |
|
||||
|------|------|------|------|
|
||||
| file | file | 是 | 音频文件 (audio/* | string | 否 | 指定语言,覆盖) |
|
||||
| language模型配置 |
|
||||
| api_key | string | 否 | 覆盖模型配置的 API Key |
|
||||
|
||||
**Response:**
|
||||
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"transcript": "您好,请问有什么可以帮助您?",
|
||||
"language": "zh",
|
||||
"confidence": 0.95,
|
||||
"latency_ms": 1500
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Schema 定义
|
||||
|
||||
```python
|
||||
|
||||
Reference in New Issue
Block a user