Tau: [enh] Change speed playback

Created on 8 Jun 2020  路  12Comments  路  Source: Canardoux/tau

Is your feature request related to a problem? Please describe.
Hi thanks for the library! I wonder whether we can change the speed of audio, or we also need to use libraries like ffmpeg? Thanks!

It seems that both Android and iOS have native APIs, so maybe it can be easily done? :)
ref: https://stackoverflow.com/questions/42903516/android-studio-changing-playback-speed-of-audio-for-api23
ref: https://stackoverflow.com/questions/2427821/iphone-sdk-change-playback-speed-using-core-audio-avaudioplayer

enhancement TODO

Most helpful comment

Flutter Sound 8.3.4 is released.
It includes a new verb setSpeed.
@fzyzcjy : thank you for the links you wrote. They was useful.

All 12 comments

@Larpoux (or anyone related) Will you accept PR if I migrate it?

Hi @fzyzcjy .
Sure 馃挴 . Of course we will consider your PR if you submit one. Flutter Sound is actually in bad state because nobody is ready to collaborate. We really need contributors.
If you are ready to help Flutter Sound being a better plugin, we will be grateful.
Thank you so much if you can help 馃憤 馃挴

@fzyzcjy : I am currently working on an App which makes heavy use of sound.
My client asked me if it was possible to change the speed of audio, and I answered that it was not possible.
I would be very glad if I was wrong and if it is technically possible.
And my client will be happy, too.

@Larpoux IMHO it is definitely possible because of two reasons:

  1. Native android/ios has apis: https://stackoverflow.com/questions/42903516/android-studio-changing-playback-speed-of-audio-for-api23 and https://stackoverflow.com/questions/2427821/iphone-sdk-change-playback-speed-using-core-audio-avaudioplayer
  2. A competitive plugin: https://github.com/luanpotter/audioplayers has the feature (see: https://github.com/luanpotter/audioplayers/issues/557)

That should be really great 馃憤

@fzyzcjy : I plan to work a little bit on FS in a few weeks.
I am really excited by your proposition to add a way to control the playback speed.

Please tell me if you prefer to work yourself on this improvement or if you prefer that I work myself on this, following your advices with your two web links.

  • If you plan to work yourself, this is great. There is no urgency waiting your PR.
  • If you prefer that I work myself on this improvement, this is OK, too.

Just tell me.

@Larpoux I may not have time recently, and moreover, I have tried reading the source code but find it not very easy to understand... Thus maybe it is an easy task for you but challenging for people who are not familiar with your code.

OK @fzyzcjy , No problemo
Thank you very much to have tried to improve Flutter Sound. I appreciate very much when users feel concerned by Flutter Sound development.
I am going to look what I can do myself.

Have a nice day.

A quick-and-dirty solution could be to double the frequency rate , so the time results divided by two then. If the recorded audio is 16khz, you can play at 32khz. This will result in a 2x speed, and so on for the other speeds.. it would be already possible (I did a test from an audio file) without mods to the lib.

Any solution to this issue?

Flutter Sound 8.3.4 is released.
It includes a new verb setSpeed.
@fzyzcjy : thank you for the links you wrote. They was useful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gtilson picture gtilson  路  5Comments

deepbluev7 picture deepbluev7  路  5Comments

alby97 picture alby97  路  5Comments

TharinduNM picture TharinduNM  路  6Comments

satyajitghana picture satyajitghana  路  3Comments