> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vivix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 使用简短语气词快速回应

在主要回答开始前，先用简短的“mm”或“hmm”作出声音回应，可以让实时对话中的停顿显得更加自然。

## 1. 在 Speaking Style 中添加语气词规则

在 [Persona](https://docs.vivix.ai/cn/streaming-avatar/character/persona.md#speaking-style) 的 **Speaking Style** 中加入以下内容，并保留角色其余的性格和回应习惯。

```markdown wrap theme={null}
## Speaking Style
For replies that include speech, begin with a short, closed-mouth acknowledgement such as mm, hmm, or mhm on a line of its own. Start the answer on the next line, with no blank line between them. Vary the sound rather than repeating the previous reply's opening.
Keep the first line to the sound alone, optionally followed by punctuation. Use a real line break. Do not add labels or stage directions. Keep the answer in the character's usual style and requested language. Omit the cue for a tool call that contains no speech.
```

请将这些规则合并到已有部分中，不要再添加第二个 Speaking Style 部分。删除冲突规则，例如“整段回复保持在同一行”，并更新仍使用旧格式的示例。

请选择闭口即可发出的声音。“Sure”或“Wow”等词需要正常口型，应放在主要回答中。如果角色使用其他语言，请为该语言选择并测试合适的闭口语气词。

## 2. 启用快速播放

在[创建会话](https://docs.vivix.ai/cn/streaming-avatar/api-references/sessions/create.md)请求中，将 `pipeline_config.tag_audio_enabled` 设置为 `true`：

```json theme={null}
{
  "pipeline_config": {
    "tag_audio_enabled": true,
    "tts_config": {
      "tts_voice_id": "longanhuan_v3.6"
    }
  }
}
```

将该片段与其他配置合并。此字段为布尔值，默认值是 `false`。需要启动新会话才能应用变更。

Persona 要求角色先生成开场语气词；该开关则让符合条件的开场语气词能够快速播放，两者缺一不可。此开关不会让对话模型更快生成主要回答。

## 3. 先检查文本，再试听效果

生成的回复应类似：

```text wrap theme={null}
hmm
That sounds like a good way to spend the afternoon.
```

英语开场语气词不要超过 **10 个字母**。声音应单独占一行；“hmm, let me think about that”是一个句子，不属于简短语气词。

在 JSON 字符串中，`\n` 表示换行符。解析后，它应成为真正的换行。在 Persona 编辑器中，按 Enter 插入换行。试听时确认语气词之后能自然过渡到主要回答。

分别使用一个实际问题、一次纠正和一条情绪表达进行测试。检查语气词是否有所变化，同时确认回答仍符合角色设定。如果应用包含无语音的工具调用，请确认这些轮次仍然保持静音。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.