> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unreal-engine/blueprints-reference/text-to-speech.md).

# 文字转语音

### 文本转语音

* **描述：** 为对应文本生成音频。

  <figure><img src="/files/970ba7dc9ab52cba664520cda6529d424695a65f" alt=""><figcaption></figcaption></figure>

**输入：**

* **转录文本：** 音频的转录文本。
* **声音：** 语音名称。

{% hint style="info" %}
有关支持的语音列表，请参阅 [语音列表 API](/api-docs/zh/api-can-kao/core-api-reference/character-crafting-apis/voice-list-api.md).
{% endhint %}

**输出：**

#### ✅ \[成功时]

* **波形：** 音频响应。

#### ⛔ \[失败时]

*不返回任何内容，请查看日志以了解失败原因。*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/unreal-engine/blueprints-reference/text-to-speech.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
