This project has moved and is read-only. For the latest updates, please go here.

Speed up a WAVE File?

Aug 28, 2009 at 2:43 PM
Edited Aug 28, 2009 at 3:01 PM

Hi!

I have a question about NAudio.

I'm trying to speed up a WAVE file while it is playing, but i dont know how...

I want to have three buttons:

Play (1x Speed)

PlayFast (2x speed)

PlayFaster (3x speed)

Can anyone help me please?

Aug 31, 2009 at 8:06 PM

No ideas? Or is it to hard to explain?

I tried to change the samplerate, but with no success... :(

Sep 1, 2009 at 11:04 AM

It's not that easy to do unfortunately. I have done it before with a codec (not open source). One issue you face is that speeding up audio also results in the "chipmunk effect", so pitch shifting is also required. If you look at the Skype Voice Changer project, you will see how to do pitch shifting, but speed-up is not supported.

Mark

Sep 2, 2009 at 8:58 AM

Hmpf...

At the moment, i am working with MCI command strings at the mpegvideo device. I can change the playback speed with one command. But i need a better sound API, because i have to reverse a wave file too. And MCI doesn't support this action.

But it seems that NAudio is as hard as waveOut its self for such things... :(

Any ideas for a better API choice? I need to speed up, reverse, play and record a wave file.

 

Thanks so far,

mdo

Sep 8, 2009 at 4:46 PM

check my answer on StackOverflow for a way to reverse a (PCM) WAV file using NAudio