Android Sound Capture in WAV format

Ali Lloyd ali.lloyd at livecode.com
Wed Oct 18 11:44:11 CEST 2017


I think this would make a nice example for my extensions session at
LiveCode Global tomorrow. Here's the link for anyone not signed up!
https://livecode.com/global/

On Tue, Oct 17, 2017 at 4:05 PM Ali Lloyd <ali.lloyd at livecode.com> wrote:

> Hi Peter,
> The Android MediaRecorder class does not support WAV unfortunately. There
> may be some third party libraries you could use to achieve this - including
> third party jar files will be possible once this PR is merged:
> https://github.com/livecode/livecode/pull/6059
>
>
> On Tue, Oct 17, 2017 at 10:14 AM Peter Reid via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> Since Ali got sound capture for Android working, I'm trying to see if
>> it's possible to output the sound in WAV format instead of MP4 format. I'm
>> trying to compare 2 sounds (1 prepared previously against 1 captured on the
>> Android device) and it seems to be easier to compare them if they are both
>> uncompressed WAV files.  Looking at the various parameters in the library,
>> I can't see how to set it up to output in uncompressed WAV format. Here is
>> the initialisation code I'm using:
>>
>>         androidRecorderSetRecordInput "Mic"
>>         androidRecorderSetRecordCompressionType "AMR NB"
>>         androidRecorderSetRecordFormat "ThreeGPP"
>>
>> I can't see which alternatives for CompressionType (AMR NB) and Format
>> (ThreeGPP) will give me uncompressed WAV files. Am I missing something or
>> does the library need updating to support WAV (if this is possible)?
>>
>> Peter
>> --
>> Peter Reid
>> Loughborough, UK
>>
>> > On 16 Sep 2017, at 11:00am, use-livecode-request at lists.runrev.com
>> wrote:
>> >
>> > Message: 1
>> > Date: Fri, 15 Sep 2017 11:53:17 +0000
>> > From: Ali Lloyd <ali.lloyd at livecode.com>
>> > To: How to use LiveCode <use-livecode at lists.runrev.com>
>> > Subject: Re: Android Audio Playback & Recording
>> > Message-ID:
>> >       <
>> CAJR0Q1jJp_yD819UBjWBmJMZwB+2Z5SMiaetJ1DWKFHH_611cQ at mail.gmail.com>
>> > Content-Type: text/plain; charset="UTF-8"
>> >
>> > Hi All,
>> > Firstly thanks to Peter Reid for discovering that the foreign bindings
>> in
>> > that blog post were out of date! I have updated the blog accordingly. I
>> > took the liberty of tidying up the LCB code, and adding docs and a
>> sample
>> > stack - you can check them out here (for now)
>> > https://github.com/livecode/livecode/pull/5941/files
>> >
>> > The library should be included in 9.0 DP 9.
>> >
>> > Cheers,
>> > Ali
>> >
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>


More information about the use-livecode mailing list