> For the complete documentation index, see [llms.txt](https://docs.acestudio.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acestudio.ai/docs/product-wiki-zh/ai-gong-ju/speech-generator.md).

# 语音生成器

在 ACE Studio 中，使用预制、描述式或基于参考的声线，将脚本转换为语音或多说话人对话。

## 什么是语音生成器

语音生成器可将文本转换为语音。添加一个或多个说话者，写下他们各自要说的话，生成的语音会作为音频片段放置在画布上的播放头处。

## 如何使用语音生成器

<figure><img src="https://1816898227-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsn71WYzecYYQw3KkF40b%2Fuploads%2Fgit-blob-20671e5e7b303b209bd2aec24b44fcaa6446e7c6%2Fspeech-generator.png?alt=media" alt="The Speech Generator panel."><figcaption></figcaption></figure>

1. 将播放头放到语音应当开始的位置。
2. 点击 <i class="fa-comment-dots">:comment-dots:</i> **语音生成器** 图标。
3. 选择一个模型。
4. 添加说话者并编写脚本。
5. 点击 <kbd>生成</kbd>。新的音频片段会插入到播放头处。

语音生成器不使用时间选择。结果长度由脚本决定。

### 选择模型

从旁边的菜单中选择一个模型 <kbd>生成</kbd>.

<table><thead><tr><th width="200"></th><th>SeedAudio 1.0</th><th>ElevenLabs V3</th></tr></thead><tbody><tr><td>说话者</td><td>最多 3 个，可选</td><td>1–4，至少需要一个</td></tr><tr><td>说话者来源</td><td>预设歌手、描述歌手、参考音频</td><td>预设歌手</td></tr><tr><td>脚本</td><td>带有 @speaker 提及的自由文本</td><td>每次说话轮次对应一个文本块</td></tr><tr><td>设置</td><td>速度、音高、响度</td><td>稳定性</td></tr><tr><td>脚本长度</td><td>3000 个字符</td><td>2000 个字符</td></tr></tbody></table>

## SeedAudio 1.0

### 添加说话者

点击 **+ 说话者** 并选择一种来源：

* **选择歌手** — 从歌手库中选择一个预设歌手。
* **描述歌手** — 输入说话者名称（最多 50 个字符）和歌手描述（最多 300 个字符），例如“一个沉稳、无明显地域特征的声音，以冷静而权威的气质吸引注意。”将鼠标悬停在卡片上并点击编辑按钮，稍后可进行修改。
* **上传参考音频** — 选择 **从画布中选择** ，以便在画布上拖出最多 30 秒的范围，或者 **上传文件** 以选择一个最长 30 秒、10 MB 的音频文件。参考中的歌手将用于此说话者。

你最多可以添加三位说话者。将鼠标悬停在说话者卡片上并点击删除按钮即可移除。

### 编写脚本

添加说话者时，光标处会插入“@Speaker says”。请在其后写下台词。输入 `@` 可在脚本中的任意位置提及你的某位说话者，并可随时切换说话者。

脚本采用自然语言，因此你也可以描述一句台词的表达方式，例如“@Jamie smiled and said, “Happy music making!””。

提及只是普通文本：你可以编辑或删除它们。移除说话者后，其提及会变为普通文本。重命名已描述的说话者会同步更新其提及。

你也可以在不添加任何说话者的情况下生成。此时脚本会以默认歌手逐字朗读。

### 设置

打开面板左下角的设置菜单。双击某个滑块即可将其重置为默认值。

* **速度** — 从 x0.5 到 x2。
* **音高** — 最多可偏移 ±12 半音。
* **响度** — 从 x0.5 到 x2。

## ElevenLabs V3

<figure><img src="https://1816898227-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsn71WYzecYYQw3KkF40b%2Fuploads%2Fgit-blob-12ab3b3fc7096f97cf747a9ee62c8089011336e2%2Fspeech-generator-elevenlabs.png?alt=media" alt="Multi-speaker dialogue with ElevenLabs V3."><figcaption></figcaption></figure>

### 添加说话者

点击 **+ 说话者** 以便从歌手库中选择一位歌手。你最多可以添加四位说话者，且生成至少需要一位。

### 编写对话

脚本按轮次组织。每一轮都有一个说话者胶囊和对应文本。点击 **添加说话者** 在对话下方添加一轮并选择由谁说出。要更改某一轮的说话者，请点击其文本，然后点击顶部的说话者卡片。

方括号中的音频标签，例如 `[laugh]`, `[whispers]`，或 `[slowly]`，会影响台词的表达方式。已闭合的标签会在脚本中高亮显示。

### 设置

* **稳定性** — 数值越高，表演越稳定、一致；数值越低，则会带来更丰富的表现变化。

## 歌手库

<figure><img src="https://1816898227-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fsn71WYzecYYQw3KkF40b%2Fuploads%2Fgit-blob-058be877e6d95dfe96e374e522e1526977b12689%2Fspeech-generator-voice-library.png?alt=media" alt="The Voice Library in Speech Generator."><figcaption></figcaption></figure>

歌手库列出了你正在使用的模型中的预设歌手。

* **发现** — 浏览所有歌手。使用搜索框和筛选器缩小列表范围。
* **最近** — 你在此模型中最近使用的 10 位歌手。

点击耳机图标可预览歌手。点击某位歌手即可将其添加为说话者并关闭库。

## 生成

点击 <kbd>生成</kbd>。结果会作为普通音频片段插入到播放头位置，你可以像其他片段一样编辑它。


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.acestudio.ai/docs/product-wiki-zh/ai-gong-ju/speech-generator.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
