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
13 views

Microphone volume seems to increase via PulseAudio but arecord does not see any increase

I am still trying to understand how the audio input/output stuff works over PCM on the Pi its new to me as I've never dealt with it before. All of the testing below was on the latest Raspberry Pi OS ...
-1 votes
0 answers
24 views

can I make a real-time vocoder in raspberry pi

So, I would like to go crazy and attempt to build a real-time vocoder in a Raspberry Pi 3A+, like the videos where they mix two audios. I want to use my voice as one of the audio and then make a music ...
  • 1
0 votes
1 answer
39 views

Is it possible to play a MP3 file immediately as the Pi receives power?

So I want to play a MP3 file instantly as the Pi receives power, it doesn't have to be instantly though, it can have a few ms of latency. I'm thinking a Raspberry Pi Zero W or Raspberry Pi 3 Model A+, ...
  • 3
1 vote
1 answer
72 views

Audio via PWM pins?

Okay, kinda a noob here. I've been looking around, trying to find an answer to playing audio via the PWM pins. I tried rerouting the audio to no avail. I've tried making a script that uses PWM to play ...
0 votes
0 answers
19 views

Alsa mixer won't save setting

I have UGREEN usb audio interface. MY pi 4 is recognize it but no sound is comnig out. I try both via VLC player and via youtube (the video won't even play) I did the follow: I wrote at terminal: sudo ...
  • 1
1 vote
0 answers
16 views

No sound from UDA1334 PCM DAC on Compute Module 4 with 64 bit Raspberry Pi OS

So I am trying to verify that two PCM devices I have work one is a UDA1334 and the other a microphone. So I installed the latest 64 bit Raspberry Pi OS and enabled I2S and the hifiberry-dac overlay. I ...
0 votes
0 answers
21 views

SteamLink fails to fully start due to vague initialization error

I’ve been trying to get SteamLink working on my RPi 4 with Bullseye ‘Lite’/headless installed. I’m able to get steam to startup, download the necessary packages, and even load enough to finishing ...
  • 295
1 vote
1 answer
17 views

Playing audio with Python scrpitpt run from Cron

I have a USB sound card connecting mic & speakers to a Raspberry Pi Zero W + The following script plays audio fine when run from the terminal. However, when run from cron, nothing can be heard. ...
0 votes
1 answer
310 views

How can Rpi Pico W control a GPIO pin connected, I2C digital MEMS microphone?

Using the Raspberry Pico Pi, how can micropython be used to get the values from a MEMS microphone such as the Adafruit Silicon MEMS Microphone Breakout - SPW2430 link to ada fruit Product ID: 2716. ...
  • 123
1 vote
1 answer
43 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 ...
  • 123
1 vote
0 answers
37 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 ...
0 votes
0 answers
15 views

Not synchronized audio and video recorded with python

i bought an USB microphone and a Camera module for the raspberry pi4. I managed to record Audio and Video but when i merge them with ffmpeg the are not synchronized, i'm trying to solve this for 2 ...
  • 1
1 vote
0 answers
59 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 ...
  • 11
-1 votes
1 answer
24 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 ...
0 votes
0 answers
21 views

Pygame audio poping/crackling on Raspberry Pi 4

I'm running a code that uses this soundController class that I've created with some .wav files. The games runs as a service in RPI4. The audio starts fine but at some point they start to get distorted ...
0 votes
0 answers
41 views

Extract digital audio from HDMI and pass it through USB?

I have a Raspberry PI 3 (but will soon upgrade to 4) that among other things is attached to an external DAC and amplifier via USB and runs spotifyd. It works pretty well, but the downside of my setup ...
1 vote
0 answers
62 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 ...
  • 11
0 votes
0 answers
66 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?
  • 101
1 vote
0 answers
21 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
  • 11
1 vote
0 answers
29 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
0 answers
49 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
42 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
34 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
111 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
132 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
48 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
40 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
180 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 ...
  • 111
0 votes
0 answers
24 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
40 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
587 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
27 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 ...
1 vote
1 answer
49 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
61 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
347 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
26 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
76 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
33 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
41 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
89 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
162 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
103 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
78 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
283 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
695 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 ...
  • 429
0 votes
1 answer
64 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
63 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
32 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

1
2 3 4 5
22