pulseaudio

Pulseaudio not detecting bluetooth headset [closed]

喜欢而已 提交于 2019-12-22 08:23:32
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am trying to connect a bluetooth headset to my RPI. My setup is the following: archlinux-arm, kernel: linux-raspberrypi 3.12.23-1 bluez4 4.101-4 from AUR, built and installed bluez-tools 0.1.38-3 bluez-utils 5.20-1 pulseaudio 5.0-1 pulseaudio-alsa 2-3 I scan for the device, successfully pair it, add as trusted

run apps using audio in a docker container

爱⌒轻易说出口 提交于 2019-12-17 15:26:55
问题 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 pulseaudio streaming over tcp. (security sandboxing of the applications) https://gist.github.com/hybris42/ce429de428e5af3a344a https://github.com/jlund/docker-chrome-pulseaudio https://github.com/tomparys/docker-skype-pulseaudio In my case I would

Strange PulseAudio monitor device behaviour

℡╲_俬逩灬. 提交于 2019-12-14 04:20:27
问题 Faced strange PulseAudio monitor device (i.e. audio input device which plays sound sent to speaker) behaviour. I've reduced code from my real project to simple example based on code from PulseAudio docs https://freedesktop.org/software/pulseaudio/doxygen/parec-simple_8c-example.html, I've only added time limit and read bytes counting. It works for example 30 seconds and prints read bytes count. Problem is that bytes count vastly differs if something is played during program run. I've executed

Analyzing Audio Level In Real Time using Python

让人想犯罪 __ 提交于 2019-12-13 07:28:15
问题 Im trying to get my Raspberry do stuff, based on the audio level of a played song (sound output). The song shouldn't neccessarily be a local mp3 file on the Raspberry. Let me explain it like this: If (audio level above threshold): do something.. I've found this http://freshfoo.com/posts/pulseaudio_monitoring/ which is pretty much what im looking for i guess, but i have to be able, reading single samples in order to compare it with thresholds ill be using. Analyze audio using Fast Fourier

Java audio fails to play wav file in Linux

可紊 提交于 2019-12-12 04:56:48
问题 I am having trouble using Java audio on Linux. This is OpenJDK 8 on Ubuntu 14.04. The following sample fails with the .wav file from this link: import java.net.URL; import javax.sound.sampled.*; public class PlaySound { public void play() throws Exception { // List all mixers and default mixer System.out.println("All mixers:"); for (Mixer.Info m : AudioSystem.getMixerInfo()) { System.out.println(" " + m); } System.out.println("Default mixer: " + AudioSystem.getMixer(null).getMixerInfo()); URL

How to allow pulse audio script to increase volume over 100% through bash [closed]

被刻印的时光 ゝ 提交于 2019-12-11 17:27:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I'm using this script to change volume in pulseaudio through keybindigs, but it has a 0% to 100% limit. As pulseaudio allows volume to increase over 100% (what is still to low on my notebook), I want to adjust it to allow 140% or 150% max volume. Note that by just commenting lines 105 ~ 111 the scripts works or

Convert C array of pointers to Python array of structures

五迷三道 提交于 2019-12-11 04:53:46
问题 I am writing a Python app that makes use of PulseAudio API. The implementation is heavily using callbacks written in Python and invoked by PulseAudio's C code. The most information is passed into the callback by a specific structure, for instance pa_sink_info , which is defined in C as follows: typedef struct pa_sink_info { const char *name; uint32_t index; const char *description; pa_sample_spec sample_spec; pa_channel_map channel_map; uint32_t owner_module; pa_cvolume volume; int mute;

winapi audio output

瘦欲@ 提交于 2019-12-11 03:14:49
问题 I am searching some alternative of pulseaudio for windows. Under linux there is very simple way to output raw sound (with pulseaudio): pa_simple_write(pulse, data, bufferSize, &error); It's work perfect with small buffers, that i send to function in the loop. Under windows i use something like this: void writeAudioBlock(HWAVEOUT hWaveOut, LPSTR block, DWORD size) { WAVEHDR header; ZeroMemory(&header, sizeof(WAVEHDR)); header.dwBufferLength = size; header.lpData = block; waveOutPrepareHeader

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

不打扰是莪最后的温柔 提交于 2019-12-08 17:11:32
问题 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 Pocketsphinx . I'm using Pulse Audio and my device is a Raspberry Pi . My microphone is a Playstation 3 Eye . Now off the bat, I have already gotten pocketsphinx_continuous to run correctly and recognize the words I have defined in my .dict and .lm files. The

pactl called from systemd service always reports “pa_context_connect() failed connection refused”

空扰寡人 提交于 2019-12-07 16:55:32
问题 I've setup a systemd service file to perform some pactl operations at system startup for a test process. While the commands work fine when performed from a terminal I always get "pa_context_connect() failed connection refused" when running the same script from the systemd service by starting the service. I'm also using the 'User=' directive in the service file to ensure that the auto-login user matches the user used to run the service commands. I've read that this is somehow related to the