This project is simple Android Example for RubberBand Library.
Sample song, which is pitch shifted with ratio 1.2 and sped up with ratio 1.3, will be played automatically when you run this example. (Note that speed ratio > 1 means it is sped up, unlike RubberBand Library. You might want to put inverse value of ratio you expect to change speed in RubberBand)
ExoPlayer is used to play the audio file, and custom AudioProcessor RubberBandAudioProcessor is added to process audio with RubberBand.
Copyright information of the sample song is noted below section. For bundled libraries, check this.
You need to build RubberBand with android-ndk first. See here for further information.
Then you need to include RubberBandStretcher.java
and RubberBandAudioProcessor.kt
in this project.
Note that RubberBandStretcher.java
is different from the one in RubberBand Library! You should include version of this project to make this correcty operate.
Lastly, Create ExoPlayer instance with RubberBandAudioProcessorChain.
Song: Step! by Hybee