# When the other sdk set avaudio play and recorde, the unity ios fmod by bluetooth can't hear the voice

**URL:** <https://qa.fmod.com/t/when-the-other-sdk-set-avaudio-play-and-recorde-the-unity-ios-fmod-by-bluetooth-cant-hear-the-voice/15782>\
**Category:** Unity\
**Created:** [May 18, 2020, 6:28am UTC](https://qa.fmod.com/t/when-the-other-sdk-set-avaudio-play-and-recorde-the-unity-ios-fmod-by-bluetooth-cant-hear-the-voice/15782 "2020-05-18T06:28:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chuyuwei](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chuyuwei](https://qa.fmod.com/u/chuyuwei)\
**Post date:** [May 18, 2020, 6:28am UTC](https://qa.fmod.com/t/when-the-other-sdk-set-avaudio-play-and-recorde-the-unity-ios-fmod-by-bluetooth-cant-hear-the-voice/15782/1 "2020-05-18T06:28:32Z")

</div>

when I set  
int ToIos()  
{  
NSString\* category=@“AVAudioSessionCategoryPlayAndRecord”;  
int option=12;  
AVAudioSession\* session=[AVAudioSession sharedInstance];  
if(option!=-1)  
{  
[session setCategory:category withOptions:option error:nil];  
}  
else  
{  
//[session setCategory:category error:nil];  
}  
}

I cant hear the voice or hear error voice by bluetooth in ios. Anyone can help me.

---

<div class="post-metadata">

**Author:** ![tristanjl](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/tristanjl/32/261_2.png) [@tristanjl](https://qa.fmod.com/u/tristanjl)\
**Post date:** [May 20, 2020, 10:13pm UTC](https://qa.fmod.com/t/when-the-other-sdk-set-avaudio-play-and-recorde-the-unity-ios-fmod-by-bluetooth-cant-hear-the-voice/15782/2 "2020-05-20T22:13:20Z")

</div>

Hi chuyuwei,

It looks like your problem is related to apple apis. You should ask your question on the Apple developer forums.
