需要 Android 等效的 AudioInputStream
我正在尝试编写一个 Android 应用程序来分析用户音乐库中的内容。首先,我们假设这些是 SD 驱动器上的 mp3 文件。我能够找到Java算法来分析音乐文件,但我找不到读取和解码文件的API(而不是播放它们)。有一个API可以播放文件,甚至还有用于音频效果的类,但我不知道没有看到应用程序从音乐文件中获取解码数据的方法。J2SE
有一个 AudoInputStream 类,但它不是 Android 的一部分。
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 has a class AudoInputStream,but it's not part of Android. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的真正目的是能够查看我的 Android 音乐库中的文件并按节奏对它们进行分类。我一直在寻找图书馆来帮助解决这个问题,但我遇到了一个名为 Echo Nest 的服务在我的 Android 上计算 mp3 文件的 BPM 效果很好。
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.