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

How to play 52840+broadvoice?

I have a BLE device with a MIC, which collects voice data and coded to BroadVoice 32k.

So I want to design a central to get this voice data.

What I think is use 52840 and external I2S decoder to do it. 

I have some concerns:

1.Is there any example how to play broadvoice codec with 52840?

2.Does 52840 have enough capability to do the decode thing?

Thanks.

Parents Reply Children
  • Hi

    Good to hear that enabling newlib fixed your issue Slight smile

    Please note that in NCS you should use k_malloc() instead of malloc(), sorry for not specifying this earlier. 

    It is quite common for encoding to be a heavier task than decoding, most audio and video codecs work this way. 

    In many applications you only encode once to store a compressed file, and then run the decoder every time you open the file, which means that it is more important to optimize the decoder algorithm than the encoder algorithm. 

    In audio applications you typically have more resources (processing power, energy) available in the device that produces the audio, compared to the one that plays it back, which also makes it sensible to speed up the decoder operation at the cost of the encoding. 

    Best regards
    Torbjørn

  • Hi,

    thanks for reply,

    when i add the line to Pro.conf

    CONFIG_NEWLIB_LIBC=y

    it work well,

      

    thanks

    Best regards

Related