EzDevInfo.com

pulseaudio interview questions

Top pulseaudio frequently asked interview questions

Headphone jack not working?

I have a Dell Studio XPS 1647 and headphones do not work (though , internal speakers work like a charm) , I have dual boot Windows 7 and headphones work perfectly fine ...

I also tried -adding in options snd-hda-intel model=eapd probe_mask=1 position_fix=1.

I've experienced this with Oneric Ocelot and the latest Precise Pangolin (LTS).


Source: (StackOverflow)

Command to mute and unmute a microphone

During voice / video conversations online I would like to mute/unmute the microphone without having to go through all these steps each time:

  • Sound indicator, Sound preferences, Select Input, Mute or unmute the microphone.

I'm looking for either:

  • an application that can do this from the commandline,
  • a way I can assign a keyboard shortcut that can mute/unmute the microphone

Source: (StackOverflow)

Advertisements

How can I restart pulseaudio without logout?

Sometimes pulseaudio service stops and it doesn't restarts itself when I open an audio file with banshee or totem.

How I can make it start again without logout?


Source: (StackOverflow)

How can I change the default audio device from command line?

Ubuntu's desktop gui is great for changing audio settings (System->Preferences->Sound), like the default input/output device and setting the volume.

However, I would like to be able to do these things from the command-line. What tool is the gui using behind the scenes?


Source: (StackOverflow)

How to temporarily disable PulseAudio?

Just wondering if there a way to temporarily disable PulseAudio as I am trying to run a specific Wine game (Left 4 Dead 2) and it makes the game crash occasionally.

If I kill the process it automatically comes back up. Any suggestions?


Source: (StackOverflow)

How to change the default audio in Wine to Alsa only

I am trying to change the default Audio sound system to ALSA so it fixes some sound issues. How can this be done?

Am using 1.3.x branch from PPA which is much better than the 1.1.x and 1.2.x in every way.


Source: (StackOverflow)

Is there any Sound enhancers/equalizer?

What I am looking for is to have system wide implementation of sound enhancements like bass boosts, echoes, Fidelity, Stereo enhancement and so on.

Audio Video players have their own equalizer but they enhance only the audio / video files they are playing.

So to enhance sounds playing such as: YouTube, Spotify, System Sound, etc. I need a enhancer software. Back in Windows, I used to use SRS HD audio lab to do the same.

P.S. I have a horrible Speaker set.


Source: (StackOverflow)

Is there another way to restart the sound system if pulseaudio/ALSA don't work?

I was listening to music, and my sound suddenly went dead in all my applications. I'm using Ubuntu 12.04, which uses pulseaudio, so I tried sudo /etc/init.d/pulseaudio restart, but nothing happened. According to lsof | grep pcm, nothing is using the soundcard at the moment, although I'm not entirely sure if my source for that command is applicable.

Is there a way another way to restart Ubuntu 12.04's sound system from the command line without rebooting the system?


Source: (StackOverflow)

How do you mute from the command line?

How do you mute the sound system from the command line?


Source: (StackOverflow)

Terminal command to set audio volume?

I have an external sound card which mostly works fine, except that when its first plugged in, or when I turn on my laptop, the volume gets set to 100%. That is, the overall system volume, as shown in the sound indicator.

What I'm looking for is a terminal command that will set that volume to 50%, so that I can run it on login and not have to worry that the first audio I play is going to blare out at me if I forget to turn the volume down. What commands allow you to change that volume, i.e. the one in the sound indicator?

I've poked around in gsettings and dbus, but have been unable to find anything that would let me set the system volume like that. I do know about alsamixer, but that's not the solution I'm looking for, since that doesn't allow me to change the volume using the sound indicator or my laptop's multimedia keys.


Source: (StackOverflow)

How do I set up live audio streams to a DLNA compliant device?

Is there a way to stream the live output of the soundcard from our 12.04.1 LTS amd64 desktop to a DLNA-compliant external device in our network? Selecting media content in shared directories using Rygel, miniDLNA, and uShare is always fine - but so far we completely failed to get a live audio stream to a client via DLNA.

Pulseaudio claims to have a DLNA/UPnP media server that together with Rygel is supposed to do just this. But we were unable to get it running.

We followed the steps outlined in live.gnome.org, this answer here, and also in another similar guide.


In 12.04 LTS we can select the local audio device, or our GST-Launch stream in the DLNA client but Rygel displays the following message and the client states it reached the end of the playlist:

(rygel:7380): Rygel-WARNING **: rygel-http-request.vala:97: Invalid seek request

There was no way to listen to live audio streams on the client.


Only after a distribution upgrade to 14.04 LTS we were able to select a live stream on our DLNA renderers from settings nicely outlined in below answer. Still, we needed to select an established stream after we started rygel and were unable to push a new stream to our UPnP devices. Audio metadata were not transmitted.


Are there any other alternatives for sending the audio of our soundcard as live stream to a DLNA client?


Source: (StackOverflow)

Sound from both headphones and speakers

I guess this question already had the answer here but I can't find it. I'm using 12.04.

Update:

The problem is that I can hear the sound from my laptop's speakers even I plugged in my headphones. Headphones is just standard stereo headphones. And the most interesting thing is that all was working just a week ago.

I tried to play with pulseaudio and alsamixer settings - no results.


Source: (StackOverflow)

Skype and VLC sounds sizzle/distorted/bad

I have the same problem as described in the questions skype notification sounds sizzled and bad sound on login to skype. But it is not only the login, notification, but also when talking to somebody. I tried the solution to remove/re-install skype and most of the solutions in this questions, e.g. checking mixer, sound settings and installing alsa-hda-dkms (incl. system restart).
After installing skype (and even after upgrade to skype 4.0) in Ubuntu 12.04 (AMD 64) there was no sound at all. I followed the first step of the SoundTroubleshootingProcedure and at least there is now sound:

sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop  linux-image-`uname -r` libasound2; sudo apt-get -y --reinstall install linux-sound-base alsa-base alsa-utils gdm ubuntu-desktop  linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; sudo usermod -aG `cat /etc/group | grep -e '^pulse:' -e '^audio:' -e '^pulse-access:' -e '^pulse-rt:' -e '^video:' | awk -F: '{print $1}' | tr '\n' ',' | sed 's:,$::g'` `whoami`

The jittering sound would sometimes disappear, e.g. on the Echo-Testcall after replaying the recorded part. And I noticed that if I let music play in the rhythmbox and then start skype, the sound is fine. So I have a weak solution, but I would be glad it would work without this detour.

In VLC when I play, restart after pause I have to same jittering sound.

As requested: My sound card is a an "AMD High Definition Audio Device" called Advanced Micro Devices (AMD) Hudson Azalia controller (rev01), subsystem Lenovo Device 21ea (according to sysinfo) on a Lenovo Thinkpad Edge 525.


Source: (StackOverflow)

No sound settings available in the settings manager window

Last night I decided to upgrade my system to the latest version of Xubuntu, 13.10. The process went fine, but now I'm facing this strange issue. There is no sound settings available in the settings manager window and the volume indicator looks like when the volume is muted, clicking the indicator being broken as well. The indicator looks like this:

image

I tried to do a alsa force-reload followed by a restart of the computer, but didn't help. Any thoughts ?

l.e. After some digging I found out that the volume control exists, so this must be a volume indicator issue.


Source: (StackOverflow)

Record a programs output with PulseAudio

I would like to record an output of a program with PulseAudio using command line/bash script. It is important not to record every output of the sound card, but only the one of one specific program. I thought I would have to create a new null-sink and than move the programs output to this new sink. Than tell parec to use this specific monitor to record. The first step would be something like this:

pactl load-module module-null-sink sink_name=steam

But how to move the programs output now to this sink? And how to record the specific sink with a bash script?


Source: (StackOverflow)