I'm using the Ansca Corona version of Lua and was wondering what's the best way to get at the raw uncompressed sample data in a 5 second long 3GP audio file ?
Perhaps convert the 3GP to RAW (or WAV) ?
I'm using the Ansca Corona version of Lua and was wondering what's the best way to get at the raw uncompressed sample data in a 5 second long 3GP audio file ?
Perhaps convert the 3GP to RAW (or WAV) ?
You haven't stated why you need the raw audio data, or what kind of files you expect to process, so I will talk generally. Unfortunately AFAIK there is no pure Lua code to do what you want to achieve. You can only resort to using external libraries. Implementing the whole AMR audio decoder, which is usually embedded in the 3GP container, in pure Lua would be a hard task. You have roughly the following options:
If you cannot use external libraries, I see only this option: