Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
6
votes
1answer
27k 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
13k 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 ...
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 ...
6
votes
1answer
15k views

Change Volume via single command?

I need to change my volume on my USB sound card (which is the default card) via the command line. I know alsamixer will do that but I need it to be a one line command so I can use it in a python ...
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.
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. ...
6
votes
1answer
4k views

Text To Speech Select Output Device

I saw many tts engines, like festival, espeak, etc.. I wanted to know if any of these could select the output device, like an USB sound device. If it's possible, what the command line to make it ...
6
votes
1answer
2k views

Installing pymedia

I've got a project in mind and I would like to use the spectrum analyzer of pymedia to get frequency data from audio while it's playing. Has anyone managed to install it? I've tried and failed. I've ...
6
votes
2answers
3k views

Playing sound through /dev/dsp?

I have a USB soundcard attached to my RPi. I used the command sudo modprobe snd_pcm_oss which created /dev/dsp and /dev/dsp1. /dsp corresponds to the internal soundcard whereas /dsp1 corresponds to ...
6
votes
1answer
589 views

My PI crashes and freezes when playing music from Spotify

I've programmed a small spotify application on my RPi that freezes quite often. I'm wondering if anyone here has any experience using pyspotify and managed to create a stable application using this ...
5
votes
4answers
11k views

No sound output in VLC

I installed VLC, but I can't hear anything through the analog output (jack output) when I play a MP3 file or a video. I'm using Debian Wheezy. I already did some steps to test alsa sound, like this: ...
5
votes
2answers
14k views

omxplayer doesn't play audio

I can play audio to analog jack output with mplayer and aplay, but i cannot get it working with omxplayer. # setup audio output modprobe snd_bcm2835 amixer cset numid=3 1 # This is working mplayer -...
5
votes
3answers
10k views

White noise through audio jack

I have been using Sonic Pi recently and have been annoyed by a persistent stream of white noise. This has happened on both Raspbian and Ubuntu MATE 16.04 for Raspberry Pi, using SENNHEISER MX356s. Is ...
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: $ ...
5
votes
2answers
2k views

Configuring audio to produce balanced mono output

Is there any way to configure the Pi3's audio jack to automatically produce balanced mono output? i.e. act as a "balanced mono jack" as described here, where the regular sound wave is on one channel, ...
5
votes
1answer
797 views

Use different sound card for microphone vs audio output

I recently bought a USB sound card to improve the audio output on my pi while continuing to use my USB microphone for audio input. The problem is that I do not know how to configure the pi to use the ...
5
votes
1answer
581 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 ...
5
votes
1answer
3k views

REALLY force Raspberry Pi to send audio via HDMI

I wanted to use my Raspberry Pi with a very old video projector which was not capable of processing audio signals. So I bought an HDMI-audio-extractor (Ligawo 6518725 HDMI Extractor), as the PWM ...
5
votes
3answers
24k views

Using Raspberry Pi as VoIP phone with USB sound device

I am trying to use a Raspberry Pi as a VoIP phone. Sadly the USB bug causes a very bad audio quality if I use an external usb soundcard. I tried to set the usb to 1.1 only and to reduce the sample ...
5
votes
3answers
6k views

Stream linux sound output to Raspberry Pi

Okay, I know there are tons of Raspberry Pi audio setups out there and I've probably read thru most of them by now. My understanding is that the common use case is using the Raspberry Pi to play off a ...
5
votes
1answer
8k views

Sync Audio & Video From Pi Camera & USB Microphone

I am trying to stream low-quality audio & video from my Raspberry Pi to another device. I have a Raspberry Pi camera & a USB microphone. Both devices work separately but i cannot seem to get ...
5
votes
2answers
2k views

Play 2 sounds simultaneous HDMI + analog

Is it possible to play 2 sounds simultaneously? For example: one via HDMI (audio from a video) and another one (custom audio, wav, or whatever) via analog output at the same time?
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 ...
5
votes
2answers
4k views

ALSA volume ignored when beginning playback

I ran into an interesting problem today. I noticed I don't have a "Master" channel in amixer. I only have PCM. And changing the volume on PCM is really finicky. It seems only 85%+ is actually ...
5
votes
2answers
6k views

Using raspberry pi as function generator

I'm trying to figure out a way to use the raspberry pi to generate AC waveforms of any arbitrary shape. Ideally, using a programable IC where the wave forms are dictated entirely by the higher level ...
5
votes
2answers
2k views

Raspberry Pi USB microphone 1 Khz background noise interference

Using this microphone I have some severe noise in the background. The more peripherals I plug in (camera, gertboard, wi-fi adapter) the worse the noise becomes. We've tried several different power ...
5
votes
1answer
8k views

Let Raspbmc play bluetooth audio

I'm looking to have my Raspbmc setup play audio from my phone using audio over Bluetooth. In the same way a Bluetooth enabled car audio system would. I have not been able to find anything about this ...
5
votes
1answer
1k views

How can I use the RPi GPIO to make a headphone sensing audio jack?

I am working on a project that involves a raspberry pi acting as an internet radio client which the public can access by plugging their own headphones into a 3.5mm (1/8”) jack. They will have access ...
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 ...
5
votes
1answer
658 views

How can I send audio to BOTH headphone jack and HDMI? [duplicate]

I know how to use amixer to send output to either the headphone jack or the HDMI port, but I want to send output to BOTH devices. How can I accomplish this? I'm using official Wheezy Raspbian on a ...
5
votes
0answers
10k views

Setting up a bluetooth headset [closed]

I'm having some trouble getting a bluetooth headset working with a raspberry pi as the default audio in/out device. I tried connecting to the bluetooth device by doing the following: pi@raspberrypi ~...
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 ...
4
votes
1answer
1k views

Raspberry Pi as Office Jukebox?

I'd like to set up an office jukebox using a Pi. I've found some decent instructions for a simple implementation, which look good as far as all the audio stuff goes. My problem is that this requires ...
4
votes
2answers
17k views

How to listen to internet audio streams

I connected my RPi onto my stereo so I can listen to my music. However, I want to listen to a few internet-radio-streams. The streams are available in ASX, MP3 and some of them through SHOUTCAST. I'...
4
votes
1answer
2k views

Difference between “hwplug” and “hw”

This is aplay -l output from Raspberry Pi: **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 8/8 Subdevice #0: subdevice #...
4
votes
4answers
10k views

noise on the analog jack shadowing the RPi activity

I plugged in my RPi B+ (with latest Raspbian) to a speaker (August SE30, using the analog jack). I get the expected sound when using mpg123 but I also get, when not playing, a continous stream of ...
4
votes
2answers
3k views

Record raw PCM from microphone

I have a small project I'm working on that will use real-time audio processing. Until now I've been able to record (via the arecord command) straight to a .wav, but like I said I need real-time ...
4
votes
2answers
843 views

Portable HDMI audio splitting?

I am using the Raspberry Pi for a portable project which uses headphones. The audio quality from the HDMI output is much better than the built-in audio jack. From what I have seen, this is due to the ...
4
votes
2answers
9k views

pulseaudio not autostarting on pi 3.

Pi 3 running on a unmodified updated raspbian jessie. Problem: The pulseaudio server does not run OR not properly run at startup. With defaults, where nothing was modified: ps aux | grep pulse pi ...
4
votes
1answer
2k views

HDMI sound: omxplayer works but not aplay

I want to use text-to-speech programs like festival and espeak, but they don't produce any sound. I'm able to play sounds with omxplayer, but aplay, festival, and espeak are all muted. I've tried ...
4
votes
1answer
2k views

ADC to capture speech (8khz, 16bit)

I am looking to capture speech and save it as a wav (Wave PCM) in RPi. Ideally the speech should be captured in 8khz with 16bit resolution and saved as a raw file or wav file. I also have a need to ...
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?
4
votes
1answer
2k views

Create a connected speaker with a Pi without a hard drive?

I would like to build some "connected speakers" with a Raspberry Pi and an amplifier attached to standard hi-fi speakers (the ones I have have 4 ohms of impedance, about 50W, but I don't need the full ...
4
votes
1answer
2k views

C/C++ sound API for games

I have a game that, up until now, uses SDL_mixer for playing MP3 sound effects. Works on Linux, Windows, OSX. At the moment doesn't work on 64 bit Linux, so I was thinking of switching to FMOD. ...
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 ...
4
votes
2answers
5k views

No Audio Output on 3.5mm Jack

I have a Raspberry Pi B running Arch ARM. I have setup NFS with my media server. I'm trying to stream music from it and play it with mdp through ncmpcpp (with alsamixer). I have tried turning up the ...
4
votes
1answer
13k views

How to install USB Sounds Adapter?

I've bought a CONCEPTRONIC USB SOUND ADAPTER that I want to connect to my stereo. I plugged this USB adapter into the Raspberry Pi. aplay -l showing the following output: **** List of PLAYBACK ...
4
votes
1answer
235 views

Cannot set system volume

I installed my Pi 3B into a Pimoroni Picade a few months ago, and installed RetroPie from source (as a fresh install). After running the Pimoroni-supplied setup script, RetroPie, EmulationStation etc ...
4
votes
1answer
5k views

Setup Raspberry Pi as Bluetooth transmitter

I'd like to use a Raspberry Pi to transmit (send) audio from the headphone jack (using it as an input) to multiple Bluetooth devices at once. The purpose (I have a tutorial for receiving already) is ...
4
votes
2answers
582 views

Detecting 3.5mm insertion or removal for use in a script

Hello fellow Stackers, Is there a way to detect when a 3.5mm jack is placed into\ removed from the audio out that is on board for use in a script? I also have one of these: https://www.element14....