Crackly sound with Skype on Ubuntu
Open up “/etc/pulse/default.pa”, find “load-module module-udev-detect” and add to the end “tsched=0″, which will disable timer-based audio scheduling. It should look like:
load-module module-udev-detect tsched=0
*NOTE: You need to have elevated privileges to alter this file you can use the built-in text editor called nano from a terminal. Use this command to open it:
sudo nano /etc/pulse/default.pa
Save (press ctrl+x then enter to save using original filename) and execute
pulseaudio -k && pulseaudio --start
to restart ALSA
I has the same issue as i m using 13.04, so mine is fixed with this fix.
I am using 13.04 so mine is load-module module-udev-detect use_ucm=0 and i have added the tsched=0 in the end and now it is load-module module-udev-detect use_ucm=0 tsched=0
Assigning a LADSPA filter to a single audio channel
We can do this with fine tuning the pulseaudio LADSPA sink module. This module loads a sink where any LADSP plugin will be applied to. It is the usual case to apply a filter to all channels but we can also define a single channel to assign a filter to by remapping and then combining channels.
The following Pulse Audio commands are involved:
Get a valid sink_name
and channel_map
:
pacmd list-sinks
Load a LADSPA filter:
load-module module-ladspa-sink sink_name=ladspa_out master=alsa_out plugin=<filer> label=<label> control=<control>
Create a new remapped sink:
load-module remap-sink sink_name=<name> master=<sink> channels=<n> master_channel_map=<list> channel_map=<list>
Create a new combined sink:
pacmd load-module module-combine-sink sink_name=<name> sink_properties=device.description=<displayed_name> slaves=<list_of_n_sinks> channels=<n>
To get the desired effect we need to load the LADSPA filter to create a ladspa_out-sink with filtered audio from a given sink. Then we need to create separate, named sinks for each audio channel. Channels where we wish the filter to be applied need the ladspa_out-sink as master, channels we need to be clean need the unfiltered sink as master. Lastly we combine the separate channels again to give us new combined sink.
Example for two channels
pacmd load-module module-ladspa-sink sink_name=ladspa_out master=alsa_output.pci-0000_00_14.2.analog-stereo plugin=bandpass_iir_1892 label=bandpass_iir control=660.0,440.0,2
A new sink ladspa_out
is created using bandpass_iir filter with given controls applied to the audio signal from our master sink (replace with the master sink from step 1. above)
pacmd load-module module-remap-sink sink_name=remapR master=ladspa_out channels=1 master_channel_map=front-right channel_map=front-right
A filtered sink with name remapR
is created for the front right audio channel from the filtered ladspa_out
sink.
pacmd load-module module-remap-sink sink_name=remapL master=alsa_output.pci-0000_00_14.2.analog-stereo channels=1 master_channel_map=front-left channel_map=front-left
An unfiltered sink remapL
for the front left audio channel is created from our unfiltered master sink as defined above.
pacmd load-module module-combine-sink sink_name=combine sink_properties=device.description=myCombine slaves=remapL,remapR channels=2
A new sink combine
(or any other name you choose) will be created with 2
channels using the unfiltered sink remapL
for the left channel, and the filtered sink remapR
for the right channel.
Now we can choose this newly created sink (displayed as "myCombine") in audio settings to have the left channel unfiltered, and the right channel filtered with the LADSP filter from above.
In case we have more than two channels we will have to perform these steps for all channels, replacing each channel with filtered, or unfiltered signals to combine them again in the last step.
Best Answer
This seems to work, though you must understand that it isn't replacing pulseaudio with alsa but just removing pulseaudio(the front-end).
However alsa still needs a graphical user interface for you to easily communicate with it say goodbye to the easy integrated indicator that Ubuntu comes with
You can also do all of this in the Ubuntu Software Centre.