> 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/guides/integration-with-pixel-streaming.md).

# 与 Pixel Streaming 集成

{% hint style="info" %}
要设置 Pixel Streaming 服务器，我们建议先看看 [这份优秀的指南](https://github.com/TensorWorks/PixelStreamingCloudGuide/blob/main/Pixel%20Streaming%20UE5.md).
{% endhint %}

1. 请确保您已安装最新的 Convai 3.1.0 插件或更高版本。
2. 启用 Unreal Engine 的 `Pixel Streaming` 以及 `Pixel Streaming Player` 插件，方法是从插件窗口中进行操作。<br>

   <figure><img src="/files/e5d736f8924c61c40bab3c3fb9c7b0d709293fe3" alt=""><figcaption></figcaption></figure>
3. 在包含 Convai Player 组件的播放器蓝图中，将 PixelStreamingAudio 组件添加到组件列表中。<br>

   <figure><img src="/files/2de1432e735021f53c3f43e84df5e79371f05eca" alt=""><figcaption></figcaption></figure>
4. 点击 PixelStreamingAudio 组件，然后在详情面板中找到 Base Submix，并选择 AudioInput sound submix。<br>

   <figure><img src="/files/38e63086cfef55c656da1f70ce129b4d9bb85946" alt=""><figcaption></figcaption></figure>
5. 在事件图的 Begin Play 中，添加以下蓝图函数，以使用 Player Component 初始化 Pixel Streaming。

<figure><img src="/files/fce9f4e5c76d9f42177638af32102b994f4b0b22" alt=""><figcaption></figcaption></figure>

<div data-full-width="false"><figure><img src="/files/a1cc42226bbef5868ead05983dffc44d54f2b349" alt=""><figcaption><p>获取 <em><strong>设置 Pixel Streaming 音频组件</strong></em> 节点</p></figcaption></figure></div>

{% hint style="info" %}
现在，像素流传输麦克风输入应该可以工作了。不过，系统麦克风将不再工作。要在系统麦克风之间来回切换，请将 Use Pixel Streaming Mic Input 设为 true 以启用像素流传输麦克风，设为 false 以启用系统麦克风。此选项可在 ConvaiPlayer 组件中找到。
{% endhint %}

<figure><img src="/files/a841e6361aeb3dcbf0f3ff35f4712a3f3e2ac226" alt=""><figcaption></figcaption></figure>


---

# 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/guides/integration-with-pixel-streaming.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.
