Giter VIP home page Giter VIP logo

Comments (10)

ketn avatar ketn commented on August 28, 2024 1

@kkusanagi I just added a PR #466 to support setPitch(float). Maybe a little late for your requirement, but still feel free to check it out.

from react-native-sound.

nielsswinkels avatar nielsswinkels commented on August 28, 2024

I'm afraid that for the android side this is not possible with the current implementation, but I would be interested of this as well.
MediaPlayer does not support it:
http://stackoverflow.com/questions/10849961/speed-control-of-mediaplayer-in-android

from react-native-sound.

nielsswinkels avatar nielsswinkels commented on August 28, 2024

And then 3 days after my previous comment someone adds the answer that it is now possible from api 23: http://stackoverflow.com/questions/10849961/speed-control-of-mediaplayer-in-android/37094353#37094353

from react-native-sound.

ninamanalo19 avatar ninamanalo19 commented on August 28, 2024

Are there updates here?

from react-native-sound.

benvium avatar benvium commented on August 28, 2024

PR #63 has been merged, so we have iOS-only support for this. Perhaps a helpful person will make a PR for the Android side - should be pretty straightforward.

from react-native-sound.

sekiwired avatar sekiwired commented on August 28, 2024

I think there is a misunderstanding, tempo is not the note speed (pitch), it's the speed of a sequence of notes, so I don't see the link with the PR 63.
Do we have the ability with this implementation to play timely accurate sequence of notes (tempo) ?
I do not find how.

Thank you

from react-native-sound.

DanNi0130 avatar DanNi0130 commented on August 28, 2024

Any update on this?

from react-native-sound.

twitwi avatar twitwi commented on August 28, 2024

The setSpeed function might actually be the solution to this issue.

The setSpeed function allows to play a file faster/slower (at higher/lower tempo) while doing pitch correction so that playing faster does not cause higher pitches.

(now also in the android version as per #169)

from react-native-sound.

kkusanagi avatar kkusanagi commented on August 28, 2024

I found a solution for android but don't know how to add in react native sound. I think this should be able to change the sound to chipmunk sound.

from Set pitch of a song being played in Android MediaPlayer

String recordingPath = recordingDirectory + File.separator + "music.mp3";
MediaPlayer audioPlayer = MediaPlayer.create(getApplicationContext(), Uri.parse(recordingPath));
audioPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
PlaybackParams params = new PlaybackParams();
params.setPitch(0.75f);
audioPlayer.setPlaybackParams(params);
audioPlayer.start();

and another from IOS Change Pitch Rate of Sound in Swift - XCode 6.4
and this Changing Voice Pitch using AVAudioPlayer

hope this can help someone to commit new version with these features

from react-native-sound.

Fahad-pnw avatar Fahad-pnw commented on August 28, 2024

did pitch get added for iOS too?

from react-native-sound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.