Skip to contentSkip to navigationSkip to topbar
Page toolsOn this pageProducts used
Looking for more inspiration?Visit the

31208: User denied access to microphone.


ERROR: 31208

error-31208 page anchor
VOICE
ERROR

Emitted by the Twilio Voice SDK when the browser or end user denies microphone permission during getUserMedia, preventing acquisition of an input audio track. In Voice JavaScript SDK 2.x this condition is reported as error 31401 UserMedia Permission Denied.

Possible Causes

possible-causes page anchor
  • The user clicked Block or otherwise denied the browser permission prompt for microphone access, so the SDK couldn't obtain an input audio track.
  • The browser has a saved deny or policy that blocks getUserMedia for the site, resulting in a permission denial.
  • On mobile or desktop, operating system level microphone permission for the browser or app is disabled.
  • Ask the user to reload the page and grant microphone permission when prompted so the SDK can acquire user media.
  • Instruct the user to allow microphone access in their browser site permissions if a previous deny was saved, then retry.
  • Ensure the device or mobile OS has granted microphone permission to the browser or app before attempting a call.
  • If your application uses Voice JavaScript SDK 2.x, handle error 31401 as the equivalent of 31208 and guide the user to enable microphone access.

Additional resources

additional-resources page anchor