Skip to content

martoreto/opuscodec

Repository files navigation

opuscodec

Opus Audio Codec packaged for Android.

Based on code by λ.eranga as described in "Opus codec with android VOIP application" post on Medium, with the following changes:

  • Opus upgraded to 1.2.1
    • including ARM Neon and Intel SSE support
  • extended encoder API
    • specify profile
    • set bitrate and complexity
  • errors converted to exceptions

Usage

Add this to your main build.gradle:

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

and this to your app's build.gradle:

dependencies {
    compile 'com.github.martoreto:opuscodec:v1.2.1.2'
}

and see example app, specifically MainActivity.java for usage examples.