---
title: "语音转文字"
method: POST
path: "/api/v1/users/tasks/speech-to-text"
tags: ["【用户】任务管理"]
---

# 语音转文字

`POST /api/v1/users/tasks/speech-to-text`

上传音频数据进行语音识别，返回Server-Sent Events流式文字结果。响应格式为SSE，每个事件包含event和data字段。

## Response `200`

Server-Sent Events流，包含recognition(识别结果)、end(结束)和error(错误)事件

## Other responses

- `400` — 参数错误
- `500` — 服务器内部错误

---

[API](https://skmtc.net/chaitin/apis/untitled-api.md) · [All operations](https://skmtc.net/chaitin/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chaitin/untitled-api/revisions/5a5929cb17f2/schema)
