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

How compile OPUS

Hello,

I am working on ble/audio application on nrf52832. I would like to know how to compile OPUS codec (used in smart remote) so I can use it on arm cortex. For now I compiled it with simplest path (./configure; make; make install) but when I try to link it to my application is says 

libopus.a: error adding symbols: File format not recognized

Any help is welcomed.

Michal

Parents Reply
  • So I am still unable to do decoding but I have small success. I am able to run encode on pcm samples from sd card, save it to file on sd and then read it, decode it back to pcm. And when I play it with my dac it works. The problem is that when I take the .opus file from sd card and try to decode it on pc with opustools, the tool says it is not an opus file. So maybe that is also problem when I try to decode .opus file from taken from pc? Is it possible that files encoded on nrf are not compliant with opus format somehow? 

    EDIT: So I took a look at opus specification and I can see that header is present in every .opus file. Does SR implements adding header to .opus file? 

Children
Related