javaandroidaudiotarsosdsp

TarsosDSP with android


I am trying to use TarsosDSP library with android, but it needs to use the javax.sound.sampled library which is not available on android as far as I'm aware.

is there any way to include the javax.sound.sampled package in android?

I found a library at - https://github.com/jld/linaro-android-gcc/tree/master/gcc-4.7/libjava/javax/sound/sampled, but this contains only .h files which i know are header files. is there a way of compiling this package into a jar which i can then use with android?


Solution

  • To use TarsosDSP within an Android application you don't really need the javax.sound.* packages. What is needed however, is a bridge between incoming audio and the TarsosDSP API. The incoming audio can be from a mirophone or an audio file. In Android this bridge is provided by the android.media packages.

    In practice this means you need to make a fork of TarsosDSP and leave out all references to javax.sound.*. Luckily, someone already prepared this for you: https://github.com/srubin/TarsosDSP/releases/tag/TarsosDSPAndroid-v3-MAD

    Regards,

    Joren