Well, it depends on how many different frequency bins he wants and how
complicated a windowing function. If he wants lots of bins and a fancy
window, he will wish he had direct access to the DSP on the phone as
well as raw audio.

Otherwise, he can get a lot of mileage out of an FFT algorithm even in
plain Java. Processors are so much faster these days, even on a phone.

On Sep 14, 3:30 am, Tez <earlencefe...@gmail.com> wrote:
> AudioRecord API.
> Using this you can get raw bytes from the microphone stream.
> Since you are analyzing audio, this is a heavy operation. You may want
> to consider the NDK.
> However, you cannot access the audio APIs from the NDK. You may have
> to write a JNI wrapper to transfer byte streams.
>
> Cheers,
> Earlence
>
> On Sep 14, 12:19 pm, Muhammad Ali <zaandr...@gmail.com> wrote:
>
> > Hi All,
>
> >     I am new for multimedia in java and I am going to develop an
> > application which can analyze the sound spectrum. I don't know how to
> > get a real time sound from the mic of the android and analyze it. If
> > someone know about any API and method that how to get real time sound
> > and get the values of its spectrum please help me, I am very thankful
> > you for your precious time.
>
> > Yours,
> > Ali
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to