Questions tagged [audio]

The Raspberry Pi has an analogue stereo audio jack output (Pi 1 A/B/B+, Pi 2, not Pi Zero), and audio can also be heard through the digital HDMI output (all models).

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Python script is using 3.5mm jack instead of Bluetooth speaker

I am trying to use a python script which works fine as intended. Even the Bluetooth speaker is working fine with this RPi when playing some audio or video file through GUI. The only problem I am ...
0 votes
1 answer
26 views

Can't run FFPlay to playback an Audio Stream on Port 80 using systemd service?

I am trying to play a radio station WETA FM from a systemd service. I think the problem is that the URL source goes through port 80 and therefore the radio doesn't play after reboot. It plays fine ...
0 votes
1 answer
11 views

EMI noise on an I2S DAC only with GPIO PSU

If I power from a Pi USB PSU my DAC is quiet and also so is the boot. I am trying to power from a 24v PSU with a 5v step down on GPIO and tried all sorts of EMI filters, Wide Input SHIM from Pimoroni. ...
0 votes
0 answers
34 views

Replace a KeyboardInterrupt with a button press to stop a continuous recording

I am trying to use the following code to act as the recording module for a wedding guest phone, I plan to run this script from one that will sense when the handset is lifted, play a message, and then ...
0 votes
1 answer
33 views

Record audio whilst pressing a button in scipy

I am trying to make wedding guest answer phone for my sister. The basic idea of these things is you pick up the handset, hear a message from the host, leave you own, replace the handset, and the ...
0 votes
0 answers
14 views

PyQt QSoundEffect not working on Pi 4B

I am having a perplexing difficulty, in that I cannot get my PyQt program to produce any sound. I am able to get sound correctly from the Pi over HDMI using speaker-test and paplay, so I am happy ...
  • 210
0 votes
0 answers
19 views

Raspberry Pi 4 b 8GB RAM Speaker Jack works perfectly with Raspbian, but either no audio or static noise Windows 10 Suspect IRQ Conflict

I have read a lot of postings but not one has addressed the problem, everything from typing commands to pulling the 3.5mm plug out a little because its too long, try different types of plugs (stereo ...
0 votes
0 answers
52 views

Retropie Sound Settings for default and sysdefault Sound Cards

Good Day, I am trying to make it (relatively painless) to switch the device that plays sound for my RPi 4/Retropie. I bought a HiFiBerry DAC2 HD and would like to switch between outputting sound via ...
  • 101
0 votes
0 answers
17 views

HDMI audio not working if screen off when pi boots

I am using Pi Zero 2 boards on a custom PCB for kiosk use and had some users complain about a lack of audio. I've discovered that even if HDMI audio is forced, the pi will not output audio over HDMI ...
0 votes
0 answers
19 views

Is it possible to access the output volume of an mp3 file?

I would like to make an LED pulse using PWM, such that the LED brightness/PWM width supplied to it will vary with the volume of an MP3 file. Is there some way I can access the real time volume of the ...
0 votes
0 answers
28 views

Looking to use Raspberry Pi 4 as a USB audio sink, for direct connection

I want to use my Raspberry Pi to take real-time audio (not network streaming) in PCM via USB, where a PC host will see the Raspberry Pi as an audio device gadget. From there, I plan to use the CPU of ...
0 votes
1 answer
96 views

RPi 4 HDMI sound problem. HDMI 0 is not displayed

Hello dear RPi friends, an HDMI cable is connected to an audio extractor at HDMI 0 (near USB-C) to tap off the audio signal for further output. No video signal is used by the audio extractor. /boot/...
0 votes
0 answers
25 views

Audio and Video Recoding over RPi Zero suggestions

I want to record both audio and video to my local using rpi zero. I've been struggling with this for a long time and at the end of the day there are 2 different problems that I can't solve for 2 ...
0 votes
1 answer
36 views

whats the difference between systemd service and running app directly?

In what ways are things different when running an app directly as a user, vs running the same app as a service with systemd? I wrote an app to play audio cues on my RPI. It is working perfectly when I ...
-1 votes
1 answer
36 views

Wrong sound output when using pygame

I am using a raspberry pi 4 and am having issues with the sound output. I am trying to run a program in python using pygame to play an audio file when I run the program. The program works and it plays ...
0 votes
0 answers
17 views

Is it possible to send/receive midi data via audio out/in ports?

There are a couple standards for using 3.5mm TRS ports to send/receive midi data, rather than the traditional 5-pin DIN connector: https://minimidi.world/ Of course, the driver circuit behind the port ...
  • 101
1 vote
1 answer
177 views

I'm unable to install FLAC on my Raspberry Pi 3

I'm trying to make a tts program on my Raspberry Pi 3 and I'm using Googles TTS API which requires that I have FLAC installed on the Pi. When I attempt to install FLAC, I'm thrown this error- pi@...
0 votes
0 answers
23 views

How to use adc to receive 40khz and 43khz modulated signals?

I am currently using thePmodAD1 in this mod for signal reception This is my code from DesignSpark.Pmod.HAT import createPmod import numpy as np import pandas as pd import matplotlib.pyplot as plt adc =...
0 votes
0 answers
51 views

Pygame vs omxplayer vs mpv

I've been using Pygame for some entertainment app's that include a monitor-display and keyboard and playing MP3's, and am quite satisfied with it for that environment.... works well and stable. Now I'...
  • 1
0 votes
0 answers
28 views

USB Sound Output Only Sending 16 Bit

I am using the RaspberryPi 4 running Raspbian (Debian: 10, Linux Kernel: 5.10) and have connected to my DAC (Cambridge Audio CXA61 which is a DAC/Amplifier) through USB. While playing a 24 bit, 96 kHz ...
  • 1
0 votes
0 answers
34 views

Sonic Pi Slurs and Ties

I'm trying to duplicate a few sheet music song phrases. I use a command like: play_pattern_timed [:b3,:a3,:c4], [0.5,0.5,1.0] # for regular notes (which works fine). However, when I try to code a ...
  • 1
0 votes
0 answers
55 views

WebRTC and i2s microphone problem

Hope someone can help. I have this mic, uv4l and webrtc installed on my rpi B+ with buster. I control the raspberry pi via SSH. When I open a brower on my mobile phone, I can speak into it and get the ...
0 votes
0 answers
89 views

DAC quality effect on Bluetooth music streaming

I want to transmit music(Spotify and mp3 files) to my Bluetooth speakers from my Raspberry Pi. I have read that the onboard DAC on Pi isn't good so use an external DAC with better sound quality. ...
-1 votes
1 answer
69 views

Can you use gpiozero wait_for_press() inside of a callback triggered by add_event_detect?

I am trying to write a script that uses a GPIO interrupt to callback a function that starts by playing a sound and then waits for a button to be pressed to start recording a sound, and then waits for ...
0 votes
3 answers
58 views

Trying to run a python program on boot - error file location?

I have edited rclocal to include this line: python3 /path/to/my/program.py & I used an ampersand as my program has an infinite loop. The program never runs though. The program: import RPi.GPIO as ...
0 votes
0 answers
140 views

Stream audio and video to web browsers via HTTP?

I'm trying to set up a Raspberry Pi in a way that will stream both audio and video together. Currently I'm running Pikrellcam to stream from RPi camera and USB microphone. It works great, you can ...
0 votes
2 answers
426 views

The problem with installing pyaudio

I want to install pyaudio on my RPi4 that has 64bit bullseye 11.2. According to https://makersportal.com/blog/2018/8/23/recording-audio-on-the-raspberry-pi-with-python-and-a-usb-microphone I should do ...
  • 419
0 votes
1 answer
41 views

Cannot start jackd with a low period size - ALSA fails

I'm attempting to build a multi-effect guitar pedal out of a Pi-4B (8GB), and am running into problems getting jackd running with reasonably low latency. It runs fine as long as the period is set to ...
  • 101
1 vote
0 answers
37 views

Getting omxplayer to play through a HiFiBerry DAC

First, I know a thing or two about the Pi, but the audio system is still a complete mystery to me, so please be patient with my ignorance. After installation of a HiFiBerry DAC, omxplayer does not ...
  • 111
0 votes
0 answers
26 views

sound .wav clip on ubuntu 21.10 with openjdk 17

I'm trying to play a .wav file on my Raspberry Pi (4). My OS is Ubuntu 21.10, 64 bit. My JDK is Open JDK 17.0.1. I've downloaded a sample .wav file to play it. The .wav file located under resources ...
  • 101
0 votes
0 answers
33 views

A way to disable Bluetooth audio output when hdmi output (TV) is on

I am very new to raspberry pi. I have pi 4 running raspbian os and I am trying to keep it connected to tv ( to use for internet browsing and watching video) and at the same time as a reminder that ...
  • 101
0 votes
0 answers
31 views

Short Bluetooth audio distortion at regular intervals

I'm using a Pi 4 to receive Bluetooth audio and play it back via HDMI on a TV, using stock 32 bit Raspi OS Buster. It works out of the box, using the built in Bluetooth device. However, at regular ...
  • 155
-1 votes
1 answer
123 views

RaspBerrypie SIP to Pa Device, using pjsip

i been struggling with a little RaspberryPie project (iv tried it on RaspberryPie 3 and 4) Basically i am trying to build a SIP to Loudspeaker Converter using a Raspberry pie. So far installing pjsip ...
  • 11
0 votes
0 answers
38 views

No sound on RPi4 after no sound is player for a while

I have issue when playing sound with aplay commad. I have simple Java application which plays sound after events occurs in application. Sound is played by calling bash script which has aplay coomand ...
0 votes
1 answer
127 views

RaspberryPi 4 use PWM via 3.5mm jack or GPIO PWM Pins?

I am using the Adafruit TPA2016 to convert the audio PWM signal from the Pi4 to a better sounding analog signal. The RaspberryPi4 has a few PWM Pins and the 3.5mm Jack which also uses PWM. My question ...
0 votes
1 answer
32 views

Obtaining a constant audio signal independent to volume

Sorry if this is a silly question but Is there a way to have an independent gain audio signal from a Raspberry Pi that does not vary with the software volume control? I am trying to get a constant ...
  • 1
0 votes
0 answers
361 views

Cannot route audio to HDMI on Pi 4 Bullseye

Running latest update of Bullseye (11.1) on Pi 4 with 2 gig. Fresh fully updated copy of the OS. The menu bar audio item, which should list options, only lists "AV Jack" as an option. The ...
0 votes
0 answers
97 views

Respeaker 4 Mic Array: Doesn't seem to work on Raspberry pi 3B+

So I got this Respeaker 4 mic array, but it is not working for me and I have no clue why.(I am new to this so it may seem like a silly reason but I don't know what to do)... I am following this ...
0 votes
1 answer
100 views

Set two sinks with pulseaudio

I have two raop speakers that I can stream audio to from my Raspberry pi using Pulseaudio and AirConnect. At the moment, I can set either one as the default sink and it works as expected. I would like ...
  • 101
0 votes
1 answer
244 views

Raspberry Pi, how can i turn bluetooth on and off over Python script?

i want to play either a sound, which is saved on my raspberry pi as a MP3 file or send a song from my phone over bluetooth to my Pi. So i found out, that if i run a song over bluetooth and play one ...
1 vote
0 answers
55 views

Audio Injector input to Bluetooth Output

What I am trying to do is have the audio come into the Raspberry Pi via the Audio Injector "Stereo" and then pass through the Pi and output the audio to Bluetooth speakers. I have ...
  • 11
1 vote
1 answer
56 views

Streaming video+audio from Pi4 to Pi4 via ethernet

I would like to stream video & audio from one Pi4 (equipped with mic/cam) to another Pi4 (equipped with screen/speaker) via ethernet (cable connected directly between them). I've looked around, ...
's user avatar
0 votes
0 answers
1k views

Raspberry pi 400 no sound over HDMI

I bought a Raspberry Pi 400 to connect it to my old TV (Telefunken) and make it a smart TV. I installed the latest Raspberry Pi OS, and everything works EXCEPT the sound. I connected the TV by the ...
0 votes
1 answer
463 views

Acquisition of multi-channel audio data with a Raspberry Pi

I would like to build an autonomous audio device with a Raspberry Pi that can record audio data from 4 different microphones/hydrophones. I want to use this to perform acoustic localization so time ...
0 votes
0 answers
467 views

Command Line Audio Player on Raspi

Yes, I know about omxplayer. :-) Looking for an audio player for raspi that I can run as a background daemon. I need it to: run headless enqueue a playlist accept commands through an alternate ...
  • 111
0 votes
0 answers
525 views

No sound in Chromium on a Raspberry Pi 4 using HDMI but works with everything else including Firefox

I am Running Raspbian OS 32 bit (Bullseye) and no matter what I do I can't get any sound output through Chromium but with Firefox and everything else I have sound. I have tried editing config.txt, ...
's user avatar
1 vote
0 answers
727 views

How to configure sound on Debian Bullseye on pi 4b

I just upgraded my raspberry pi os from Buster to Bullsye, and I have found that the audio is now working. I right-clicked on the speaker icon on the taskbar and I got this. see the part on the top ...
0 votes
1 answer
73 views

Why did my Raspberry Pi 4 stop playing sound?

Two updates ago, my Pi 4 just stopped playing sound and I tried doing another update/upgrade combo and still nothing. Could this be a corrupted sound driver? How can I fix this? I purchased the Pi 4 ...
1 vote
3 answers
89 views

How to loop audio through a pi for voice change effects?

I want to put a raspberry pi as a voice changer (using sox) between a headset and a game console to add some authentic voice effects for video games. The raspberry pi needs to loop the audio signal ...
  • 111
0 votes
1 answer
165 views

Pygame audio is full of pops/crackling when started via systemd

I'm trying to set up a Python process that plays audio to auromatically start on boot with systemd but when I do the audio is full of pops, even though it's fine when I run it myself in the command ...
  • 111

1
2 3 4 5
22