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
58
votes
12answers
300k 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?
12
votes
3answers
40k 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 ...
37
votes
7answers
102k 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 ...
36
votes
4answers
119k 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 ...
24
votes
3answers
53k 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 ...
31
votes
2answers
97k 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 ...
24
votes
4answers
108k 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 ...
14
votes
1answer
28k 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 ...
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?
43
votes
7answers
42k 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 ...
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/...
12
votes
2answers
22k 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?
38
votes
7answers
164k 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. ...
28
votes
3answers
120k 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 ...
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: ...
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 ...
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?
6
votes
3answers
10k views

How fast is GPIO+DMA? Multi I2S input

I want to connect multiple I2S ADCs to RaspberryPi and record multi-channel audio. I calculated that it requires copying GPIO input port to RAM at 3072kHz (or every 0.33µs). I want to do it using DMA. ...
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 ...
4
votes
6answers
8k views

my asoundrc is modified every reboot

I have a raspberry pi 3 with usb dac for plug my microphone and I have a usb speacker too. I installed on my pi, mopidy and other litle project. I modified my ~/.asoundsrc for pcm.!default { type ...
6
votes
2answers
15k views

How do I fix cracking sounds?

I have installed RetroPie in my B+, but when I play a game, the sound cracks. I have connect my speakers using 3,5 mm jack.
16
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 ...
20
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 ...
13
votes
4answers
42k 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 ...
6
votes
1answer
42k views

Real time audio input/output in Python with PyAudio

I am trying to get my Raspberry Pi to read some audio input through a basic USB souncard and play it back in real time for 10 seconds, and then print the output with Matplotlib after it's finished. I ...
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 ...
5
votes
2answers
10k views

USB microphone recording input and audio output

I've got a USB sound card which I'm trying to record from using the standard pyaudio tutorial for recording however I get the following (below). Frustratingly this script actually works on my mac and ...
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?...
6
votes
1answer
3k views

How to use both USB Mic (in) and on-board sound (out)

I'm trying to set up my RPi with on-board sound out and a USB mic in, but everything I've found only deals with both audio i/o on the same (external) sound card. What's happening in my situation is ...
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: ...
5
votes
1answer
580 views

HiFiBerry Board compatibility

I want to create a music server/player with the Pi as the heart. Will the HiFiBerry Amp+ work in conjunction with their DAC board? The reason for this thought is I'd like the music bod to operate as ...
4
votes
1answer
6k views

What are the specifications for the audio output?

I'm having trouble locating the specifications for the audio output. Where is this information located and what are the electrical specifications for the output?
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 ...
3
votes
2answers
3k views

Static over composite audio

I'm getting static over the pi's composite audio (currently through an amp, but happens with other amps, a computer, and even headphones). I thought the 3.5mm jack cable was the issue (3 pole vs 4), ...
2
votes
1answer
5k views

Setup output and input audio on different cards

I was trying to prepare my RPi for jasper and plugged the USB mic and the speakers in the 3.5 jack. Trying to configure it I found out that I could only chose that the whole audio IO is going through ...
1
vote
2answers
2k views

Reliable way to play sound (ogg, mp3) in Python, on Pi Zero W

I have been trying to find a reliable method to play sound on my Pi Zero W, in Python. By default, Zero does not have audio output, but I have set up an I2S amp and speaker, following this guide: http:...
1
vote
1answer
455 views

I²S Pins on Raspberry Pi 3

I looked at the schematics of the Raspberry Pi 3 here but couldn't figure out which Pins are what, to use the I²S Interface. Which Pin-Numbers are for: Bit clock line? Word clock line? Multiplexed ...
1
vote
1answer
795 views

How to access SPI on Raspberry Pi B+

I tried searching here and other places. What is the best way to access the SPI and get the fastest speed out of it. My project involves interfacing the Pi with an ADC that is rated for 5Msps (http://...
0
votes
2answers
3k views

Linux ALSA one sound card for input one sound card for output

I have a raspberry pi 3 model B+ with raspbian jessy lite from July. cat /proc/asound/version Advanced Linux Sound Architecture Driver Version k4.4.50-v7+. I have a USB soundcard that has two 3.5 ...
16
votes
4answers
63k 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 ...
5
votes
2answers
2k views

Voice recognition

I was thinking about creating a kind of Jarvis computer (Iron man). Only then a (little) bit more minimalistic. What I want to built is more of a question/answer type of application (something like ...
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 ...
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 ...
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 ...
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 ...
5
votes
2answers
12k views

USB Sound card found, but no output

I tried to set up a USB-Soundcard (Delock) for my RPI. Now made the necessary changes in the alsa-config file to let the USB soundcard be loaded first. The soundcard is found, as you can see here: $ ...
4
votes
1answer
3k views

Using Pi's built-in audio as general-purpose DAC?

Any common Audio output on any electronic device is in essence a two-channel Digital-to-Analog converter, where the voltage sent to each of the channels (Left, Right) powers the electromagnet that ...
1
vote
1answer
7k views

Best FFMPEG configuration for recording Video+Audio with RaspberryPi and USB WebCam

I've spent so much time trying to figure out how this FFMPEG and their libraries work :( I have a RaspberryPi 2B and a Logitech USB Webcam. Here is the input from FFMPEG list from my /dev/video0: ...
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 ...
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 ...