Questions tagged [pulseaudio]

PulseAudio is a sound system for POSIX OSes, it is a proxy for your sound applications. It allows you to do advanced operations on your sound data as it passes between your application and your hardware. Things like transferring the audio to a different machine, changing the sample format or channel count and mixing several sounds into one are easily achieved using a sound server.

PulseAudio is sound server for linux proposed to replace OSS. It allows input from multiple applications and perform mixing before forwarding it alsa. PulseAudio provide userlevel tools for more control over audio. PulseAudio is bundled with ubuntu and other linux OS by default.

369 questions
42
votes
6 answers

run apps using audio in a docker container

This question is inspired by Can you run GUI apps in a docker container?. The basic idea is to run apps with audio and ui (vlc, firefox, skype, ...) I was searching for docker containers using pulseaudio but all containers I found where using…
A. Binzxxxxxx
  • 2,812
  • 1
  • 21
  • 33
26
votes
3 answers

How to pipe /dev/urandom to linux sound output?

This doesn't seem to work at all: cat /dev/urandom > /dev/dsp #from wikipedia.org Is it because of pulseaudio? or I need to do some settings?
c2h2
  • 11,911
  • 13
  • 48
  • 60
22
votes
2 answers

How to expose audio from Docker container to a Mac?

I know it's possible by using pulse audio on a Linux host system But paprefs is built for linux not mac.
benwiz
  • 2,167
  • 3
  • 22
  • 33
16
votes
2 answers

Getting signals working on PulseAudio's DBus interface?

I'm trying to get a D-Bus signal handler to be called whenever the state of a sink changes in PulseAudio (e.g. becomes inactive). Unfortunately, it isn't being called and I frankly am not sure why. import dbus import dbus.mainloop.glib from…
Yet Another User
  • 2,627
  • 3
  • 18
  • 27
15
votes
1 answer

How to redirect from Audio Output to Mic Input using PulseAudio?

I'm working on a mobile app for Maemo/MeeGo and Maemo uses PulseAudio. I want to play a mp3 to caller (and cancel the mic when doing it, and not to listen caller, everything should be done on background), to do this, I have to redirect Audio Output…
Yekta Leblebici
  • 346
  • 1
  • 3
  • 11
13
votes
3 answers

HFP/HSP profile in linux

I have Ubuntu 16.04 and already installed BlueZ 5.37, PulseAudio 10.0, and ofono 1.20 (clone from github). And I need to use phone like modem for transmitting my phone calls to computer. I paired my telephone with PC, made device trust and connect…
12
votes
1 answer

qemu + pulseaudio and bad quality of sound

I am using my gentoo as host os for kvm with vga passthrough for playing on windows, but I have problem with sound, it is not good quality, I hear something like crackles in sound. I am using pulseaudio (with --system mode) on host os, and tried…
januszmk
  • 131
  • 1
  • 1
  • 4
11
votes
1 answer

How can the PulseAudio asynchronous library be used to play raw PCM data?

A clear explanation seems to be missing in the PulseAudio documentation, and I cannot find any simple examples.
Gavin Haynes
  • 1,721
  • 11
  • 21
10
votes
4 answers

Look up pulseaudio sink-input index by property

The output of both pactl list sink-inputs and pacmd list-sink-inputs contains a Properties section: Properties: media.name = "ALSA Playback" application.name = "ALSA plug-in [snapclient]" native-protocol.peer = "UNIX socket client" …
Jakob Hansen
  • 101
  • 1
  • 4
10
votes
3 answers

Watch for volume changes in ALSA/Pulseaudio

How do you listen to changes in volume on the Master channel on the default sound card? I'd like to be notified through dbus or a callback or something that the volume has changed. I have tried looking and the ALSA and PulseAudio APIs and they only…
Michael Eden
  • 948
  • 1
  • 7
  • 18
9
votes
1 answer

How to use echo cancellation module in PulseAudio?

I trying to make PulseAudio echo canceller work. I have two applications - recorder and player, both use PulseAudio. I create player and recorder like this: // pulseAudio pa_simple *paS=0; pa_sample_spec ss; void initPulseAudio() { …
Raiv
  • 5,731
  • 1
  • 33
  • 51
8
votes
2 answers

ffmpeg audio - video sync issue (audio ahead of video) - while screen recording using x11grab

While screen-recording using the below ffmpeg options I consistently get audio ahead of video, delay is in the order of few seconds ffmpeg cmd: ffmpeg -y -f x11grab -thread_queue_size 1024 -draw_mouse 0 -video_size 1920x1080 -i :0 -f pulse…
maheshg
  • 339
  • 2
  • 7
  • 17
8
votes
1 answer

Python having trouble accessing usb microphone using Gstreamer to perform speech recognition with Pocketsphinx on a Raspberry Pi

So python is acting like acting like it can't hear ANYTHING from my microphone at all. Here's the problem. I have a Python ( 2.7 ) script that is suppose to be using Gstreamer to access my microphone and do speech recognition for me via…
Malcolm Jones
  • 1,472
  • 1
  • 12
  • 24
8
votes
2 answers

PyAudio does not work and breaks sound on ubuntu

Ok, so I installed pyaudio from the package python-pyaudio using apt-get , now when I Import and Invoke as follows: Python 2.7.3 (default, Sep 26 2012, 21:53:58) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more…
Amith KK
  • 555
  • 2
  • 8
  • 20
7
votes
1 answer

Pulseaudio sink does not exist at boot but accessible later

I have a laptop running Ubuntu 18.04 and i3wm connected via Thunderbolt to a dock and a webcam. I want that the default pulse audio sink is set to the laptops internal sound card. Thus I have set-default-sink…
user3457151
  • 175
  • 1
  • 1
  • 4
1
2 3
24 25