LuisB
August 10, 2023, 7:02pm
1
Estimada comunidad, estoy teniendo un problema con los audios que se almacenan en el servidor, aparentemente estos estan guardando bien pero al momento de querer escucharlos ya sea directamente desde el servidor o por medio de la URL me sale siempre un mensaje de error.
Para esta estudio requiero realizar el proceso de grabación y me es indispensable poder solucionar este problema, agradezco su colabroación.
Estoy usando kobocollect v2023.1.2
Pruerba grabaciones audios.xlsx (141.1 KB)
Pruerba_grabaciones_audios_-all_versions -labels -_2023-08-10-18-37-04.xlsx|attachment (6.6 KB)
LuisB
August 10, 2023, 11:24pm
2
Estimados, al parecer el problema se presenta con los audios que se configuran como “voice only”, realizando pruebas con la configuración “Low” o “Normal” estas si estan funcionando y permite que la grabación se reproduzca desde el servidor, probablemente el tipo de extensión este fallando en este sentido o alguna configuración que no estoy teniendo en cuenta, pero para lo que necesito ya esta funcionando.
@LuisB , so you mean the normal
and low
are working as expected except for the voice-only
that cannot be played from the server? Did I get you correctly?
LuisB
August 11, 2023, 9:08pm
4
Es correcta la interpretación, con normal y low esta funcionando pero en voice-only no
1 Like
@LuisB , would you mind sharing with me the following information through a private message so that I could have a closer look at your case:
Username
Project name
Server
Note: You could share with me a private message as outlined in the post discussed previously:
Hi @Lavinia ,
You could send a private message to a user in the community forum as follows:
Option 1: Sending a private message
Step 1: Select the Reply button as boxed in red below.
[Image 1]
Step 2: Select the Reply button once again, but now from this place, as shown in the image below.
[Image 2]
Step 3: Now select New Message as shown in the image below.
[Image 3]
Option 2: Sending a private message to me
Step 1: Click on my username Kal_Lam.
Step 2: Then on the right, click the…
@LuisB , thank you for bringing this to the community. We will get back to you soon once we have an update for you.
@LuisB , thank you for bringing this to our attention. We now have a GitHub issue for the same.
opened 02:15AM - 22 Aug 23 UTC
bug
Front end
## Description
While collecting background data with Collect, an error occurs… while trying to play AMR files.
## Steps to Reproduce
1. Create a new form
2. Enable background audio
3. Set the audio quality to `Voice-Only`
4. Save and deploy the form
5. Download the form on Collect
6. Complete a submission with the device collecting background audio
7. Send the submission
8. Refresh web UI
9. Go to the form Data tab
10. 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:
```Quote
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.
```
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}/attachements/?xpath=Path_to_audio_question&format=mp3`
And …
opened 02:23AM - 22 Aug 23 UTC
bug
Back end
## Description
Converting an `.amr` audio file that has been uploaded to a su… bmission produces an error:
```
detail "Conversion is not supported for application/octet-stream"
```
## Steps to Reproduce
1. Create a with an audio field
2. Save and deploy
3. Open the form and upload an `.amr` file
4. Submit the form and go to the conversion endpoint `/api/v2/assets/{asset_uid}/data/{data_id}/attachements/?xpath=Path_to_audio_question&format=mp3`
5. Receive error
## Expected behavior
The browser should open an MP3 file
## Actual behavior
`detail "Conversion is not supported for application/octet-stream"`
## Additional details
FFMPEG might just need an additional codec installed to make this happen, or it might be as easy as re-checking the MIME-type on `.amr` files