Part Number: TDA4AEN-Q1
I am trying to build the passanger announcement system.
Path i followed:
# Enable DAC → headphone mixers (this is the missing piece)
amixer -c 0 sset 'Left HP Mixer DACL1' on
amixer -c 0 sset 'Right HP Mixer DACR1' on
# Headphone output volume / unmute
amixer -c 0 sset 'HP DAC' 90
amixer -c 0 sset 'HP' 100% unmute
amixer -c 0 sset 'PCM' 100%
# Optional: keep line-out path off
amixer -c 0 sset 'Left Line Mixer DACL1' off
amixer -c 0 sset 'Right Line Mixer DACR1' off
## there was issue of slow speed in song , to solve this
mkdir -p /usr/local/bin
cat > /usr/local/bin/aplay48 << 'EOF'
#!/bin/sh
# Play 48 kHz content correctly on half-rate J722S audio clock
ffmpeg -i "$1" -f s16le -acodec pcm_s16le -ac 2 -ar 48000 - \
| aplay -Dhw:0,0 -f S16_LE -c 2 -r 96000
EOF
chmod +x /usr/local/bin/aplay48
aplay48 /usr/share/sounds/alsa/rahul.wav
## Record from mic (as long as you want), then play back
# Enable mic path first (jack mic = Mic3R on J722S, not Mic3L)
amixer -c 0 sset 'Left PGA Mixer Mic3R' on
amixer -c 0 sset 'Right PGA Mixer Mic3R' on
amixer -c 0 sset 'Left PGA Mixer Mic3L' off
amixer -c 0 sset 'Right PGA Mixer Mic3L' off
amixer -c 0 sset 'PGA' 40% unmute
# Also enable speaker path before playback (see "To start the speaker" above)
# Record until you press Ctrl+C (no duration limit)
arecord -Dhw:0,0 -f S16_LE -c 2 -r 96000 /tmp/mic.wav
# Play the same file (same rate as capture — correct pitch on J722S)
aplay -Dhw:0,0 -f S16_LE -c 2 -r 96000 /tmp/mic.wav
But when i tried to make the announcement system , like live mic and speaker to start simultaneously
But when i tried to make the announcement system , like live mic and speaker to start simultaneously
## to hear yourself (live mic -> speaker)
arecord -Dhw:0,0 -f S16_LE -c 2 -r 96000 \
| aplay -Dhw:0,0 -f S16_LE -c 2 -r 96000
i am not being able to get that .
i am not being able to get that .