]> git.parisson.com Git - telecaster-server.git/commitdiff
add audio test
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 11 Mar 2022 08:32:39 +0000 (09:32 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 11 Mar 2022 08:32:39 +0000 (09:32 +0100)
src/home/telecaster/.fluxbox/scripts/tc_audio_jack_test.sh [new file with mode: 0755]

diff --git a/src/home/telecaster/.fluxbox/scripts/tc_audio_jack_test.sh b/src/home/telecaster/.fluxbox/scripts/tc_audio_jack_test.sh
new file mode 100755 (executable)
index 0000000..f5ffbd5
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env bash
+
+set -e
+
+# Audio
+AUDIO_CHANNELS=2
+AUDIO_OPUS_BITRATE=96000
+AUDIO_MP3_QUALITY=4.0
+
+LOCAL_DIR=$(dirname "$0")
+if [ -f $LOCAL_DIR/.env ]; then
+    source $LOCAL_DIR/.env
+fi
+
+# GST launch
+gst-launch-1.0 filesrc location=/home/guyom/Sounds/test/pc_test-2.mp3 \
+    ! queue ! decodebin \
+       ! queue ! audioconvert \
+       ! queue ! rgvolume pre-amp=-24 \
+       ! queue ! audiodynamic characteristics=hard-knee mode=compressor threshold=0.125 ratio=6 \
+       ! queue ! rglimiter \
+       ! queue ! pulsesink
+