ALSA: open a PCM device in shared mode

I want to playback some audio data using ALSA to a PCM device. As an example I have downloaded this sample example and run it in my PC. It works fine when no other process is currently using the...

alsa on my target device says "cannot find card'0'"

I'm trying to enable my target's sound card to work through ALSA, it's a Qualcomm MSM8660 Snapdragon which means there is no pci devices and running a kind of embedded linux. Because this device...

C++ on Linux: Setting up socket & packets for minimum RTP stream latency

I have a Linux device that is supposed to stream from various real-time audio sources over RTP/UDP to a number of clients, and want to achieve the lowest possible latency. The way it works is it...

ALSA buffer xrun induced by low quality source in ffmpeg capture

I am attempting to transfer some old Video 8 tapes to my computer, though an EasyCap USB stick and the motherboard's sound line-in, on Ubuntu. I believe the arguments are correctly laid out below...

mplayer build with address sanitizer (asan)

I am trying to build mplayer using clang with the address sanitizer flag. However, I keeps getting errors when I execute make. Here is the full output log including the commands I used. Any help...

Embed LibVLC into my android app is not playing video, only audio is being played

After a 3 days journey, I finally got libvlc-3.0.0-2.1.0.aar compiled for embedding VLC player into my Android (tv) app. After adapting the LibVLC Android Sample into my project I finally run the...

GStreamer installation is missing a plug-in

I hope that someone can help with this problem, been searching for a solution for the past 2 days. To describe the problem in short: I'm trying to make a simple qt5.7 application that will stream...

PyAudio prints ALSA warnings and does not work

I am trying to run a basic python speech to text code. This is the code. import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: audio =...

pyGame full core usage in simple loop

Edit This is an open issue and appears to be related to alsa audio. A workaround is to shutdown the audio mixer, or install pyGame from source. pygame.init() pygame.mixer.quit() I am just...

undefined reference - portaudio

An issue I am having with this cmake list, is that I am getting error message error: undefined reference to 'Pa_GetVersion' for this piece of code: record.cpp: #include...

yocto kernel ti network error

i'm getting a network interface error when building for the 4.4 ti staging kernel. All layers are in the morty branch. The image is a core-image-minimal. Configuring network interfaces... ifup:...

How do some apps overcome phone recording restrictions?

Background Phone recording is not really supported on Android, yet some devices support it to some extend. This made various call recording apps gather as much possible information about devices...

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...

SpeechRecognition not working (microphone not detected)

I wanted to do an little program with Speech Recognition. Here is my code (classic one): import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print("SAY...

Recording 3 Microphones at the Same Time Using Python Without Getting a Input Overflow

I have to record 3 microphones simultaneously with as little delay between them as possible. This will then allow me to calculate the TDOA of sound between the microphones, so that I can pinpoint...

Pulseaudio set/check default source

So the question is, How can I set the default source? How can I list the current default source? Details I have 4 sound input sources on my linux device. Here is the result of pactl list...

How to create multiple mount points with different playlists in icecast with mpd?

I have installed icecast and MPD with YMPD client on the server. Currently It is running for single mount. I want to stream audio on different mounting like: /stream.ogg, /mp3, /audio with...

How to fix No sound on Ubuntu 18.04?

I've been using Ubuntu 18.04 with Windows 10 dual boot for some months now. Today suddenly my sound stopped working on Ubunutu. Activities -> Sound menu shows only "Dummy Output". All fine on...

Can't hear sound when audio is being played in Pyglet (Raspberry Pi 4B, Raspbian)

I am running the latest version of Raspbian on the Raspberry Pi with Python 2.7 and 3.7 installed. For a project, I need to implement some spatial/binaural audio file playback capabilities in...

Getting error with speech recognition python

import SpeechRecognition as sp def takeCommand(): r = sp.Recognizer() with sp.Microphone() as source: print("Listening....") r.pause_threshold = 1 audio =...

gstreamer: No decoder available for type 'audio/x-wav' / no suitable plugins found

I develop a Kivy Python application. It should have a sound effect. In Kivy it is simple as: from kivy.core.audio import SoundLoader ... def btn(self): sound =...

Cannot play audio file using python

I am trying to create a simple Assistant for my project. I crating an mp3 file and saving it using gtts module. After that i try to play that file but i cannot get it to play. I have tried many...

Unable to set up SDL2 to run with audio (alsa) on linux ubuntu 20.04 using conan

Depending on what I do I either get "No such audio device" if I leave determining my audio device up to SDL2 or I get Failed loading libasound.a:...

how to solve these ALSA errors

import speech_recognition as sr listener= sr.Recognizer() try: with sr.Microphone() as source: print("hai say something...") voice = listener.listen(source) command =...

nginx push rtmp stream to ffmpeg

On my Raspberry Pi with camera module, I try to setup a web-based streaming platform. I want to preview the stream in my browser and use CGI scripts to start/stop broadcasting to youtube...

SpeechRecognition throwing ALSA errors on Raspberry Pi

I am trying to use SpeechRecognition to record audio and convert it to text on a Raspberry Pi 4. Code: def textify(time_limit=None): r = sr.Recognizer() with sr.Microphone() as source: ...

Problem during installation PostgreSQL 12 and PgAdmin4 on Linux Mint 20.1 Ulyssa 64-bit

I want to install PostgreSQL and PgAdmin4 on my Linux Mint 20.1 Ulyssa 64-bit My inxi info System: Kernel: 5.4.0-58-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: MATE 1.24.0 info:...

Bokeh/panel won't render in-line with Jupyter Lab

I'm trying to visualize Bokeh plots and panels with a Bokeh backend in a notebook in JupyterLab. Things were running fine until I updated. Current packages and versions are below I have tried the...

Speech Recognition not working on raspberry pi

So I've recently made a speech recognition program in python which should print out what I say, but it instead gives me an error. Here is my code: import speech_recognition as...

Jack server is not running or cannot be start error in raspberry pi python

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.bcm2835_headpho.pcm.front.0:CARD=0' ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error:...