The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1
vote
1answer
64 views

RPi3 B+ Stretch. Config for external capture device & onboard headphone jack

I am planning to use an external Microphone "ReSpeaker 4Mic Hat" from Seeed-Studio on my RPi3 B+ Stretch OS. However, when I run alsamixer, my external Mic is not the default capture device. It seems ...
0
votes
1answer
82 views

2 separate audio outputs sample player

I'm looking to (hopefully) create a sample player that will be capable of playing 2 wav samples at once. One out of one stereo out and one out of another. (To send one to a stereo mix in a sound desk ...
1
vote
0answers
13 views

Sounds in a Python Program [on hold]

I have a simple program to find a number in a number guessing game. I would like to insert some sound like "your number is too high" into the program. I can record the phase but what do I insert into ...
1
vote
1answer
3k views

Alsa lib error pyaudio on raspberry pi 3

I'm getting these ALSA lib errors when trying to use pyaudio. I know my mic works as I can live stream audio through gstreamer. Can anybody explain to me why i'm getting these issues: ALSA lib ...
1
vote
0answers
18 views

Software/Framework Recommendations [on hold]

I'm prototyping a device using a raspberry pi 3b+. Here are some of the requirements I'm hoping to fulfill. *When I say "device" I'm referring to the raspberry pi. Device Requirements Stream ...
0
votes
3answers
123 views

No audio output through 3.5mm jack but OK through HDMI

I'm having trouble with audio playing through 3.5mm jack. Audio is playing fine through HDMI, but when 3.5mm jack is selected using all 3 options (i.e. - terminal command, configuration tool or by ...
0
votes
0answers
6 views

Audio Injector stereo soundcard is preventing boot

I recently bought a Audioinjector stereo soundcard HAT to stream sound on my raspberry pi running Raspbian. I went to their website and installed the .deb installer file and ran it with audioInjector-...
0
votes
0answers
38 views

What does amixer cset numid=3 3 do?

In order to solve missing audio via HDMI with Raspberry Pi 4B (Raspian Buster) I came across amixer cset numid=3 2 which didn't do the trick for me. But randomly I checked numbers from 0 to 4 and ...
1
vote
1answer
320 views

Connecting Hifiberry Digi+ clone (PiFi Digi+ V1.0) to an Raspberry Pi 1 B (26Pin Header)

Hi I wanted to make use of an older Raspberry Pi and build an Volumio Music Player. I ordered Hifiberry Digi+ clone (PiFi Digi+ V1.0), unfortunately I forgot I own an older Raspberry Pi 1 B with the ...
0
votes
1answer
31 views

Setup respeaker pi-hat 2 on RPI ZW

I am trying to run snips on my rpi0w, and has mounted the respeaker pi hat on to it. Installed the driver using git clone https://github.com/respeaker/seeed-voicecard cd seeed-voicecard sudo ./...
0
votes
2answers
192 views

Voice recognition of just 1 word

New to Raspberry Pi - I want to create a device which upon hearing a particular word it will activate/deactivate something. E.g. if I say the word "light", it will turn on/off an LED light. The ...
0
votes
1answer
29 views

Toslink input for Raspberry Pi

I am looking for optical Toslink input for Raspberry pi (any model). If I just connect a DLR-1140 receiver to PCM_DIN, would that work? My goal is to build a sound server. I have a TV that outputs ...
0
votes
1answer
108 views

Wifi Speakers like bluetooth speakers using raspberry pi 3b+

So basically I was able to use my raspberry pi as a bluetooth audio out device that is, connecting a speaker via audio jack I'm able to make it a Bluetooth speaker. I'm wondering if there's a specific ...
1
vote
1answer
32 views

Host MP3 streaming website on raspberry pi

I (as I am sure most people do) have loads of MP3s and CDs from pre Spotify days (other services are available). In particular I have quite a few that aren't on Spotify. So I have decided that I would ...
0
votes
0answers
14 views

respeaker HAT and voip using raspberrypi

I am using the respeaker HAT on my raspberrypi 3. After installing the drivers im able to record the sounds using the inbuilt mic and play it from my speakers (using the command arecord -f cd -Dhw:1 | ...
0
votes
0answers
26 views

Audio Output for RPi 3 Mobel+

Very simple question. If I do this: Navigate to your screen. Select "Manage Screen". Select "Advanced". Set "Audio Output" to "3.5mm jack". Press "Save". Would I be able to listen to music via USB ...
0
votes
1answer
245 views

Enable audio over HDMI on Raspbian Jessie with AV Receiver

I am attempting to connect a Raspberry Pi Zero W with HDMI to an AV Receiver (Pioneer VSX-820). My interest is exclusively in playing sound over the speakers connected to the receiver, although there ...
0
votes
0answers
17 views

I want to stream my PC's audio to a smart lightbulb color changing for muh RGB [on hold]

Background: I've tried various smart bulbs and I think my only option is to buy a phillips hue color changing light bulb, connect to a phillips hue hub, connect hub to raspberry Pi and have Pi ...
1
vote
1answer
2k views

OMXPlayer Audio Out of Sync with Video

I have a RPi and I'm trying to play a full 1080p HD video @ 60fps. The audio is a few seconds ahead of the video. Is there any way to get the video to maybe drop frames? And I'm using a 256MB model, ...
0
votes
1answer
209 views

Retroactive audio recording/continuously record audio, save last X minutes on command?

I'm trying to set up my Raspberry Pi to continuously record the last X minutes of audio until given the command to save it to a file. The only comparison I can make is an NVIDIA Shadowplay for audio. ...
0
votes
1answer
39 views

Usb sound device to 3.5mm output real time

I have a raspberry with a usb mic. I want to stream realtime the mic input to the 3.5mm output. Is this possible?
1
vote
1answer
239 views

LineUnavailableException when loading audio clip with Java on RPi

My RPi is Zero W and using Raspbian Jessie 4.9.35 / Oracle JDK8 1.8.0_65. I'm having problem with loading audio clips on Java Program with RPi. I have two audio files named "piano_0.wav" and "piano_1....
1
vote
1answer
363 views

Bluetooth Connecting two devices

I am trying to set up bluetooth so that I can play music from both my phone and my computer in alternation (ie, if I want to go in the other room on a call where the phone stops playing, i can switch ...
0
votes
1answer
39 views

Is it okay to leave the AV jack plugged in the 3.5 mm port all day long?

Raspberry Pi 4 casing is not available here. So I have to plug in and plug out my earphone very carefully. Today I made a cord. One end of the cord is always in the Pi and other end is for using the 3....
0
votes
0answers
341 views

Text to speech errors

I try to make a python script for Raspberry Pi 3 B+ with Raspbian to speak text I input. I use pyttsx3 library but I also tried espeak from command line. Every time, the sound is very laggy, it start ...
-1
votes
1answer
35 views

Can I safely connect audio output from USB soundcard to TRRS input of Raspberry Pi [closed]

I am piping audio from my MacBook into my Raspberry Pi 3B. MacBook -> Headphone output of USB soundcard -> TRRS cable -> RasberryPi jack input I am then running it through a DSP algorithm ...
0
votes
1answer
242 views

USB soundcard works for audio test but not for mp3

I've been struggling to get my USB sound card to work with my Raspberry Pi 3. After following some suggestions I have had limited success. On startup if I run speaker-test -c2 -twav this test ...
0
votes
0answers
36 views

VLC player can't play larger media files on raspbian

I am using Pi 4 for an week. I tried some media players available on repository like vlc,kodi,mpv etc. I have noticed none of them can play a media file(mp4,avi,mkv) smoothly. So I am stuck with vlc. ...
1
vote
1answer
19 views

aplay/arecord device order changes every reboot

I have a couple of different applications running that rely on knowing the audio or recording device at startup, but every time I restart my raspi, the order of the devices changes. Looking for a way ...
0
votes
1answer
2k views

This sound device does not have any capture controls

I have a USB microphone. $ arecord -l **** List of CAPTURE Hardware Devices **** card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 ...
0
votes
0answers
19 views

Why VLC can not play AAC Audio?

Is there any extra codecs for raspbian/vlc that can help me play an AAC file.
0
votes
1answer
430 views

Frequency bands from FFT (audio visualizer)

I'm currently working on an audio visualizer running on a 64x64 LED matrix, and some tests showed that the Pi1 is totally capable of doing that. I'm receiving raw PCM audio data using PortAudio, and I ...
0
votes
1answer
255 views

Sudo Alsactl Store Not Saving Capture Settings

I am working on a project with alsa on the Raspberry Pi, and whenever I reboot my capture settings are reset. I have tried saving them via sudo alsactl store but this only saves the playback ...
1
vote
2answers
2k views

Is PiCAST supposed to work like ChromeCast? If not, then which project would?

I'm looking for a program that will simulate ChromeCast on my Pi 3. I successfully installed PiCAST but I'm not seeing a new device where I can stream to on chrome on my mac or on android. Is PiCAST ...
0
votes
1answer
244 views

How do I allow for multiple dtoverlays? (SX400 DAC and Tontec screen work alone, but not in conjunction)

I'm working on a particular musical project that requires both of these devices to be working, yet if both dtoverlay=mz61581 (the screen) and dtoverlay=iqaudio-dac-overlay (DAC) are uncommented in /...
1
vote
1answer
134 views

Piping (Live Playing) Audio to FFT Process

I am trying to build a project that does a spectrum analysis on audio playing through my Raspberry Pi using FFT. I will be using GPU_FFT in C++ to do the bulk of the calculations (which should be ...
1
vote
1answer
426 views

Raspberry pi 3 audio issue

I am having trouble with my Raspberry Pi audio. I have the same problem with two different Pis, using two different TVs, two different HDMI cables, and one set of analogue speakers. To test sound, I ...
0
votes
2answers
19 views

Generating Stereo Audio in PI programmatically

I want a stereo output form the PI. The sound being played will not be a recorded sound rather it would be generated using a code (preferably python). For example, the program's input will be (x,y,z) ...
0
votes
1answer
492 views

Using Raspberry Pi as audio filter

So I work with many devices that produce static or other undesired noise and I want to use my raspberry pi zero to filter the static from the incoming audio and play it out of the HDMI audio device. I ...
0
votes
1answer
37 views

I2S data stream format

While I'm working with RPi I2S and couple of DACs, I notice something which I like to verify in here. When I connect the scope to I2S interface I usually see waveforms similar to this: In here 1st ...
0
votes
0answers
20 views

Raspberry with HiFi Berry and only one speaker

I have a Raspberry Pi with a Hifi Berry Mini Amp. But I only connected one speaker to the hifi board. (I build a small radio with it) Now I'd like to make sure that my speakers play everything. So, f....
0
votes
0answers
17 views

How to play audio to specific sound card (Internal - External(USB)) using aplay?

I having two different wav files, i want to play one of the file into my internal sound card and the another wav file to my external usb sound card. I am using the below command... aplay -D plughw:0,...
0
votes
2answers
747 views

How to measure the frequency of the audio output

I was wondering how I can measure the frequency of the audio output of my raspberry pi. Currently I am trying to create a script to control an RGB led to the music that is being played through the ...
0
votes
1answer
2k views

Audio over Speaker Jack in Lakka?

I cannot seem to get Lakka to output audio to the Speaker Jack. Lakka sees two audio devices, but both look like the same thing, and neither gives me audio. Lakka (community) Version: 2.0 Lakka:~...
0
votes
1answer
341 views

omxplayer - running from command line is much longer than voice's length

On my Raspberry Pi 3 I got omxplayer which I am using to run mp3 file: omxplayer -o alsa /home/voice/7.mp3 With -i option I get this output: Input #0, mp3, from '/home/voice/7.mp3': Metadata: ...
1
vote
1answer
414 views

gmediarender configure output mono

I have configured gmediarender on the RPi 3. However I prefer only mono output. Following this guide to downmix to mono did not output mono from the gmediarender. /etc/asound.conf pcm.card0 { ...
3
votes
2answers
476 views

Is it possible to use more than one audio card on GPIO?

I want to use more than one HiFiBerry Dac+ on a single Raspberry PI. It's possbile? to connect more than one audio card?
1
vote
1answer
610 views

What is a good sound board to use for doing real time active noise reduction on a Raspberry Pi?

I'm doing a project that involves making a pair of headphones capable of active noise reduction. Specifically, I'm attempting to do impulse based noise reduction rather than blocking a constant ...
2
votes
1answer
490 views

USB audio from Pygame

I am running Raspbian Stretch. I've connected a USB sound device and selected it through the graphic interface. This sends the sound out fine from youtube in Chrome but is silent with a Python ...
0
votes
1answer
3k views

Raspberry Pi Live Streaming using Picam [Audio+Video]

I am currently using picam software to stream audio and video from Raspberry Pi using a NOIR camera and a microphone. One way audio and video is working fine. I need a two way audio connection but ...