Skip to main content

Upload audio files on remote Android devices

Websites using 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 remote Android devices. You can upload audio files from your system to the remote device, and the uploaded audio files are used as inputs to the remote 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

All supported Android devices appear on the Live device listing with the audio upload enabled icon next to them, as seen in the following image: Audio enabled logo on Android devices

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 that 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 Media Injection.
  6. On the Media Injection prompt, click the Audio tab.
    A sample audio file is available on the device. You can use the sample file or upload your own audio file.
  7. Click Upload audio file to upload your own audio file.
    You see a message 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 capture audio workflow and click the microphone icon.
  2. On the Live toolbar, click Media Injection->Audio.
  3. Click the play icon on the audio file.
    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 is replaced with the sample audio file.
  • You can switch devices during your test session on supported audio upload enabled devices. The Media Injection->Audio tab in the new device displays the audio file that you uploaded. You can test the same audio file on the new device.

Troubleshooting

The troubleshooting page lists some common errors that you may see when using audio injection on remote 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
Talk to an Expert