Moodle for mobile

Recording audio in the app (WAV)

 
Picture of Ian MacKinnon
Recording audio in the app (WAV)
 

Hi,

When recording audio via the app it seems to record in WAV format (iPhone). This is problematic as the file sizes are much larger than MP3. Is there any way to change what format it records in? If not yet, are there plans to change this in the future?


Thanks,

Ian

 
Average of ratings: -
Picture of Dani Palou
Re: Recording audio in the app (WAV)
Core developersMoodle HQParticularly helpful MoodlersPlugin developers
Hi Ian,


to record audio we use the Cordova plugin Media Capture. This plugin doesn't allow configuring the format to record, and it doesn't seem the Cordova team is going to support it.

So the only solution would be to convert the file once recorded. That's something that we would have to test because we don't want to slow down the app, and right now we're quite busy with the Ionic 3 migration, so we aren't going to support that soon.

Kind regards,

Dani

 
Average of ratings: -
Picture of Dave Perry
Re: Recording audio in the app (WAV)
Particularly helpful MoodlersTesters

I also believe there are licensing issues with using the mp3 format. Audacity (open source audio editor) make you add the LAME MP3 encoder dll file yourself, as there is a legal restriction on them distributing it with the installer.

Presumably pay-for software and things like iTunes include a convertor that they have paid a fee to license.

 
Average of ratings: -
Picture of Ian MacKinnon
Re: Recording audio in the app (WAV)
 

Ok thanks, good to know!

 
Average of ratings: -
Ralf Krause - Germany
Re: Recording audio in the app (WAV)
Particularly helpful MoodlersPlugin developersTranslators

Hi Dani,

I think that using m4a should be better to record audio files. 

Could this plugin be a better choice? https://github.com/markmarijnissen/cordova-plugin-media-m4a

Best regards, Ralf 

 
Average of ratings: -
Picture of Dani Palou
Re: Recording audio in the app (WAV)
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Thanks Ralf,

in general we try to stick to official or "well supported" Cordova plugins. We already have some problems with 2 plugins that aren't being maintained anymore. Also, we use ngCordova for Ionic 1 and Ionic Native for Ionic 3, so we try to use plugins that are supported by them. 

Anyway, I've opened an issue in the tracker in case we (or someone) want to take a look at it in the future:

https://tracker.moodle.org/browse/MOBILE-2314

Kind regards,

Dani

 
Average of ratings: -