From 87769afabc02838c104dc068cd57112ada4bbe81 Mon Sep 17 00:00:00 2001 From: Axxl07 <114746036+Axxl07@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:59:35 +0100 Subject: [PATCH] Update helper1.py Added a "filter volume" line in the audio process in "Helper1.py" at line 204. This line permit you to increase the volume of the converted file if this one is too weak. You can easily increase or decrease the volume with the valor of filter volume. The more high is the number, the more loud is the sound... In my example, 6 was perfect for me, a sound high enough and no saturation on Flipper. --- helper1.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helper1.py b/helper1.py index d3cea6d..4f58382 100644 --- a/helper1.py +++ b/helper1.py @@ -200,6 +200,8 @@ def fraction_half_round_up(fraction): input.audio # normalize audio to prevent peaking .filter("loudnorm") + # adjust volume + .filter("volume", volume=6.0) # output raw 8-bit audio .output("pipe:", format="u8", acodec="pcm_u8", ac=1, ar=sample_rate) # only display errors