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).
1,100
questions
2
votes
1
answer
230
views
Which are the pin choices for powering and driving an audio amplifier with signal and power on raspberry pico pi
I am using an audio amplifier,PAM8302A from adafruit link, to power a 8ohm 1W speaker (small speaker) that is being driven by a raspberry pi pico. The amplifier has A+ for the signal/audio input (not ...
1
vote
0
answers
203
views
Suggestions on using Pi as an audio delay buffer
Trying to find a solution to using a Pi as an audio delay device (in the order of 10 minutes or so).
I have an external analog audio source providing constant audio to the Pi via an external USB ...
1
vote
1
answer
413
views
Raspberry pi 400 HDMI audio problem with Bullseye
I see there is another question about HDMI audio on here but I have a permutation of it so I ask my question as well.
I've tried everything to get HDMI audio on my pi400 working properly.
I think it's ...
-1
votes
1
answer
91
views
Audio quality changes depending on input channel RPi4
I'm trying to use my RPi4 as a real-time audio processing device to detect when a certain acoustic frequency is present in an environment. The pi performs real-time fft on an audio stream from a USB ...
1
vote
0
answers
274
views
Can anyone help with Pi 4 mplayer HDMI audio passthrough?
I have a Pi4, and am using pipresents to create museum touchscreen exhibits. Pipresents plays audio using mplayer. I would like to play a 5.1 surround sound ac3 file, which gives some spatial ...
-1
votes
1
answer
280
views
how to automatic detect song playing?
i’m planing on using a raspberry to automatically detect any song playing in a room and display it’s album art, is there a framework/api capable of song recognition? like soundhound or shazam?
1
vote
0
answers
32
views
is it possible to change the Audio output channel (3.5 mm Jack /usb soundcard or via gpio's) with MATLAB?
i want to be able to change the audio output channel via Matlab.
is it Possible to apply these changes? (Signal Rooting)#
if there is a way, i would appreciate any help or guide.
thanks a lot
1
vote
0
answers
42
views
Airplay TV audio to WiFi speakers
I have been seriously searching and searching for a way to get my TV audio to my Sonos speakers via Airplay. I definitely know that the Raspberry Pi can Airplay play, but what I don’t know is which ...
0
votes
1
answer
140
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 ...
1
vote
1
answer
219
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
1
answer
805
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
139
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 ...
0
votes
0
answers
21
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
1
answer
2k
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/...
2
votes
1
answer
119
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
172
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 ...
1
vote
1
answer
1k
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
59
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
318
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
184
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
109
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
2
answers
3k
views
The problem with installing pyaudio
I want to install pyaudio on my RPi 4 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 ...
1
vote
1
answer
165
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 ...
1
vote
0
answers
91
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 ...
0
votes
0
answers
44
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 ...
0
votes
0
answers
53
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 ...
-1
votes
1
answer
527
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 ...
0
votes
1
answer
368
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 ...
1
vote
1
answer
73
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 ...
0
votes
0
answers
564
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
1
answer
230
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 ...
0
votes
1
answer
817
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
74
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 ...
1
vote
1
answer
137
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, ...
0
votes
0
answers
2k
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 ...
1
vote
1
answer
2k
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 ...
2
votes
0
answers
1k
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
152
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
308
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 ...
0
votes
1
answer
387
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 ...
0
votes
1
answer
222
views
RCA audio settings
I have a Raspberry Pi 4 running Raspbian Lite Release 10. I will be running squeezelite on it for it to function as a squeezebox player. I need to have sound output to RCA jacks to plug into my ...
1
vote
1
answer
97
views
Skip 1second in play mp3 the first time
I'm using Rasp4 and I'm trying to let rasp speaks using gtts-cli. It works but the first time I play it skips more or less 1 second. I run this command:
gtts-cli -l en 'Good morning my dear friend' | ...
2
votes
1
answer
3k
views
Audio output on Raspberry pi Zero W
I was trying to take an audio output from piZero-W, the article I followed was,
this one.
How to get audio through the gpio pins to a 3.5mm jack?
When running - systemctl status alsa-state
the result ...
2
votes
1
answer
316
views
Audio not playing through Java on Raspberry Pi
The issue
I'm trying to play sound on a Raspberry Pi 3 B+ through Java, but it doesn't work. I have
Written code (shown below) in IntelliJ, and confirmed that it works on Windows 10.
Connected ...
1
vote
2
answers
372
views
AirPlay just through HDMI?
I am fairly new to this Raspberry community and I would like to set up mine Raspberry as pocket audio streamer / light computer. I have installed Raspbian where I want to run AirPlay (shairport-sync) ...
0
votes
0
answers
143
views
Headphone Jack deactive when RasPi starts without screen
I want to set up a Jukebox (Phoniebox) with my RasPi (3b+) with an audio output via the headphone Jack. When I boot the RasPi (3b+) with a connected HDMI screen, everything works fine, and I get an ...
1
vote
0
answers
94
views
Audio DAC for raspberry pi with 2 outputs (build in sspeakers + TS audio out)
I'm working on a project for one of my band that runs on a raspberry pi with samplerbox. the raspberry pi is connected to a powered speaker and a midi keyboard, and I can play from a set of samples I ...
0
votes
0
answers
681
views
Multiple Bluetooth speakers with Multiple Raspberry Pi’s
I want to be able to connect multiple Bluetooth speakers to raspberry pi’s, with two different inputs. My end goal is to have a Sonos-like system, where all the speakers are playing in sync.
Inputs:
...
-1
votes
1
answer
211
views
How do I change the PWM GPIO port in the sine_wave_pwm sample application of pico-playground?
This is the sample code in question: https://github.com/raspberrypi/pico-playground/tree/master/audio/sine_wave
I cannot see where it has set it's PWM output pin. Inside
"..pico-extras\src\...
-1
votes
1
answer
528
views
Is there a way to manually change raspberry pi's audio setting to built-in digital?
As soon as I full-upgraded my pi, my sound has not been working on any apps (including chromium). I have tried to type in terminal code to stop it, but have had no such luck. The only app that still ...