Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved Vivox android 12 bluetooth and wired headphones issue

Discussion in 'Vivox (Voice & Text Chat)' started by PoletaevD, Oct 14, 2022.

Thread Status:
Not open for further replies.
  1. PoletaevD

    PoletaevD

    Joined:
    Dec 23, 2020
    Posts:
    7
    Hello, Android 12 bluetooth headphones play the vivox voice in the headphones but other Unity sounds are transmitted through the phone's speakers, also if we connect wired headphones, all sounds including Unity Audio are transmitted through the headphones but the user's local voice does not work. On Android 10 everything works fine.

    I tried this - https://support.unity.com/hc/en-us/...ox-How-to-Configure-Android-for-Bluetooth-use

    and also added permissions in manifest:
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
     
  2. PoletaevD

    PoletaevD

    Joined:
    Dec 23, 2020
    Posts:
    7
    Ok, bluetooth headphones working now, after runtime request permission
    for android.permission.BLUETOOTH_CONNECT

    But wired headphones still don't record audio (this worked in earlier vivox packages)
     
  3. dylan_unity3d

    dylan_unity3d

    Unity Technologies

    Joined:
    Nov 12, 2019
    Posts:
    75
    Hello,

    Can you also try uninstalling your app, and reinstalling with the following in the manifest for Bluetooth. I'd like to see if that works better than using ADMIN.
    Code (CSharp):
    1. <uses-permission android:name="android.permission.BLUETOOTH" />
    2. <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
    3. <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" />
    As for the wired headphones, can you let me know:
    • By recording audio, are you saying the microphone is not capturing audio?
    • What version of Unity you are using?
    • What version of Vivox you are using?
    • "This worked in earlier vivox packages" did you update your Android version and your Vivox version? What earlier Vivox version was this working on?
    • What device are you using?
    • Have you tried on any other Android devices?
     
  4. dylan_unity3d

    dylan_unity3d

    Unity Technologies

    Joined:
    Nov 12, 2019
    Posts:
    75
    I going to close out this forum post due to inactivity. I hope this is because you were able to resolve your issue. If you are still experiencing issues or run into another problem, please create a new forum post.
     
Thread Status:
Not open for further replies.