Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & Accessibility Testing

Upload audio files to BrowserStack real Android devices

Important: This feature is currently a Private Beta service and available only under Team Pro, Enterprise, and Enterprise Pro plans. For more details, check out our pricing page.

Websites that use Web Real-Time Communication (WebRTC) technology, websites/webapps that record and process audios for speech and voice recognition, etc. use the system microphone for audio inputs.

Live enables you to test websites/webapps that require specific audio inputs, on select BrowserStack real Android devices. You can upload audio files from your system to a supported BrowserStack Android device. The uploaded audio files are used as inputs to the device microphone, to simulate the action of recording an audio. Your website under test uses the uploaded audio file as input when capturing audio using the getUserMedia API, as defined in Mozilla documentation.

In this guide, you learn about:

Supported devices and files

Devices Live supports Audio Injection on select real Android devices. All supported devices appear on the device listing with the audio upload enabled icon near the device name, as seen in the following image:

Audio enabled logo on Android devices
Browsers All browsers

The following audio files and file sizes are supported:

  • Files of the .aac, .mp3, .ogg, .wav, and .wma formats.
  • Maximum supported file size of 15 MB for .aac, .mp3, .ogg, and .wma files.
  • Maximum supported file size of 100 MB for .wav files.

Upload your audio file

Note: You can upload only one audio file at a time.
  1. Log in to the Live dashboard.
  2. On the Live dashboard, select a supported device with the audio upload enabled logo.
  3. Select the browser you want to test your website on.
  4. Click Launch Session on the prompt to start your test session.
    Your setup session takes approximately 90 seconds.
  5. On the Live toolbar, click Files & Media.
  6. On the Files & Media prompt, click the Audio injection tab.
    A sample audio file is available on the device. You can use the sample file or upload your audio file.
  7. Click Upload audio file to upload your audio file.
    You see a message on the dashboard that your audio file is successfully uploaded.

Test your website with audio

Prerequisite
Upload your audio file.

To test your website with audio:

  1. On your website, trigger the audio testing workflow and click the microphone icon.
  2. On the Live toolbar, click Files & Media > Audio injection.
  3. Click the play icon near the audio file name.
    When the audio file is playing, you do not hear the audio. However, your website receives the audio input from the audio file.

Additional information

  • If you upload a new audio file, the new file replaces the old audio file.
  • If you do not upload any new audio file for 30 days, your last uploaded file is removed and replaced with the sample audio file.
  • You can switch devices during your test session on supported audio upload enabled devices. The Files & Media > Audio injection tab in the new device displays the audio file that you uploaded. You can test with the same audio file on the new device.

Troubleshooting

The troubleshooting page lists some common errors you might see when using Audio Injection on BrowserStack real Android devices.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy