> ## 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.

# 纯渲染模式

如果你已经拥有语音智能体，可以继续由它决定何时回答、回答什么以及如何生成语音。Vivix 使用这路实时音频渲染角色。例如，当客户询问产品时，由你的智能体生成回答音频，角色跟随音频说话。标准的角色对话不需要使用纯渲染模式。

### 1. 决定由谁生成语音

在该模式下，实时音频由你的应用提供。对于完整的预录音频，请使用[音频脚本](https://docs.vivix.ai/cn/streaming-avatar/interaction/scripted-performances.md)。如果希望 Vivix 处理用户输入并生成回答，请使用[标准会话](https://docs.vivix.ai/cn/streaming-avatar/get-started/quickstart.md)。

### 2. 创建纯渲染会话

将以下配置添加到能够正常工作的创建会话请求中，并保留起始图片和输出配置。

```json theme={null}
{
  "pipeline_config": {
    "a2a_config": {
      "enable_a2a": true,
      "provider": "passthrough"
    }
  }
}
```

### 3. 接入实时音频

使用会话凭证加入 RTC 房间，发布你的音轨，并订阅角色视频。先使用麦克风验证连接，再接入语音智能体的音频输出。详情请参阅 [TRTC](https://docs.vivix.ai/cn/streaming-avatar/integrate/trtc.md) 或 [Agora](https://docs.vivix.ai/cn/streaming-avatar/integrate/agora.md) 集成指南。

### 4. 控制画面并关闭会话

你发布的音频会提供说话内容和音色。需要执行特定动作时，请使用[动作脚本](https://docs.vivix.ai/cn/streaming-avatar/interaction/scripted-performances.md)；需要改变外观时，请[切换图片](https://docs.vivix.ai/cn/streaming-avatar/interaction/outfits-and-scenes.md)。

需要停止输入时，停止发布音频。表演结束后关闭会话。


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