Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #####
- Upgrade systemu i problemy z dźwiękiem
- z poziomu usera:
- systemctl --user stop pulseaudio.service && systemctl --user stop pulseaudio.socket
- z poziomu roota:
- apt autoremove --purge -y alsa-base alsa-utils pulseaudio linux-sound-base libatopology2 libwebrtc-audio-processing1 xfce4-pulseaudio-plugin
- rm -rf ~/.config/pulse /tmp/pulse* ~/.pulse ~/.pulse-cookie /etc/pulse
- apt autoclean && sudo apt autoremove -y
- apt update && sudo apt upgrade -y
- shutdown now
- apt install -y alsa-base alsa-utils pulseaudio linux-sound-base libatopology2 libwebrtc-audio-processing1 xfce4-pulseaudio-plugin
- sudo cat << EOF >> /etc/pulse/default.pa
- ### Enable Echo/Noise-Cancellation
- load-module module-echo-cancel use_master_format=1 aec_method=webrtc aec_args="analog_gain_control=0\ digital_gain_control=1\ noise_suppression=1\ voice_detection=1\ agc_start_volume=85" source_name=echoCancel_source sink_name=echoCancel_sink
- set-default-source echoCancel_source
- #set-default-sink echoCancel_sink
- EOF
- tail -n4 /etc/pulse/default.pa
- z poziomu usera
- systemctl --user enable pulseaudio
- shutdown now
- Statyczny szum (opcjonalnie/profilaktycznie)
- znajdz i odkomentuj (usuń ";") i zmień wartość w "/etc/pulse/daemon.conf" (zapewne linia 54)
- avoid-resampling = yes
- sudo sed 's/; avoid-resampling = false/avoid-resampling = yes/g' -i /etc/pulse/daemon.conf && grep -Fx "avoid-resampling = yes" /etc/pulse/daemon.conf
- sprawdź "hw:x, y" twojej karty dźwiękowej
- arecord --list-devices | grep card
- card 1: PCH [HDA Intel PCH], device 0: ALC3226 Analog [ALC3226 Analog]
- nagraj próbkę
- arecord -f dat -r 60000 -D hw:1,0 -d 5 ~/Desktop/test.wav
- Recording WAVE 'Desktop/test.wav' : Signed 16 bit Little Endian, Rate 60000 Hz, Stereo
- Warning: rate is not accurate (requested = 60000Hz, got = 48000Hz)
- please, try the plug plugin
- sprawdź aktualną wartość
- grep "default-sample-rate" /etc/pulse/daemon.conf
- ; default-sample-rate = 44100
- Podmień wartość za pomocą komendy:
- sudo sed 's/; default-sample-rate = 44100/default-sample-rate = 48000/g' -i /etc/pulse/daemon.conf && grep -Fx "default-sample-rate = 48000" /etc/pulse/daemon.conf
- systemctl --user restart pulseaudio.service
- arecord -f dat -r 48000 -D hw:1,0 -d 10 Desktop/test.wav
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement