需要的AudioInputStream Android的等效 [英] Need Android equivalent of AudioInputStream

查看:278
本文介绍了需要的AudioInputStream Android的等效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着写一个Android应用程序,分析从用户的音乐库中的内容。让我们假设这些都是SD驱动器上的MP3文件,对于初学者。我能找到的Java算法来分析音乐文件,但我不能找到一个API来读取和去code中的文件(而不是打他们。有一个API来播放的文件,以及音频效果甚至班,但我没有看到任何一个应用程序,以获得从音乐文件去codeD数据,我可以从麦克风读取。

I'm trying to write an Android app that analyzes content from the user's music library. Let's assume that these are mp3 files on the SD drive, for starters. I'm able to find Java algorithms to analyze music files, but I can't find an API to read and decode the files (not play them. There's an API to play the files, and even classes for audio effects, but I don't see any way for an app to get to the decoded data from a music file. I can read from microphone.

J2SE有一个类AudoInputStream,但它不是安卓的一部分。有什么建议?

J2SE has a class AudoInputStream,but it's not part of Android. Any suggestions?

推荐答案

我的真正目的是能够看文件在我的Andr​​oid音乐库,并通过他们的节奏进行分类。我一直在寻找函数库,有助于这一点,但我遇到了一个叫回音巢服务,精细的工作,从我的Andr​​oid来计算BPM的MP3文件。

My real purpose was to be able to look at the files in my android music library and classify them by tempo. I was looking for libraries to help with this, but I came across a service called Echo Nest that worked fine from my Android for calculating BPM on mp3 files.

这篇关于需要的AudioInputStream Android的等效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆