Skip to content

Remove silence after PitchSoundTransform #68

@alla2040

Description

@alla2040

Thank you for your lib! Could you please help me with one question:
I am changing the pitch of the sound with this code (I run this on Android device):
FluentClient.start() .withFile(destinationFile) .convertIntoSound() .apply(new PitchSoundTransform(100 + soundPitch)) // soundPitch - is my rate .exportToFile(destinationFile);

And after that I use ExoPlayer to play audio file. On audio finishes I stop the video. But after PitchSoundTransform the size of the file stays the same, so the video is playing but the audio (music) is stopped. I tried to fix this with stopWithSound():

FluentClientReady fluentClient = FluentClient.start(); Sound sound = fluentClient.withFile(destinationFile).convertIntoSound() .apply(new PitchSoundTransform(100 + soundPitch)).stopWithSound(); fluentClient.withSound(sound).exportToFile(destinationFile);

but it didn't help.
Can you please advise how to fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions