Description
#5165 # [REQUIRED] Use case description
I was using an app that had a "skip silence" feature and while using it I thought to myself "This is very useful but I would like to adjust the replacement silence as it's a bit too abrupt. This seems like a simple fix and if it were open source I just might do it myself." Turns out it is open source and uses ExoPlayer.
So this feature request is if those properties can be exposed to change the properties of skip silence.
This description is a little long-winded but I want to it make clear how I'm not actively involved in ExoPlayer and not to come off seeming I know more than I do.
Proposed solution
I checked SilenceSkippingAudioProcessor.java
and it has PADDING_SILENCE_US
which seems to be what I was looking for, also it declared as static so I'm not sure if it can be changed realtime. There are also useful properties such as what's considered silence.
So a system where this:
SkipSilenceProperties skipSilence = new PlaybackParameters.SkipSilenceProperties(200, 300, .5); // Padding in ms, Length Detection in ms, Threshold declared as a float from 0-1 player.setPlaybackParameters(skipSilence);
code can be executed, or something like it.
Alternatives considered
Ignoring this issue by saying who would want to make such changes to skip silence
. Our presets are golden and to say otherwise is akin to blasphemy. Let's put this in the bin where we put that proposal those folks suggested for performance improvements.
-yak27