problem with bluetooth headphone android

i have set recorder.ReactOnSystemChanges = true , and it's work when i change headphone on window & mac but on android it's can not connect with my bluetooth headphone , i try to get list microphone on android by using this script in documentation but can not get for android , please help

var enumerator = Recorder.PhotonMicrophoneEnumerator;
if (enumerator.IsSupported)
{
for (int i = 0; i < enumerator.Count; i++)
{
Debug.LogFormat("PhotonMicrophone Index={0} ID={1} Name={2}", i, enumerator.IDAtIndex(i),
enumerator.NameAtIndex(i));
microphones.Add(enumerator.NameAtIndex(i));
}


}

Comments

  • Hi @wromRed,

    Thank you for choosing Photon!

    We are aware of the issue.
    Currently Bluetooth devices are not fully supported when using Photon microphone type.
    We are working on a fix.
    No ETA but we try to release an update asap.
  • hi @JohnTube i have fix this problem by setting DSP Buffer Size at first start
    AudioConfiguration _audioConfig = AudioSettings.GetConfiguration();
    _audioConfig.dspBufferSize = 1024;
    AudioSettings.Reset(_audioConfig);
    and now it can use bluetooth headphone (have test for android and ios ) hopefully it's can help someone have same issue like me
  • but now i have problem with photon voice for android device have no sound , example when join the room ios device can hear what android device talking but android device can not
  • Hi @wromRed,

    So you switched back to Unity microphone type I guess to make Bluetooth audio work...

    The no sound problem is probably due to:

    - Android permissions
    - clients not on the same room? (see matchmaking checklist)
    - some issue with the microphone? hardware or else?
    - some playback problem? hardware or else?

    Make sure to try on different devices.
  • wromRed
    wromRed
    edited September 9
    hi @JohnTube i keep photon microphone type
    - i already get permission for android
    - client is in the same room
    - the problem is IOS user can hear what android user said but android can not
    - i have try with samsung galaxy note 10 and xiaomi mi 10
  • Then maybe there is an issue in recording in iOS if it's not playback in Android.
    Did you enable microphone permission for iOS?
    See here.
  • hi @JohnTube yes i have enable micro permission for both Android & iOS