This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set some parameters for opus codec? Is there a demo for it?

I am using opus to compress and decompress audio data, but I don't know how to port it to the SDK. specific process.

  • Hello,

    You can check out the example found in the SDK for the Smart Remote, which is a custom SDK tailored for smart remote applications.If I remember correctly, it is using the opus codec by default. Perhaps you can look into this to see how to port it to the SDK.

    Best regards,

    Edvin

  • hi!

    I can now use opus for audio codec, but I found a problem, is its coding efficiency is a bit low, I am a frame data volume for 480 byte of the audio data encoding, I measured it takes 17 ms encoding time, this time is very long, for me when I was a shorter time frame, he completely the coding time can't keep up with the speed of my data.How do I solve it?

    Best regards,

    Ellison

  • That is all we have really. Audio over BLE is not really supported at this point in time. It is currently in the process of happening, but I am not sure of the details, and how this codec is handled. Perhaps you need a more powerful processor. 

    In the smart remote SDK this is only used to send voice commands, and not a continuous stream. If that is what you are trying to acheive, I am not sure whether that is possible. Also note that there is currently no way to discard packets in BLE, so if the connection is poor (large distance or a lot of noise), there is no way to discard packets that are not Acked, even though they are getting old. 

    BR,

    Edvin

  • Opus Codec needs to be compiled in Release mode to run properly.  

Related