Commit 563f13a8 by Oliver Woodman

Adjust trim silence parameters to make it less aggressive.

parent 74ac722b
...@@ -33,12 +33,12 @@ public final class SilenceSkippingAudioProcessor implements AudioProcessor { ...@@ -33,12 +33,12 @@ public final class SilenceSkippingAudioProcessor implements AudioProcessor {
* The minimum duration of audio that must be below {@link #SILENCE_THRESHOLD_LEVEL} to classify * The minimum duration of audio that must be below {@link #SILENCE_THRESHOLD_LEVEL} to classify
* that part of audio as silent, in microseconds. * that part of audio as silent, in microseconds.
*/ */
private static final long MINIMUM_SILENCE_DURATION_US = 100_000; private static final long MINIMUM_SILENCE_DURATION_US = 150_000;
/** /**
* The duration of silence by which to extend non-silent sections, in microseconds. The value must * The duration of silence by which to extend non-silent sections, in microseconds. The value must
* not exceed {@link #MINIMUM_SILENCE_DURATION_US}. * not exceed {@link #MINIMUM_SILENCE_DURATION_US}.
*/ */
private static final long PADDING_SILENCE_US = 10_000; private static final long PADDING_SILENCE_US = 20_000;
/** /**
* The absolute level below which an individual PCM sample is classified as silent. Note: the * The absolute level below which an individual PCM sample is classified as silent. Note: the
* specified value will be rounded so that the threshold check only depends on the more * specified value will be rounded so that the threshold check only depends on the more
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment