# Integration with Pixel Streaming

{% hint style="info" %}
To setup the Pixel Streaming server, we recommend taking a look over [this excellent guide](https://github.com/TensorWorks/PixelStreamingCloudGuide/blob/main/Pixel%20Streaming%20UE5.md).
{% endhint %}

1. Ensure you have the latest Convai 3.1.0 plugin or later.
2. Enable Unreal Engine's `Pixel Streaming` and the `Pixel Streaming Player` Plugins from the Plugins window.<br>

   <figure><img src="/files/ZTHEiYaHnCuqO4DMhw9t" alt=""><figcaption></figcaption></figure>
3. In the player blueprint which has the Convai Player component, add the PixelStreamingAudio component to the list of components.<br>

   <figure><img src="/files/EVwd9t8XOvLym0q5uncb" alt=""><figcaption></figcaption></figure>
4. Click on PixelStreamingAudio component, and in the details panel find Base Submix and choose AudioInput sound submix.<br>

   <figure><img src="/files/3p4R93fVMDqWohcDF6Bc" alt=""><figcaption></figcaption></figure>
5. On Begin Play in the event graph, add the following blueprint function to initialize Pixel Streaming with the Player Component.

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

<div data-full-width="false"><figure><img src="/files/VQsENLL9TmegeOc53Ept" alt=""><figcaption><p>To Get <em><strong>Set Pixel Streaming Audio Component</strong></em> Node</p></figcaption></figure></div>

{% hint style="info" %}
Now, pixel streaming mic input should be working. However, system microphone will no longer work. To change back and forth to and from system microphone, set Use Pixel Streaming Mic Input to true for enabling pixel streaming microphone and false to enable system microphone. This is found in the ConvaiPlayer component.
{% endhint %}

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


---

# Agent Instructions: 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/plugins-and-integrations/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.
