TarsosDSP与Android [英] TarsosDSP with android
问题描述
我想使用TarsosDSP库机器人,但它需要就我所知使用的javax.sound.sampled库,是不是可以在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.
有没有什么办法,包括在Android上的javax.sound.sampled中的包?
is there any way to include the javax.sound.sampled package in android?
我发现了一个在图书馆 - 的https://github.com/jld/linaro-android-gcc/tree/master/gcc-4.7/libjava/javax/sound/sampled,但是这仅仅包含.h文件,我知道是头文件。有没有编译这个包成一个罐子,我可以再与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?
推荐答案
要一个Android应用程序,你并不真正需要的 javax.sound。*
封装中使用TarsosDSP 。然而所需要的,是传入的音频和TarsosDSP API之间的桥梁。传入的音频可从mirophone或音频文件。在Android的这座桥是由 android.media
包提供。
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.
在实践中,这意味着你需要做的TarsosDSP叉子和留出 javax.sound所有引用。*
。幸运的是,已经有人prepared这个给你: https://开头的github .COM / srubin / TarsosDSP /发行/标签/ TarsosDSPAndroid-V3-MAD
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
问候,
净莲
这篇关于TarsosDSP与Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!