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
56
votes
12answers
291k views

Why is my audio (sound) output not working?

I can't get the audio running. I don't hear anything and can not play anything. Is there a solution to enable audio?
43
votes
7answers
41k views

Speech processing on the Raspberry Pi

I want to do speech processing on Raspberry Pi to detect specific people (something like unique identification). I would prefer to use only the on-board processor for this, you could assume that ...
38
votes
7answers
159k views

Playing audio files with Python

I am looking for a well maintained Python library with allows me to play audio files on my Raspberry Pi using the standard audio output. So far I've tried several, but none of them seem to work. ...
36
votes
7answers
101k views

Using Pi to stream all audio output from my pc to my stereo

My problem is quite simple but I have been unable to find a satisfying solution. Basically, I want my Raspberry Pi to be connected to my stereo and then play any audio output from my computer via ...
34
votes
4answers
113k views

Setup Raspberry Pi 3 as bluetooth speaker

I am looking for a way to configure the Raspberry Pi 3 as bluetooth speaker using Raspbian Jessie. What I mean by as bluetooth speaker is use it to receive audio stream via bluetooth using A2DP and ...
31
votes
2answers
94k views

USB card as my default Audio Device

I purchased a small USB sound card. My Pi recognizes the device: $ lsusb Bus 001 Device 004: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller If I run alsamixer and set the audio to USB ...
27
votes
3answers
115k views

How to get PulseAudio running?

I would like to use my Raspberry Pi as an PulseAudio sink that can play audio via the network. For starters I want to get Pulseaudio running locally and have run into various errors. I am using the ...
24
votes
3answers
52k views

Can I get audio input through the GPIO

The Pi has a standard 3.5mm audio jack, but this cannot be used for audio input However, we've got a load of GPIO pins on various interfaces. Would it be possible to recieve analog audio into the Pi ...
24
votes
4answers
103k views

Raspberry Pi 3 audio input?

Did Raspberry Pi 3 add audio input? I'm new to RPi and interested in doing speech recognition but noticed input has been missing for previous versions. If it hasn't, what is the best way for me to go ...
23
votes
3answers
31k views

How can I record audio using a microphone?

Just came across this question while trying to connect a webcam. If the webcam encapsulated audio that is fine. But what if I want to attach a microphone in another location / locations. Question: ...
19
votes
6answers
38k views

How to get better Audio quality from audio jack output

I've read and experienced that music (mp3 etc) through the audio-jacket is poorly (popping sounds in between songs). Is this already solved or what's the best way (setting) to decrease this problem?
19
votes
3answers
23k views

Redirect audio to another AirPlay device

I'm setting up Mopidy on Raspbian so I can use the Raspberry Pi as a Spotify (and local files) jukebox. I know the analog audio output of the Raspberry Pi is not great. Is there a way to redirect all ...
18
votes
7answers
24k views

If I plug my headphones into the audio jack, how do I control the volume?

This will be useful to know before I start just in case the volume is turned to the maximum by default. Also, more importantly, will the maximum volume be high enough to cause immediate hearing ...
16
votes
3answers
8k views

If connected over HDMI will the 3.5mm audio jack socket work?

As far as I know only one video output, either the HDMI or RCA video socket, will work at a time. Now I want to know if this also applies to the audio output. Will it be transmitted over both sockets,...
15
votes
4answers
4k views

Is using a USB sound card still better than the onboard jack?

Back in the day of the Raspberry Pi 1 B+, if you didn't want to route audio through the HDMI cable it was a good idea to use a USB sound card, because audio out of the headphone jack tended to get a ...
15
votes
1answer
28k views

How to set up a PulseAudio sink?

I'm trying to set up a PulseAudio sink on my Raspberry Pi, in order to stream all system sounds from my PC there. What is the best way to do so? For example, is it possible to watch movies or is ...
15
votes
4answers
62k views

Receive FM Radio on Raspberry Pi

I want to feed the FM radio signals to raspberry pi. Having a basic understanding of electronics, I figured out that a FM receiver and an ADC is required. Now I need help on how to proceed with the ...
15
votes
2answers
8k views

Running Headless - How do I create a boot sound?

I am running RPi headless and would like it to play a sound (like when a Mac boots) so I know it is booting and how far it got. I can play music/wav files now, What is the best way to have something ...
13
votes
2answers
9k views

What are the different clock sources for the general-purpose clocks?

I'm trying to generate a clean 11.289 MHz clock signal from the general-purpose clock, GPCLK0 on GPIO4. The suggested route is to use the 19.2 MHz crystal as the source, which seems to work ...
12
votes
1answer
24k views

How can I use an external USB sound-card and set it as default?

I've got an external USB sound-card from C-Media running on my RPi3. I can play some recordings using aplay/arecord by specifying the card index and ALSA plugin. However, many other sound files does ...
12
votes
4answers
41k views

Live audio stream using FFMPEG

I try to stream live audio using ffmpeg and external USB microphone. I followed this nearly tutorial I had to adapt some steps but finally, I achieved to receive the stream my laptop using this ...
12
votes
3answers
39k views

Unable to set default input and output audio device on Raspberry jessie

I am facing a similar problem as described in this question. However I am running Jessie on Raspberry Pi and that it does not have a /etc/modprobe.d/alsa-base.conf file. So can someone tell me where ...
12
votes
2answers
21k views

How to output audio signals through GPIO?

Is there any way to output audio signals through GPIO and is there any disadvantage with this way?
12
votes
6answers
16k views

PulseAudio sink stuttering

I have installed raspbian on my Pi and configured a PulseAudio sink with the intention to stream all audio from my desktop to a Pi, driving the loudspeakers. I followed this nice description: http://...
12
votes
2answers
3k views

How to send audio to BOTH headphone jack and HDMI simultaneously?

I am needing to send audio through both HDMI and the 3.5 mm headphone jack simultaneously. I have not been able to find anything on this. Is this even possible?
12
votes
1answer
16k views

Sound recording using python

I'm trying to record some sound with RPI using python and pyaudio library and facing a few interesting issues - junky console output when attempting to use pyaudio and lots of noise mixing into the ...
11
votes
2answers
5k views

How to play audio without being root (via sudo)?

In order to play audio (espeak or aplay for example) I have to be root (via sudo). How can I do those as just a regular user? Is there a group I must be a member of or do I have to change some ...
11
votes
6answers
49k views

How to run spotify on Raspberry Pi

I have tried to install spotimc in XBian but it did'nt work. How can I play spotify in XBMC? /Cheers
11
votes
2answers
11k views

Pi Zero Video out header

I'm still waiting to sort getting a Pi Zero, but a thought has just occured to me. The Pi Zero has 4 pins which are AFAIK something to do with video: So I have two questions: What is the pinout for ...
10
votes
4answers
26k views

Errors with espeak

I am getting an error using espeak. Audio comes out the head phone jack, but all of this stuff get written to the command line. I installed espeak and alsa-utils. Any idea how to fix these errors? [...
10
votes
2answers
5k views

Audio over HDMI - hello_audio.bin works but not aplay

I'm having problems getting audio over HDMI working correctly (running ArchARM). I have in my /boot/config.txt: hdmi_drive=2 I compiled hello_audio.bin and ran it with 0 and 1 as args, both work (...
10
votes
5answers
12k views

3.5 mm jack starts to “hiss” after sound is played

I'm having the following issues with my amp on the Raspberry Pi 2, Model B. Boot up the Pi, everything sounds great. Play a sound byte through the Pi (using ALSA) Speakers hiss regardless of PCM ...
10
votes
3answers
7k views

USB Microphone Raspberry Pi

I am using Raspberry Pi 3. What I am trying to do is test my USB microphone. I first type in lsusb to see if the raspberry pi detects my device. It does, and the result is this: BUS 001 Device oo8: ...
10
votes
1answer
5k views

Outputting audio to multiple sound devices simultaniously

I'd like my RasPi to send audio to my on board audio out port, and also to my Digital out card (an I2S Hifiberry Digi). This ought to be possible with ALSA. I have the drivers loaded and can send ...
10
votes
1answer
5k views

A2DP stereo audio over bluetooth

Using the instructions in this answer I was able to get Bluetooth working with a small Asus branded USB receiver. I was able to see other Bluetooth devices in the area, but whenever I put my Motorola ...
9
votes
2answers
22k views

Raspberry Pi and realtime audio effects / digital signal processing?

I'm trying to understand if it would be possible (and, in case, what is the best approach) to build an "effect box" which could take an analog signal (from a guitar or a microphone), change it in ...
8
votes
3answers
11k views

Enabling audible terminal bell/beep on wheezy

I am trying to enable an audible terminal bell/beep through the 1/8" mini-rca audio out (headphone jack) on debian wheezy with the rapsberry pi model b. Normal audio works as expected, when playing a ...
8
votes
1answer
50k views

Best way to setup USB mic as system default on Raspbian Jessie [duplicate]

I am trying to setup Jasper on my RPi 2 B by following these instructions http://jasperproject.github.io/documentation/installation/#configure-raspbian and just figured out that there's no /etc/...
8
votes
1answer
2k views

Is Raspberry PI 2 B suitable for a real-time audio effects application?

I am about to start working on a project which involves real-time audio processing for an audio effects application. The application is supposed to acquire and process audio from 8 individual audio ...
8
votes
2answers
6k views

Is it possible to record and stream audio from a raspberry pi to a PC?

I'm trying to come up with a project and I want to know how feasible the following is: I want to be able to stream audio from a raspberry pi to a PC. This includes: Connecting a mic to the pi ...
8
votes
1answer
1k views

Kodi: Seperate latency settings for audio output HDMI+analogue

I have installed the latest version of OSMC on my Raspberry Pi B+. In Kodi I output audio through both HDMI and the analog jack. There is an option "HDMI+analogue" in the settings menu for this. ...
7
votes
3answers
11k views

How do I add analog audio out to the Raspberry Pi Zero?

The currently announced new member of the Raspberry Pi family - the Raspberry Pi Zero provides only digital audio out via its HDMI connector. What are the options to add analog audio out to this model?...
7
votes
4answers
6k views

How can I get Java Sound to work?

I have a Java-based MP3 player based on the JLayer / BasicPlayer framework which I'd like to get running on the Pi. I have installed the OpenJDK on the most current Raspbian. The BasicPlayer opens the ...
7
votes
1answer
19k views

How to make Raspberry use HDMI audio as default system output?

I've just installed Raspberry Pi and everything works great, except I can't get the default system sound to use HDMI. If I run something like omxplayer -o hdmi <filename> then the sound works, ...
7
votes
2answers
10k views

Streaming Audio and Video from a remote Raspberry Pi to my computer

I've been working a couple of days on this issue. I need to set a stream up that streams audio and video (doesn't matter if I need to open separate connections for it, as long as it works) from the ...
7
votes
2answers
7k views

Audio goes in and out on Retropie

So as my title suggests I am having an issue with my Retropie installation. I am currently using latest greatest BerryBoot, OpenElec, and Retropie on my Rasp Pi 2 updated as of yesterday evening. The ...
7
votes
1answer
17k views

How do capture audio using Python?

More particularly: How can I use python with ALSA to capture audio input? I'm thinking about doing an oled-based spectrum analyzer for Pi-based audioplayer. One part of the solution is to read the ...
7
votes
1answer
19k views

Use raspberry pi 3.5mm jack as line in

Is is possible to use the 3.5 jack on the Raspberry Pi as a line-in? I need to record audio through the Pi and I didn't find anything conclusive about its audio capabilities. Would like to make sure ...
6
votes
1answer
25k views

Is there some trick to getting aplay audio output working?

I have recorded a .wav file using the command: arecord test.wav But when I try to play it, there is no sound output. It's like the raspberry pi is stuck on mute. I initially thought that my ...
6
votes
4answers
12k views

KODI and analog audio

Has anyone been able to get the analog audio to work in KODI on the Pi2? It works great through HDMI but I want to install this in my wife’s minivan and it only has component inputs, no HDMI. I am ...