# How to do Voice Chat on android?

**URL:** <https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [August 5, 2016, 2:59pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743 "2016-08-05T14:59:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [August 5, 2016, 2:59pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/1 "2016-08-05T14:59:24Z")

</div>

Now that multiplayer is finally working with UE4 and android I’d like to know if it’s possible to do voice chat on android devices (for a gearvr co-op experience). So far all information I’ve found is only for Windows and iOS voice chat - if it’s not supported yet could it be a feature request for 4.13?

Also have this topic as a answerhub query here: [How to do Voice chat on android? - Mobile - Unreal Engine Forums](https://answers.unrealengine.com/questions/464583/how-to-do-voice-chat-on-android.html)

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [August 5, 2016, 10:14pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/2 "2016-08-05T22:14:31Z")

</div>

I would look into getting libOpus (used on Win, Mac, Linux) working on Android. You can find it in Engine/Source/ThirdParty/libOpus.

We have already passed feature complete for 4.13; the preview period is mostly for bug fixes.

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [August 7, 2016, 8:03am UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/3 "2016-08-07T08:03:53Z")

</div>

> [@Chris Babcock;576590](#):
>
> I would look into getting libOpus (used on Win, Mac, Linux) working on Android. You can find it in Engine/Source/ThirdParty/libOpus.
> 
> We have already passed feature complete for 4.13; the preview period is mostly for bug fixes.

Hi Chris,

Thanks for the info - any chance of getting it added to the requested feature list of 4.14? The task of doing it myself is unfortunately beyond my skills 😉

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [August 8, 2016, 7:42pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/4 "2016-08-08T19:42:31Z")

</div>

I’ll see what I can do but no promises.

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [August 8, 2016, 7:55pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/5 "2016-08-08T19:55:45Z")

</div>

> [@Chris Babcock;576590](#):
>
> I would look into getting libOpus (used on Win, Mac, Linux) working on Android. You can find it in Engine/Source/ThirdParty/libOpus.
> 
> We have already passed feature complete for 4.13; the preview period is mostly for bug fixes.

Doesn’t Oculus Mobile SDK provide low-latency voice chat functionality ?

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [August 14, 2016, 9:11am UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/6 "2016-08-14T09:11:14Z")

</div>

> [@motorsep;577812](#):
>
> Doesn’t Oculus Mobile SDK provide low-latency voice chat functionality ?

Would be even better if we could get that included via blueprints! 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_389e656c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_389e656c](https://forums.unrealengine.com/u/anonymous_user_389e656c)\
**Post date:** [October 25, 2016, 8:41am UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/7 "2016-10-25T08:41:54Z")

</div>

I already wrote a basic implementation of the opus codec for android and of the voice module ([Help on writing android voice module? - Audio - Epic Developer Community Forums](https://answers.unrealengine.com/questions/204090/android-voice-chat.html)) but I would need some help for polishing the implementation and to open a proper pull request.

I’m interested in trying the oculus voip support for android too, it should already be integrated in the oculus branch of UE4 ([https://developer3.oculus.com/downloads/game-engines/1.9.0/Unreal\_Engine\_4\_Integration/](https://developer3.oculus.com/downloads/game-engines/1.9.0/Unreal_Engine_4_Integration/)), but I guess the voice module would be needed anyway. Anyone had a chance to try this yet?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_389e656c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_389e656c](https://forums.unrealengine.com/u/anonymous_user_389e656c)\
**Post date:** [October 28, 2016, 4:07pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/8 "2016-10-28T16:07:28Z")

</div>

Just created a pull request with my VoiceModuleAndroid implementation:  
[https://github.com/EpicGames/UnrealEngine/pull/2894](https://github.com/EpicGames/UnrealEngine/pull/2894)

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [October 28, 2016, 8:26pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/9 "2016-10-28T20:26:39Z")

</div>

> [@devel.bmad;615900](#):
>
> Just created a pull request with my VoiceModuleAndroid implementation:  
> [https://github.com/EpicGames/UnrealEngine/pull/2894](https://github.com/EpicGames/UnrealEngine/pull/2894)

Yay! Hopefully it will get accepted.

---

<div class="post-metadata">

**Author:** ![ZkarmaKun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zkarmakun/32/1194545_2.png) [@ZkarmaKun](https://forums.unrealengine.com/u/ZkarmaKun)\
**Post date:** [July 26, 2017, 12:53am UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/10 "2017-07-26T00:53:06Z")

</div>

> [@devel.bmad;615900](#):
>
> Just created a pull request with my VoiceModuleAndroid implementation:  
> [https://github.com/EpicGames/UnrealEngine/pull/2894](https://github.com/EpicGames/UnrealEngine/pull/2894)

Hello!  
I have been working for a while with a voice implementation to send data through google translator services, and is working pretty well on pc, now my problem is just with Android, but I cannot get it work, so far I did this:  
1.- set defaultEngine.ini and defaultGame.ini with the proper stuff  
2.- add permission android.permission.RECORD\_AUDIO  
3.- include every module related to Online a Voice,  
4.- I saw in the UPL that apparently is something else called bAndroidVoiceEnabled in the engine.ini in this section: section=“/Script/AndroidRuntimeSettings.AndroidRuntimeSettings”, so I did as well

I am running in android 7, from a Galaxy s6, the target SDK es 22, I don’t want to deal with runtime permission, but I will, not options at this rate 😃

Sorry to ask directly to you, but seams you are the MAN:p, this is the final step for my App, I am closeee! I got OK on my state but never data

EDIT: solved, it needs to be on 23 by force ja

---

<div class="post-metadata">

**Author:** ![xseal](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xseal](https://forums.unrealengine.com/u/xseal)\
**Post date:** [October 26, 2017, 6:18am UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/11 "2017-10-26T06:18:10Z")

</div>

Can anybody share a tutorial or example for how to use this android voice module?  
I studied c++ codes,but still don’t know how to use.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Omar\_Vector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omar\_Vector](https://forums.unrealengine.com/u/Omar_Vector)\
**Post date:** [July 26, 2018, 4:57pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/12 "2018-07-26T16:57:15Z")

</div>

> [@ZkarmaKun](#):
>
> EDIT: solved, it needs to be on 23 by force ja

What do u mean by that, cuz I’ve the same exact problem , state is OK, but no data .

---

<div class="post-metadata">

**Author:** ![ZkarmaKun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zkarmakun/32/1194545_2.png) [@ZkarmaKun](https://forums.unrealengine.com/u/ZkarmaKun)\
**Post date:** [July 27, 2018, 3:27pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/13 "2018-07-27T15:27:18Z")

</div>

Hi [USER=“33354”]Omar Vector[/USER] it means exactly that, in your project settings in the android tab you must set your SDK target as 23 at least, otherwise the function GetState will return OK, but without gettings any bytes, also I did that 4 versions ago, I dunno if is still working that way.

---

<div class="post-metadata">

**Author:** ![Omar\_Vector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omar\_Vector](https://forums.unrealengine.com/u/Omar_Vector)\
**Post date:** [July 27, 2018, 11:22pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/14 "2018-07-27T23:22:20Z")

</div>

> [@ZkarmaKun](#):
>
> Hi [USER=“33354”]Omar Vector[/USER] it means exactly that, in your project settings in the android tab you must set your SDK target as 23 at least, otherwise the function GetState will return OK, but without gettings any bytes, also I did that 4 versions ago, I dunno if is still working that way.

I did that and only work if the app started for first time, but once I close the app and run it again, the state is only OK , but no bytes , and if I turned off mic permission manually and restarted the app, it works fine once again, just close it and reopen it, state is OK but no bytes, thats really weird , have u ever face same situation ?

---

<div class="post-metadata">

**Author:** ![ZkarmaKun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zkarmakun/32/1194545_2.png) [@ZkarmaKun](https://forums.unrealengine.com/u/ZkarmaKun)\
**Post date:** [July 29, 2018, 4:57pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/15 "2018-07-29T16:57:44Z")

</div>

hey [USER=“33354”]Omar Vector[/USER] ,totally only works the first time, it is an error in the implementation I think, I didn’t continue my development, but that problem was always there, probably is going to be forever since this was developed for a third party

---

<div class="post-metadata">

**Author:** ![Omar\_Vector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omar\_Vector](https://forums.unrealengine.com/u/Omar_Vector)\
**Post date:** [July 31, 2018, 2:48pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/16 "2018-07-31T14:48:58Z")

</div>

> [@ZkarmaKun](#):
>
> hey [USER=“33354”]Omar Vector[/USER] ,totally only works the first time, it is an error in the implementation I think, I didn’t continue my development, but that problem was always there, probably is going to be forever since this was developed for a third party

You are right, I have debugged the build with android studio and found this error AudioRecord start() error -38 , then I found that bec the record driver is not released when the game is closed .

I’ve submitted a bug report already , hope they are able to reproduce it . or I’ve to work with source instead of the binray version trying to apply a fix .

Thanks for your confirmation, I thought I was doing something wrong:))

---

<div class="post-metadata">

**Author:** ![ZkarmaKun](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zkarmakun/32/1194545_2.png) [@ZkarmaKun](https://forums.unrealengine.com/u/ZkarmaKun)\
**Post date:** [August 1, 2018, 6:06pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/17 "2018-08-01T18:06:53Z")

</div>

Hi [USER=“33354”]Omar Vector[/USER] Sorry I saw you other post, seems you are struggling with this, if the error is inside the start() method, I can infer the real error is inside the way they are using to close the device driver, did you try to modify the .xml with the Java Code?, perhaps is fixable there without having to use the source code version, if you reach this far I think is going to be easy to fix, I will check my old code 😛

---

<div class="post-metadata">

**Author:** ![Omar\_Vector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omar\_Vector](https://forums.unrealengine.com/u/Omar_Vector)\
**Post date:** [August 1, 2018, 7:41pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/18 "2018-08-01T19:41:00Z")

</div>

> [@ZkarmaKun](#):
>
> Hi [USER=“33354”]Omar Vector[/USER] Sorry I saw you other post, seems you are struggling with this, if the error is inside the start() method, I can infer the real error is inside the way they are using to close the device driver, did you try to modify the .xml with the Java Code?, perhaps is fixable there without having to use the source code version, if you reach this far I think is going to be easy to fix, I will check my old code 😛

There is good news, Finally , they confirmed the bug and ready for vote , please vote 😃  
[https://issues.unrealengine.com/issue/UE-62389](http://issues.unrealengine.com/issue/UE-62389) .  
This is the answerhub thread about it  
[https://answers.unrealengine.com/que…droid-log.html](https://answers.unrealengine.com/questions/813082/bug-audiorecord-start-status-38-error-android-log.html)

With regard to driver issue, yes u are right, when it close , it doesnt clear up the driver and shutdown it even if I called VoiceCapture-\>Shutdown() , I have checked this error on stackover flow .

For .xml , I think I can dig there, but not sure exactly where to find the file , I will search for it ,but yes, I’m struggle as hell ,its like 1 month for now even more . and really I dont wanna move to unity cuz of this, since my app depends on this feature mainly ,even unity has more worse bugs related to some devices gpus already 😃 and they didnt fix it as they told me “Out datated gpus” while I’m still able to hit 60fps with unreal with decent scenes on my current device .

anyway, if u are able to get any fix let me know, while I keep digging hard already, and if I could hit the fix, I will update all of my thread related to that.

Thanks again mate:))

---

<div class="post-metadata">

**Author:** ![motorsep](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/motorsep/32/918698_2.png) [@motorsep](https://forums.unrealengine.com/u/motorsep)\
**Post date:** [August 1, 2018, 7:47pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/19 "2018-08-01T19:47:46Z")

</div>

[USER=“33354”]Omar Vector[/USER]

When I click on link with the issue, it doesn’t work. If you hove mouse over the link you’ll see it’s broken, showing https// (no : )

---

<div class="post-metadata">

**Author:** ![Omar\_Vector](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Omar\_Vector](https://forums.unrealengine.com/u/Omar_Vector)\
**Post date:** [August 1, 2018, 7:49pm UTC](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743/20 "2018-08-01T19:49:48Z")

</div>

> [@motorsep](#):
>
> [USER=“33354”]Omar Vector[/USER]
> 
> When I click on link with the issue, it doesn’t work. If you hove mouse over the link you’ll see it’s broken, showing https// (no : )

its fixed now:))

thanks for let me know

[Next page](https://forums.unrealengine.com/t/how-to-do-voice-chat-on-android/70743.md?page=2)
