This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Thingy 52 microphone

Hello,

I am trying to extract audio from the thingy's microphone using the microphone driver. I know that the data it produces is encoded in dvi_adpcm. I would like to decode this data in order to have the audio samples and play the audio.

I tried converting the ADPCMDecoder.java file into C++ and running it in the PC (with the adpcm data retrieved from the thingy via uart), but I am having a hard time, since the output audio is just noise.

Has anyone successfully recovered audio samples from the Thingy? I really appreciated if someone could give me some tips.

Thanks in advance!

Parents Reply
  • Hi again, Miguel!

    I got back from one of the developers that ADPCM encoded recordings require some care with regards to framing. It's typically encapsulated into blocks of x milliseconds of audio and a header with encoder state attached. The C++ ADPCMDecoder you're using may expect a certain framing or header format that's different from the one provided by the Thingy:52. Hence, I suggest that you make sure to match the header format that the decoder expects with the one from the Thingy.

    Good luck and best regards,
    Carl Richard

Children
No Data
Related