Any way to change the sampling frequency of a WAV (or MP3) in Android or just Java? -


i'm trying files played through mono (sco) bt headset in android. files have have 8000 hz frequency, ones have 44100 hz. files mp3s, i've created code convert them wavs, since know android doesn't handle mp3s natively.

this has done on device @ execution time,so can offer suggestions?

i should mention don't care format files end in, long can played using mediaplayer.

44100/8000=5.5125 can try take 5.5125 samples , calculate average value , reduce sample rate

i think should work although im sure result noisy ist worth trying

you can take every 5.5125 sample maybe can http://en.wikipedia.org/wiki/downsampling


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -