Questions tagged [audio-playback]
For questions pertaining to the hardware and software necessary to play back audio.
127
questions
-1
votes
1
answer
20
views
Cannot Find 'play' command in terminal
I am trying to add sound effects to live audio on a Raspberry Pi.
I can succesfully do the same in terminal on my Mac using the following command.
play "|rec -d overdrive 30 tremolo 50 50”
...
0
votes
0
answers
24
views
How do I send a mono-wav file to a specific channel out of my USB audio interface from a RPi 4?
My USB audio interface is a Behringer UMC-1820. I'm working on a 8 channel sound installation where I'm sending mono audio to a specific output of the AI. I've seen a post How to feed 8 speakers 8 ...
1
vote
0
answers
123
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
1
answer
178
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?
0
votes
0
answers
113
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
1
answer
1k
views
Send audio output to Bluetooth speaker
I am working on a Python script that lets Raspberry Pi 4 play audio announcements (mp3 format) at specified times. I am using the Python OS library to send the play audio commands to system.
The aplay ...
0
votes
0
answers
39
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 ...
0
votes
0
answers
181
views
RPi4 audio periodically but randomly drops out
I am using a RPi4 and have connected it to ethernet and wifi, and run shareport to stream audio to my HDMI hifi (so I can have a wifi hifi!).
I also installed Rhythmbox, so I can stream the radio to ...
1
vote
2
answers
415
views
Alsa passthrough Digital In to Analog Out
I have a LogiLink USB Soundbox 7.1 connect to a raspberry pi running rasbian and I want to passthrough the input of S/PDIF In to Speaker Front.
I found this: Possible to route audio directly from usb-...
2
votes
1
answer
259
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 ...
0
votes
0
answers
70
views
Not Able to Change Volume with Cron (tried Python)
Alright, I've been trying this for several days and I'm just dying here...
I am putting together a kiosk that should play video. I'm using a NUC with Raspberry Pi Desktop. Everything works but ...
-1
votes
1
answer
169
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\...
0
votes
1
answer
176
views
ALSA: Why is the pitch of played sounds too low (½ the original frequency)?
I've just installed a fresh Raspbian Buster on My Raspi 3B+ together with a JustBoom DAC HAT sound card. With the old Raspbian installation, sound output went well after a couple of experiments, but ...
1
vote
1
answer
10k
views
How can I change the audio output device from the command line?
I want to be able to change the audio output device (hdmi or aux) from the command line, preferably, without having to sudo. I'm on a RPI4 with Raspbian-lite Buster.
On the RPI3 I was able to use ...
0
votes
0
answers
2k
views
How to force audio output to HDMI/3.5mm jack on RPi4 B via CLI?
on RPi 3 we are using something like amixer cset numid=3 1 and then alsactl store to force sound output to jack 3.5mm and store configuration.
I want same thing on my RPi4 model B, but it does not ...
0
votes
2
answers
2k
views
Connecting the pi to a phone using a RJ11 cable to send and receive audio
I'm trying to connect the pi 4 model B to a phone that I bought off Amazon (https://www.amazon.ca/Wild-Wood-Phone-Retro-Design/dp/B00H20B2GM). This phone is not connected to a landline or anything as ...
2
votes
1
answer
431
views
Alternative to Bluetooth for streaming Audio via Raspberry to stereo
I stream audio via bluetooth to my Raspberry which is attached to my stereo.
Now, I'd like to have the same without bluetooth with IP only. (Basically to save the 5€ for a bluetooth dongle for a PC by ...
0
votes
3
answers
135
views
Power Pi3b+ and 24V Amp off same supply
So I've got a few older pcbs for a low voltage tube headphone amp I built years ago - the Millett Hybrid - and was thinking I could put one together with my Pi3,IQAudio hat DAC, and WD passport HDD ...
1
vote
0
answers
65
views
No audio from omxplayer when running mp4 from shell script
On PI 4 I can run a video from terminal :
$ omxplayer -o alsa video.mp4
audio is ok.
When I add this exact line in a bash file it plays the video but no sound. I have tried all variations of -o. ...
1
vote
0
answers
86
views
Problem with choppy audio with VLC when mixing to mono?
I'm running the most recentist version of RP OS with most recentist version of VLC on RPI 3 A+.
(Dec 2 2020 Buster) (VLC 3.0.11 Vetinari)
I'm finding that the audio is "chopped" when the &...
3
votes
3
answers
5k
views
How do I force analog audio via the 3.5 jack when Pi 4 is headless?
I am deploying a Pi 4 on a wheelchair and require audio output to prompt the user. The Pi is headless (i.e. no monitor). On the bench, with a monitor, my code correctly sends the audio out the 3.5 ...
1
vote
3
answers
385
views
Control the Raspberry Pi from my Desktop to play music
So I have a not-so-modern audio system (no Bluetooth or something, but AUX entrance), a desktop computer running Linux on the other side of the room, and a Raspberry Pi which I never used lying around....
1
vote
0
answers
74
views
I simply want to be able to programmatically change the audio of a video to use headphones and not hdmi. Is this possible?
I tried
amixer cset numid=3 1
but I get
amixer: Cannot find the given element from control default
I tested the headphones with
speaker-test -t sine -f 440 -c 2 -s 1
and hear the sound through the ...
0
votes
2
answers
467
views
Slow audio playback with PCM5102A I2S DAC
I'm using the same PCM5102A DAC board on a Pi B Rev2 as in this blog post with software configured as per this post, connected in the same way. The audio playback is slow but otherwise of good quality....
0
votes
2
answers
582
views
No sounds playing from USB external speaker on Raspberry Pi
I'm trying to get some sound to play via an external USB connected speaker from my Rasp Pi 3 Model B.
aplay -L
gives me this entry (along with many others)
default:CARD=Device
USB2.0 Device, USB ...
1
vote
1
answer
126
views
Scratchy audio with certain wav files
I'm using a Raspberry Pi 4 with an Adafruit I2S Stereo speaker bonnet. I've run their setup script and rebooted many times.
I can play sample mp3 files just fine. They usually sound great. (I've had ...
1
vote
1
answer
379
views
I want to allow two instances of mPlayer to play music over a single bluetooth link to a speaker
I have an application which makes two uses of playing two files at the same time. The first is where it plays a white-noise file very quietly and continuously so that the sound-card does not go to ...
1
vote
1
answer
940
views
Raspberry pi 4 vlc isn't giving out audio
The below is the terminal log when I ran vlc. Could any one help me whats the issue here.
I'm able to hear audio from youtube in chrome but not through vlc when i play file. Video is fine.
The ...
0
votes
0
answers
23
views
VLC plays every other track silently and causes bizarre input problems?
I'm running a new Pi4 with Buster (desktop with recommended software)
When I play media files off my old Mac hard drive, VLC works wonderfully for the first file. However, when I give it a whole ...
1
vote
1
answer
240
views
distorted & slow audio autput when booting with no HDMI on 3b+
If I boot my Pi 3b+ with the HDMI cord plugged in then my audio sounds fine. However, if I want to run it headless and I boot the device without the HDMI plug then the audio is very slow and ...
3
votes
1
answer
770
views
Is there a way play a sound with a specific frequency that is transmitted through the raspberry pi's audio jack to a speaker?
I am trying to make it so that the code and change the frequency of the sound based on external inputs. So it should be able to update with new frequencies in real time. Preferably it would be with ...
5
votes
1
answer
298
views
Losing first few seconds of audio
So on my Raspberry pi when I play audio through the headphone jack, the first few seconds of sound are lost. However, I if I immediately play the sound again, the audio works fine from the very ...
0
votes
1
answer
462
views
RPI 4 - HDMI audio dropping on the begining of videos
I use a RP 4 with raspbian as a basic media center. It is running a mopidy music server using alsamixer. The sound via the HDMI is has no dropping.
But with mp4s, large or small, the issue is the same....
0
votes
1
answer
4k
views
Does the Raspberry Pi 4 speaks Bluetooth aptX-HD?
I'd like to use a RPi 4 as a bluetooth audio receiver. For optimal sound quality I'd like to transmit the audio using Bluetooth aptX-HD. Can the built-in bluetooth receiver from the RPi 4 receive that?...
-1
votes
1
answer
223
views
making my own HIFI portable audio dac for raspberry pi zero w
i am currently thinking to setup a portable volumio audio player
something like this one
https://www.allo.com/sparky/miniboss-rpi-zero.html
(i know i can order this instead nut my location(India) is ...
0
votes
0
answers
461
views
Raspberry Pi, USB Audio Card and 3.5mm Microphone
I've been trying to use this USB Audio card: https://http2.mlstatic.com/tarjeta-de-sonido-usb-71-con-control-de-volumen-D_NQ_NP_904044-MCO31004989404_062019-F.webp as sound output and input.
I ...
4
votes
3
answers
2k
views
Play multiple mp3 files
I need to be able to play up to 8 mp3 files at the same time. Is this possible with the raspberry pi 3b+? They need to be started in python code.
1
vote
0
answers
619
views
Using Raspberry Pi to capture police scanner audio
I want to take a Police Scanner, connect the headphone jack to a RaspberryPi, and capture the broadcasts that are received, so when the recording is played back it is just the transmissions, but maybe ...
1
vote
0
answers
156
views
Aux and HDMI audio options missing
Background (To give some perspective on the issue):
I am using mopidy and mopify as an audio server on a Raspberry Pi 3 B+. WHen setting this up, I found that it would not output through a USB audio ...
1
vote
0
answers
31
views
Send 24/96 pcm music from an rpi3b+ to a zero one
As my title says, I'd like to send audio from an rpi3b+ to another one.
Preferably a zero one via a GPIO connection.
My target is to have a dedicated device to only manage an USB DAC.
Ideally an Rpi ...
1
vote
0
answers
740
views
Connect Raspberry Pi via Bluetooth to Sound Bar
after spending the last couple of weeks trying to connect my bluetooth soundbar to my Raspberry Pi 3 B+ and playing all audio output on it I am close to giving up.
Using the GUI I can successfully ...
2
votes
0
answers
312
views
Raspberry as audio bridge
I have a car with a 3.5mm jack for aux-in. It has also BT for my phone. In my phone, I have deezer (more or less like Spotify) that I use to send music to the car audio system.
It works fine, but ...
0
votes
0
answers
3k
views
What might be causing "Failed to open ALSA device" errors when using a DAC board?
The equipment
I'm using:
Raspberry Pi Zero W
Allo BOSS DAC board
Volumio music player software
official Raspberry Pi PSU
I've tried more than one official Raspberry Pi PSU as well as other PSUs.
...
0
votes
1
answer
2k
views
How to use WM8960 Audio Board on Raspberry Pi Zero W
I'm trying to use the WM8960 Audio Board (not the HAT) on a Raspberry Pi Zero W. I followed the instructions for the HAT to install the driver (WM8960 Audio HAT User Manual). It seems to be installed ...
2
votes
1
answer
1k
views
How can I direct the output both of mpg123, and of eSpeak to the same ALSA sound device?
I'm currently struggling with the following scenario: I'd like to make my Raspi (3B) play a short MP3 jingle and then, after a 250 µsec pause, speak a short text by using an add-on sound card (...
2
votes
1
answer
743
views
Install spotify on raspberry pi 3 and run it remotely
I try mopidy and runeaudio, but the interfaces seem odd to me.
I want to install the Spotify app on my Raspberry 3, and access music through a URL I can share with anyone connected to my wifi. Is ...
0
votes
1
answer
2k
views
MPD with Bluetooth
Is it possible to run MPD with bluetooth in the Pi?
Currently many guides which I have seen are mostly utilizing Upnp/Wifi setup to run. Now this is fine if there was only Apple devices. Since ...
1
vote
1
answer
221
views
Raspberry pi 3B+ HDMI audio truncated
Ruuning NOOBS. I can set the default audio to HDMI out, attach an audio extractor to the HDMI, and get sound out. Except, with two different brands of audio extractors so far, it's common for the ...
0
votes
0
answers
244
views
espeak hangs when I invoke from command line - headless server
For some reason espeak hangs when I try to run it. Here is what I am getting. Any suggestions?
root@nifd:/etc# espeak hi
ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only ...
3
votes
2
answers
4k
views
Command aplay does not work without sudo
The command aplay only works if preceded by sudo. omxplayer test.wav will play the audio I recorded with arecord just fine. aplay text.wav does not, but sudo aplay test.wav does. The suggestions from ...