# Unity - Text In Text Out Only?

**URL:** https://forum.convai.com/t/unity-text-in-text-out-only/1719
**Category:** Unity SDK
**Tags:** question, unity
**Created:** [September 19, 2024, 7:16pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719 "2024-09-19T19:16:57Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 7:16pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/1 "2024-09-19T19:16:57Z")

</div>

**Original Discord Post by lt.doge | 2024-09-19 19:16:57**

I was wondering if there was a way to configure the NPC in Unity to respond with Text Only. It seems if I turn off/remove the Audio source component, they still move their lips as if audio is playing. How can I circumvent any of this and have a strictly text to text interaction?

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 7:24pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/2 "2024-09-19T19:24:23Z")

</div>

**Reply by k3kalinix | 2024-09-19 19:24:23**

Hello \<@260629014962503681\> ,

Just disable the audio source component and remove lipsync component.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:24pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/3 "2024-09-19T20:24:12Z")

</div>

**Reply by lt.doge | 2024-09-19 20:24:12**

In the console log I see errors “Can not play a disabled audio source.” I was hoping there was a way to just not use audio entirely and keep it all text. The interaction I’m after is just text to text with as little latency as possible. It seems like it’s still trying to process audio in the background, when I don’t need audio at all. Any way this is possible?

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:25pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/4 "2024-09-19T20:25:07Z")

</div>

**Reply by lt.doge | 2024-09-19 20:25:07**

For example, when I use the web browser Character playground, and turn off the avatar’s audio, responses are much quicker and purely text. Can something like this be achieved within the Unity Plugin?

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:26pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/5 "2024-09-19T20:26:42Z")

</div>

**Reply by k3kalinix | 2024-09-19 20:26:42**

Yes, but it’s not that easy. You need to remove scripts related to audio processing.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:26pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/6 "2024-09-19T20:26:59Z")

</div>

**Reply by k3kalinix | 2024-09-19 20:26:59**

You have to check ConvaiNPC.cs and ConvaiGRPCAPI.cs

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:30pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/7 "2024-09-19T20:30:56Z")

</div>

**Reply by lt.doge | 2024-09-19 20:30:56**

I searched the Discord for this topic, and it appears there was a text-in-text-out scene. Is this no longer the case?

**Images:**

 ![image.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/c/c95b27c269c4dbb012cb71ef29df5a104f7577fc.png)

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:31pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/8 "2024-09-19T20:31:15Z")

</div>

**Reply by k3kalinix | 2024-09-19 20:31:15**

It is pretty old post.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:31pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/9 "2024-09-19T20:31:16Z")

</div>

**Reply by k3kalinix | 2024-09-19 20:31:16**

Yes

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:32pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/10 "2024-09-19T20:32:03Z")

</div>

**Reply by lt.doge | 2024-09-19 20:32:03**

Thanks. I’ll poke around in the scripts then

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:35pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/11 "2024-09-19T20:35:21Z")

</div>

**Reply by k3kalinix | 2024-09-19 20:35:21**

\<@260629014962503681\>

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:35pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/12 "2024-09-19T20:35:58Z")

</div>

**Reply by k3kalinix | 2024-09-19 20:35:58**

Can you update the CreateGetResponseRequest Method by adding AudioConfig = new AudioConfig { DisableAudio = true }?

**Images:**

 ![image.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/6/6a9711adca39827c3a5f941aa0858cf2321c7e74.png)

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:44pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/13 "2024-09-19T20:44:26Z")

</div>

**Reply by lt.doge | 2024-09-19 20:44:26**

hmm, that didn’t work. the NPC no longer responds to voice or text

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 19, 2024, 8:46pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/14 "2024-09-19T20:46:01Z")

</div>

**Reply by k3kalinix | 2024-09-19 20:46:01**

\<@433610960725344267\>

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 21, 2024, 9:18am UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/15 "2024-09-21T09:18:38Z")

</div>

**Reply by raghuvanshagarwal | 2024-09-21 09:18:38**

One way is to remove the lipsync and then turn the volume of the audio source to zero, the other method is to modify the ConvaiNPCAudioManager and there will be a Coroutine which is responsible for playing the audio, you can modify it such that it doesn’t play the audio and just shows the text

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 21, 2024, 9:19am UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/16 "2024-09-21T09:19:00Z")

</div>

**Reply by raghuvanshagarwal | 2024-09-21 09:19:00**

Lmk if you are able to do it otherwise I will provide the modified code

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 21, 2024, 9:19am UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/17 "2024-09-21T09:19:43Z")

</div>

**Reply by k3kalinix | 2024-09-21 09:19:43**

He does not want to receive Audio Data.

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 21, 2024, 9:23am UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/18 "2024-09-21T09:23:13Z")

</div>

**Reply by raghuvanshagarwal | 2024-09-21 09:23:13**

Yeah but text data comes only with Audio data, so user can modify to not play the audio but just extract the text

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 21, 2024, 12:50pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/19 "2024-09-21T12:50:59Z")

</div>

**Reply by k3kalinix | 2024-09-21 12:50:59**

Hello \<@260629014962503681\>,

Could you please create a new scene?

And add this code.

**Attachments:**

- [message.txt](https://cdn.discordapp.com/attachments/1286405693498458164/1287033334697951325/message.txt?ex=673f2cb2&is=673ddb32&hm=d1b2b9155e08fc79bad4d0a70ac0e9992df2df30f155a27fc57ebcdb96b1144a&)

---

<div class="post-metadata">

### Author: ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)
#### Post date: [September 21, 2024, 3:23pm UTC](https://forum.convai.com/t/unity-text-in-text-out-only/1719/20 "2024-09-21T15:23:01Z")

</div>

**Replying to raghuvanshagarwal’s Message**

> **Reply by raghuvanshagarwal | 2024-09-21 09:23:13**  
> Yeah but text data comes only with Audio data, so user can modify to not play the audio but just extract the text

**Reply by lt.doge | 2024-09-21 15:23:01**

You’re telling me that text always comes with the audio data? There’s no way to receive just the text the instance the NPC generates the response?

[Next page](https://forum.convai.com/t/unity-text-in-text-out-only/1719.md?page=2)
