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
2
votes
2 answers

problem with alsa in speech recognition(Python 3)

I have sound on my ubuntu20, I can play any audio; but the problem is when I'm using speech recognition, alsa doesn't work properly. I used speech recognition in windows, it was pain, but it worked. I have installed pyaudio,... so yeah it's not…
C0M3T
  • 41
  • 1
  • 6
2
votes
1 answer

pulseaudio "alias" sink, backed by (runtime switchable) other sink

Since MS Teams for linux only enumerates audio devices on startup, I have to restart the application when switching e.g. to my headphones. As a workaround, I'd like to create a persistent "alias" sink in pulseaudio, which I can re-route to any real…
azrdev
  • 225
  • 1
  • 13
2
votes
0 answers

Disable frequency resampling in pulseaudio

I have a sound card that supports different playback frequencies, I want pulseaudio not to resample the frequency of the track being played if (always) this frequency is supported by the sound card. I know that there is the avoid-resampling…
wpbloger
  • 169
  • 1
  • 1
  • 10
2
votes
0 answers

ffmpeg record Xvfb and pulseaudio got sync problem

I using ffmpeg to record Xvfb and audio from pulseaudio. Sometime the video output has the audio ahead of video ( sometime normal - it happen randomly ). The flow like this ffmpeg |-> video : Xvfb -> Firefox |-> audio : pulsesaudio So I don't know…
boygiandi
  • 630
  • 10
  • 20
2
votes
0 answers

Record audio inside docker container from Ubuntu host

I have a basic Dockerfile as follows: FROM ubuntu:16.04 RUN apt-get update \ && apt-get install -y pulseaudio alsa-utils alsa-base ffmpeg On my host, I am able to record an audio file as follows: ffmpeg -f pulse -i default -f wav…
abhinavkulkarni
  • 2,284
  • 4
  • 36
  • 54
2
votes
1 answer

Recording headset-output + mic-input for karaoke

Environment: Ubuntu 18.04 USB headset with microphone I listen to karaoke songs from Youtube in chromium on my headset and I sing along on the mic. Now I wish to simultaneously record the headset-output and my mic-input in audacity. This link almost…
Peter
  • 11,260
  • 14
  • 78
  • 155
2
votes
1 answer

PulseAudio cannot read buffers at consistent rate

I want to record my microphone and process in real time, eg. show an oscilloscope view of the microphone signal. I've tried 3 ways to get the data out of PulseAudio and they all perform the same. I expect a smooth stream of binary but instead…
PizzaBeer
  • 183
  • 14
2
votes
1 answer

Never use a specific sink in PulseAudio

I listen to music trough my bluetooth headphones. When I connect my laptop to a hub (display, aux, internet, ...), pulseaudio switches to the new sink because module-switch-on-connect is activated. But I never use the audio through that usb cable.…
2
votes
0 answers

HSP and HFP profiles for hands-free telephony

I am attempting to implement hands-free telephony on my board, I successfully connected my android phone to the board via bluetooth module in phone and media audio sharing mode. The chip i use is Qualcomm Atheros QCA6174. I have pulseaudio 11.1,…
Jinu
  • 46
  • 5
2
votes
2 answers

How to compile custom PulseAudio module?

I am trying to write a PulseAudio module. To start, first, I wrote the following minimal code for a module as mentioned by this documentation. #include int pa__init(pa_module *m) { return 0; } I tried compiling it with this…
jyotesh
  • 330
  • 5
  • 17
2
votes
1 answer

Home directory not accessible: Permission denied. Working fine without sudo

I have a python script that is using pygame to load sound and play them. When I run my script without sudo, it is working fine. But when I run the script with sudo, I get these errors: Home directory not accessible: Permission denied ALSA lib…
La Buse
  • 31
  • 1
  • 3
2
votes
1 answer

Bluetoothctl and PulseAudio via Crontab problems

I'm trying to get my Pi connected to my Bluetooth speakers to play music at certain times of the day via cron jobs. The following scripts work if I run them manually in SSH, but when I put them in as cron jobs, it…
Da Hai Zhu
  • 21
  • 2
2
votes
1 answer

Connect Multiple Bluetooth Speakers with Raspberry Pi

I'm trying to connect several bluetooth devices with Raspberry PI to use them as speakers. I'm using RetroPie as a distribution, because of the tests I've done it's the only one that matches and allows continuous synchronization with several…
O.Palm
  • 162
  • 1
  • 3
  • 15
2
votes
1 answer

OpenSUSE 15.0 LEAP pulseaudio unable to detect bluetooth speaker

I would like to stream my music through my Bluetooth speaker but PulseAudio can't see the speaker. When I open the sound settings (pavucontrol) I can't change the output device to my speaker since it's not displayed. What I already checked The…
Dylan Van Assche
  • 510
  • 4
  • 15
2
votes
1 answer

Recording pulse audio as CAP_SYS_ADMIN with ffmpeg

As my normal user, this works: ffmpeg -f pulse -i default -acodec aac foo.aac but run with sudo is fails with: default: No such process How can I run ffmpeg as a privileged user (CAP_SYS_ADMIN), since I am keen to use the kmsgrab option and still…
hendry
  • 9,725
  • 18
  • 81
  • 139