Skip to content

Commit

Permalink
Update PA instructions to resample to 48khz
Browse files Browse the repository at this point in the history
RNNoise is trained for 48000Hz, and while it seems to work with 44100Hz, i seem to get better results when setting the sink to 48000Hz, which causes Pulse to automatically adjust our entire pipeline and resample for us.
  • Loading branch information
lawl authored and werman committed Jul 18, 2020
1 parent 453a8af commit 34003bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pactl list sources short

Then, create the new device using:
```sh
pacmd load-module module-null-sink sink_name=mic_denoised_out
pacmd load-module module-null-sink sink_name=mic_denoised_out rate=48000
pacmd load-module module-ladspa-sink sink_name=mic_raw_in sink_master=mic_denoised_out label=noise_suppressor_mono plugin=/path/to/librnnoise_ladspa.so control=50
pacmd load-module module-loopback source=<your_mic_name> sink=mic_raw_in channels=1
```
Expand All @@ -46,7 +46,7 @@ You can automate this by creating file in `~/.config/pulse/default.pa` with the
```
.include /etc/pulse/default.pa
load-module module-null-sink sink_name=mic_denoised_out
load-module module-null-sink sink_name=mic_denoised_out rate=48000
load-module module-ladspa-sink sink_name=mic_raw_in sink_master=mic_denoised_out label=noise_suppressor_mono plugin=/path/to/librnnoise_ladspa.so control=50
load-module module-loopback source=your_mic_name sink=mic_raw_in channels=1
Expand Down

0 comments on commit 34003bd

Please sign in to comment.