Page 1 of 1

No audio in trixie

Posted: Sat Apr 25, 2026 3:21 am
by Eius
Hello, I install hudiy in raspberry 4 with trixie a d haver no sound I inspect with wpcl status and no find none áudio source. What can be see in imagem and my start-up is

Code: Select all

#!/bin/bash

source "$HOME/.hudiy/share/rpi_lib.sh"

EC_SINK="echo_cancel_sink"
EC_SOURCE="echo_cancel_source"
EQ_SINK="hudiy_equalizer_sink"

sink_exists() { pactl list short sinks 2>/dev/null | awk '{print $2}' | grep -Fxq "$1"; }
until pactl info >/dev/null 2>&1; do sleep 0.1; done

# Gives PipeWire and WirePlumber additional time to detect all audio devices
sleep 1

if [[ "$CURRENT_MODEL" == *"$PI4_MODEL"* ]] || \
   [[ "$CURRENT_MODEL" == *"$PI5_MODEL"* ]] || \
   [[ "$CURRENT_MODEL" == *"$CM4_MODEL"* ]] || \
   [[ "$CURRENT_MODEL" == *"$CM5_MODEL"* ]]; then
    sink_exists "$EQ_SINK" || pactl load-module module-ladspa-sink sink_name="$EQ_SINK" master="$EC_SINK" plugin=hudiy_equalizer label=hudiy_equalizer control=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    sink_exists "$EC_SINK" || pactl load-module module-echo-cancel aec_method=webrtc aec_args=\"voice_detection=false\" source_name="$EC_SOURCE" sink_name="$EC_SINK"
    pactl set-default-sink "$EQ_SINK"
    pactl set-default-source "$EC_SOURCE"
else
    if [[ "$CURRENT_MODEL" != *"$PI3APLUS_MODEL"* ]] && \
       [[ "$CURRENT_MODEL" != *"$PI3BPLUS_MODEL"* ]]; then
        export HUDIY_LIMIT_HOTSPOT_BANDWIDTH=1
    fi

    export HUDIY_DISABLE_ANDROID_AUTO_DRM=1
    export HUDIY_DISABLE_EQUALIZER=1
    sink_exists "$EC_SINK" || pactl load-module module-echo-cancel aec_method=webrtc aec_args=\"voice_detection=false\" source_name="$EC_SOURCE" sink_name="$EC_SINK"
    pactl set-default-sink "$EC_SINK"
    pactl set-default-source "$EC_SOURCE"
fi

if [[ "$CURRENT_TARGET" == "$TARGET_GUI" ]]; then
    $HOME/.hudiy/share/hudiy &
else
    wall "Hudiy is launching..."
    $HOME/.hudiy/share/hudiy
fi

Re: No audio in trixie

Posted: Sat Apr 25, 2026 8:12 am
by hudiy
Hello,

It is very likely that the problem is related to the echo cancel module. When there is no physical microphone input in the system, the echo cancel module cuts off the audio.

The solution is to either connect a microphone input (e.g., by using a USB sound card) or to disable the echo cancel module if you are not using a microphone in your setup. To prevent the echo cancel module from loading, replace the contents of $HOME/.hudiy/share/hudiy_startup.sh with the following:

Code: Select all

#!/bin/bash

source "$HOME/.hudiy/share/rpi_lib.sh"

EQ_SINK="hudiy_equalizer_sink"
DUMMY_SOURCE="dummy_source"

sink_exists() { pactl list short sinks 2>/dev/null | awk '{print $2}' | grep -Fxq "$1"; }
source_exists() { pactl list short sources 2>/dev/null | awk '{print $2}' | grep -Fxq "$1"; }
until pactl info >/dev/null 2>&1; do sleep 0.1; done

# Gives PipeWire and WirePlumber additional time to detect all audio devices
sleep 1

if [[ "$CURRENT_MODEL" == *"$PI4_MODEL"* ]] || \
   [[ "$CURRENT_MODEL" == *"$PI5_MODEL"* ]] || \
   [[ "$CURRENT_MODEL" == *"$CM4_MODEL"* ]] || \
   [[ "$CURRENT_MODEL" == *"$CM5_MODEL"* ]]; then
    sink_exists "$EQ_SINK" || pactl load-module module-ladspa-sink sink_name="$EQ_SINK" plugin=hudiy_equalizer label=hudiy_equalizer control=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    source_exists "$DUMMY_SOURCE" || pactl load-module module-virtual-source source_name="$DUMMY_SOURCE"

    pactl set-default-sink "$EQ_SINK"
    pactl set-default-source "output.${DUMMY_SOURCE}"
else
    if [[ "$CURRENT_MODEL" != *"$PI3APLUS_MODEL"* ]] && \
       [[ "$CURRENT_MODEL" != *"$PI3BPLUS_MODEL"* ]]; then
        export HUDIY_LIMIT_HOTSPOT_BANDWIDTH=1
    fi

    export HUDIY_DISABLE_ANDROID_AUTO_DRM=1
    export HUDIY_DISABLE_EQUALIZER=1
    
    source_exists "$DUMMY_SOURCE" || pactl load-module module-virtual-source source_name="$DUMMY_SOURCE"
    pactl set-default-source "output.${DUMMY_SOURCE}"
fi

if [[ "$CURRENT_TARGET" == "$TARGET_GUI" ]]; then
    $HOME/.hudiy/share/hudiy &
else
    wall "Hudiy is launching..."
    $HOME/.hudiy/share/hudiy
fi

Re: No audio in trixie

Posted: Sat Apr 25, 2026 12:41 pm
by Eius
thanks this work