change playback speed of an MP3/wav? #499
-
Hello folks, |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
MP3 should be possible but WAV is much more efficient: To play the output speed with pitch change just change the output sample rate. You can also compbine this with Pitch Shifting though I would tend to think that the quality will not be very good... |
Beta Was this translation helpful? Give feedback.
-
thank you for the quick answer. Why do you think that the quality won't be good? What are the influencing factors? |
Beta Was this translation helpful? Give feedback.
-
Pitch shifting is generating additional waves or removing waves from the signal. I think this is quite tricky to do w/o distorting the original signal. I am providing different implementations, so you have something to play with. I never tried to change the sample rate during playback, so I can't provide any comments for that... |
Beta Was this translation helpful? Give feedback.
-
okay, I'll try... |
Beta Was this translation helpful? Give feedback.
-
I was rewriting the ResampleStream class to support a dynamic factor. I think this is the cleanest solution to change the speed and I would expect the quality to be acceptable. Here is an example: https://github.com/pschatzmann/arduino-audio-tools/blob/main/jupyter/TestsResample.ipynb |
Beta Was this translation helpful? Give feedback.
MP3 should be possible but WAV is much more efficient: To play the output speed with pitch change just change the output sample rate. You can also compbine this with Pitch Shifting though I would tend to think that the quality will not be very good...