From dfb2bd02046fcaca84b196d3e48733b9c991369c Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 9 Jun 2025 08:35:42 +0200 Subject: [PATCH] add engine choice --- bin/streaming/telecaster.py | 4 ++++ etc/telecaster/telecaster.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index aa5d757..8db0ce9 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -49,6 +49,8 @@ DEFAULT_CONFIG_FILE = "/etc/telecaster/telecaster.yml" JACK_CONFIG = {"engine": "jackd", "options": "-R -P{priority} -dalsa -r{samplerate} -p{buffer} -n3 -Chw:{card} -Phw:{card}", "tools": ["qjackctl", "catia", "konsole"], + "gst_audio_source": "jackaudiosrc", + "gst_audio_options": "connect=2 low-latency=true", "connect": ["jack_connect system:capture_1 webm_streaming_0_audio:in_jackaudiosrc0_1", "jack_connect system:capture_2 webm_streaming_0_audio:in_jackaudiosrc0_2", @@ -59,6 +61,8 @@ JACK_CONFIG = {"engine": "jackd", PIPEWIRE_CONFIG = {"engine": "pipewire", "options": "", + "gst_audio_source": "pipewiresrc", + "gst_audio_options": "target-object={target_object}", "tools": ["qpwgraph", "konsole"], "connect":"" } diff --git a/etc/telecaster/telecaster.yml b/etc/telecaster/telecaster.yml index e0dab18..c176b5a 100644 --- a/etc/telecaster/telecaster.yml +++ b/etc/telecaster/telecaster.yml @@ -78,11 +78,15 @@ telecaster: secret: 4egZs1dSM37XVY8zXa016Yueku2fleXF2bx8k25V4 tags: bla bla audio: + engine: jack jack: card: U192k priority: 50 buffer: 1024 samplerate: 48000 + pipewire: + target_object: telecaster_source + # target_object=alsa:acp:ArturiaMsd:0:capture gstreamer: audio_source: jackaudiosrc audio_options: connect=2 -- 2.39.5