Open ryanheise opened 3 years ago
This is something that would require an AVAudioEngine-based implementation. You could take a look at #784 as a starting point, and consider contributing to it to add pitch adjustment.
@ryanheise Hello. I could not find any documentation on setPitch(). What do i have to pass as argument to setPitch() ? What would be the factor, in order to shift pitch by one semitone.
In android flutter app, just audioplayer_name.setPitch(pitch);
is enough, am i right?
@GayakEngineer
Hello. I could not find any documentation on setPitch().
It should be there on https://pub.dev/packages/just_audio under the link "API Documentation". Find the class (i.e. AudioPlayer), then find the thing inside the class (i.e. setPitch). The README page gives the supported platforms (as mentioned above, only Android).
In android flutter app, just
audioplayer_name.setPitch(pitch);
is enough, am i right?
That same comment above confirms this is correct.
@GayakEngineer
Hello. I could not find any documentation on setPitch().
It should be there on https://pub.dev/packages/just_audio under the link "API Documentation". Find the class (i.e. AudioPlayer), then find the thing inside the class (i.e. setPitch). The README page gives the supported platforms (as mentioned above, only Android).
In android flutter app, just
audioplayer_name.setPitch(pitch);
is enough, am i right?That same comment above confirms this is correct.
Thank you for such a prompt reply. You have done great service to flutter community.
@ryanheise any update on setPitch
for iOS?
The iOS side depends on rewriting using AVAudioEngine (see #334 for further details)
Is your feature request related to a problem? Please describe.
Pitch adjustment would be useful in some apps (e.g. changing pitch of voice or music).
Describe the solution you'd like
Describe alternatives you've considered
There is no other way to achieve this other than plugin support.
Additional context
This is easily implemented on Android, iOS might be more problematic (post below if you are able to share useful resources/documentation)