5

I read a lot about opus-codec but I am not understanding how can I use that in my sample java application. Is there any .so file available for opus which can be used?If not then how?

Ankit Jain
  • 2,230
  • 1
  • 18
  • 25

2 Answers2

7

There is currently not yet (at time of writing) any native Java library for Opus.

The Jitsi project is a Java-based VOIP and chat client which has Opus support. This is implemented by using a binary libopus library with a Java wrapper.

rmeakins
  • 1,309
  • 8
  • 13
1

You would need to use JNA to create a wrapper around libopus that you can call from Java. I have done something like that in C#: http://opusdotnetinvoke.codeplex.com/ It should be easy to rewrite that C# code into Java.

LeonG
  • 29
  • 1