troubleshooting Question

sound sample rate resampling

Avatar of florinsuciu
florinsuciu asked on
7 Comments1 Solution938 ViewsLast Modified:
I have needed to do in Java an resampling from an sound (WAV or MP3) that have sample rate equal with 32KHz into a sound with 48KHz.
I have the array of sound samples, which will be filtered.
I have applied the bottom algorithm but I have obtained a sound with distortions (the resulted sound is played faster than the original sound.)
Algorithm: if we have a 32000hz rate in order to convert it to 48000hz we'll add between 2 sound samples a new sample equal to the first one. As input sound samples array will be X Y X Y X Y X Y and as output will be XXY XXY XXY XXY, so that the output array we'll have the size 1.5 of the input sound array.

Any suggestions, algorithms, sample code or URL links will be appreciated.
Thank you,

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros