Search Unity

Bug Microphone.Start and Microphone.End lag on Android

Discussion in 'Audio & Video' started by masta-yoda, Oct 20, 2021.

  1. masta-yoda

    masta-yoda

    Joined:
    Apr 19, 2020
    Posts:
    91
    I'm having a weird lag when I call Microphone.Start / Microphone.End to record AudioClips. It happens every time I call the Start method and it stalls my game for 0.5s which really breaks the player's experience. I didn't try it on iOS but PC platform doesn't have this issue.

    Any experience with the lag?
    Any suggestions on how to fix that?
     
    Trunksome and FarmerInATechStack like this.
  2. tomkail_betterup

    tomkail_betterup

    Joined:
    Nov 17, 2021
    Posts:
    106
    We see this on iOS too! It's probably more like 0.25s for us, but it's still pretty ugly.
     
  3. Trunksome

    Trunksome

    Joined:
    Jan 28, 2022
    Posts:
    17
    I have the same issue, and it really makes the use of the microphone difficult during gameplay. Did anyone find a solution to this? I'm using 2021.3.9 LTS.