You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While collecting background data with Collect, an error occurs while trying to play AMR files.
Steps to Reproduce
Create a new form
Enable background audio
Set the audio quality to Voice-Only
Save and deploy the form
Download the form on Collect
Complete a submission with the device collecting background audio
Send the submission
Refresh web UI
Go to the form Data tab
Try to play audio and receive an error
Expected behavior
The Audio should play without issue
Actual behavior
There is an error when attempting to play the .amr file
Additional details
The /attachments endpoint loads the .amr file without issue, and the file is playable on download.
This is probably the culprit:
AMR file is not one of the supported audio files that html5 audio tag supports. Please see the list below for supported audio formats:
http://en.wikipedia.org/wiki/HTML5_Audio#Supported_audio_coding_formats
I would recommend you convert your amr file to mp3 or ogg and then upload it and play it on your server.
We should be using the audio-conversion feature of the /attachments/ endpoint here to avoid issues like this /api/v2/assets/{asset_uid}/data/{data_id}/attachments/?xpath=Path_to_audio_question&format=mp3
The text was updated successfully, but these errors were encountered:
Description
While collecting background data with Collect, an error occurs while trying to play AMR files.
Steps to Reproduce
Voice-Only
Expected behavior
The Audio should play without issue
Actual behavior
There is an error when attempting to play the
.amr
fileAdditional details
The
/attachments
endpoint loads the.amr
file without issue, and the file is playable on download.This is probably the culprit:
https://stackoverflow.com/a/27915473
We should be using the audio-conversion feature of the
/attachments/
endpoint here to avoid issues like this/api/v2/assets/{asset_uid}/data/{data_id}/attachments/?xpath=Path_to_audio_question&format=mp3
The text was updated successfully, but these errors were encountered: