---
title: "Add Text To Speech"
method: POST
path: "/api/speech/v1/task"
---

# Add Text To Speech

`POST /api/speech/v1/task`

新增自定义文本转语音任务

## Query parameters

- `app_id` string, required

## Request body

- RoutersTextTospeechV1UploadTextToSpeechItem
  - `audio_url` string, required — The URL of the audio file
  - `user_id` string, required — The user ID
  - `text` string, required — The text to convert to speech
  - `language` string — The language for the text-to-speech conversion

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/videofaceswap/apis/fastapi.md) · [All operations](https://skmtc.dev/videofaceswap/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/videofaceswap/fastapi/revisions/76b11ccab8af/schema)
