Android mp3 analysis [closed] - android

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm making a music player for android and I would like to get the average BPM (maybe also frequencies or tones) of a song BEFORE playing it, so I can show the user some info about the song, I know I probably have to open a stream and apply some maths to it to get the data I need, but I don't know how to act, can anyone help me?

I finally found the solution!
I'm using the Minim java audio library, which can performs offline analysis on the audio buffer :)
http://code.compartmental.net/tools/minim/manual-minim/

You can use the FFT
FFT library in android Sdk
This example may be helpful:
Android audio FFT to retrieve specific frequency magnitude using audiorecord
another one:
Get sound frequency with Android FFT

Related

Android record audio for piano application [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Hello everyone tell me please: for me it is very important to me to record sound from audio output stream or other but am need record hardware sound from speakers for my piano application.
How do it work in other applications...
Please help me.
I not sure you want to record piano from your android application or you you want to create a sound bank from a piano and use it in the app, but either way you can use FMOD http://www.fmod.org/download/
It is a very powerful audio library (lots of game engines using it e.g. CryEngine, Unity, ...), it has both abilities of recording and playback and gives you a cross-platform unified API.
However if you only want to create a piano audio bank, I believe using MIDI instruments would be a better idea

How to compare two voices in Android? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to compare two voices(Names) in my App. Can I use Speech to Text api for it? The idea is to first convert them to text and then compare. Has anybody have tried it? If yes how accurate is it?
Comparing two audio files for similarity is an imperfect science best approached with hammers like Fast Fourier Transforms, audio "fingerprinting", and heuristic analysis. You will need to read up on signal analysis to get started. I recommend starting with this thread to get some ideas.

Get Raw Magstripe Data with audio jack reader [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
So i have recently acquired a few paypal magstripe card readers for free. My goal is to use this to get the raw data via the audio jack on an android device. My best guess at how to do this would be to use the AudioRecord stuff in android, then decode the audio signal. Would this be the best way? Anyone else tackle stuff like this? Examples?
This is not as simple as you might first imagine.
Record Audio. You will have to continuously read audio and place it into a buffer.
Decode Audio, save as 16bit PCM encoded, sampled at 44100hz. You will have to note when zero crossings occur and based on it generate a binary string. Then convert that binary string to ASCII.
Once you are this far you have your track 1 or track 2 data! From here you can follow the ISO 7813 format if you are parsing credit cards. It fairly easy to parse, once you understand the spec.
Check out these resources. Good luck!
AUDIO TO TRACK DATA:
http://www.instructables.com/id/Read-any-magnetic-strip-card-with-a-Square-reader-/
TRACK DATA:
http://en.wikipedia.org/wiki/ISO/IEC_7813
http://www.gae.ucm.es/~padilla/extrawork/tracks.html

How to draw waveform of Android's music player? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
one of the default live wallpapers that came with my phone was a wallpaper that displayed the wave form of music playing in the background in real time. I was wondering how one could go about doing this. It seems I should somehow access the streaming data of the background music and compute the samples in real time, but I have no idea how to get the streaming data. I think I can display the wave form by following this tutorial http://codeidol.com/java/swing/Audio/Build-an-Audio-Waveform-Display/, but I'm not exactly sure how to do it. Help would be greatly appreciated/
There is an Android class called Visualizer that lets you access audio being played
http://developer.android.com/reference/android/media/audiofx/Visualizer.html
In addition, since Android is all open source, you can look at how the live wallpaper does it!
https://android.googlesource.com/platform/packages/wallpapers/MusicVisualization/

How to combine two audio files into one in Android [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
I want to combine two audio files. (A audio file + B audio file = AB audio file)
After searching around, I think the following steps will work
Using an AudioTrack.
Decode PCM from audio files.
Combine PCM.
Are the above steps right, if not, what would be another way to achieve it?
Is there an example and Library source available to look at?
Check Audio Development for Android for information on the subject. Its going to take some research, I do not know much about Android or I would help further.

Categories

Resources