From: Guillaume Pellerin Date: Mon, 1 Sep 2025 09:41:41 +0000 (+0200) Subject: add gst samplerate to force audio pipeline X-Git-Tag: 4.3.0~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9b5e9e12e49fb9948e2ee2c175ae53c8e36d4999;p=telecaster-server.git add gst samplerate to force audio pipeline --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 9642701..681438a 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -32,7 +32,7 @@ VIDEO_PIPELINE_BASE="""{gst_video_source} {gst_video_device} {gst_video_options} """ AUDIO_PIPELINE_BASE="""{gst_audio_source} {gst_audio_options} client-name="mp3_streaming_audio" \ - ! audio/x-raw, format=F32LE, channels={channels} \ + ! audio/x-raw, format=F32LE, channels={channels}, samplerate={samplerate} \ ! queue ! audiocheblimit mode=high-pass cutoff={hp_frequency} poles={hp_poles} \ ! queue ! volume volume={volume_pre} \ ! queue ! audiodynamic characteristics=soft-knee mode=compressor threshold={comp_threshold} ratio={comp_ratio} \ diff --git a/etc/telecaster/telecaster.yml b/etc/telecaster/telecaster.yml index 05e3cad..bad2a0c 100644 --- a/etc/telecaster/telecaster.yml +++ b/etc/telecaster/telecaster.yml @@ -78,6 +78,7 @@ telecaster: audio: engine: jack # engine: pipewire + # engine: pulseaudio jack: card: U192k priority: 50 @@ -86,8 +87,11 @@ telecaster: pipewire: target_object: telecaster_source #target_object: alsa:acp:ArturiaMsd:0:capture + pulseaudio: + target_object: telecaster_source gstreamer: channels: 2 + samplerate: 48000 opus_bitrate: 96000 mp3_quality: 4.0 volume_pre: 2.5