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
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, ...
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 ...
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 ...
3
votes
2answers
9k views

Microphone for a project

I'm just wondering whether or not this Electret Microphone Amplifier - MAX4466 will be sufficient enough for the project that I'm planning? My project I plan to connect the microphone up and accept ...
3
votes
2answers
6k views

Sound output of the Raspberry Pi

The Raspberry Pi is notorious for outputting slightly dodgy sound. This only affects the analogue sound output, not sound carried over HDMI for example. So what would cause the background noise for ...
3
votes
2answers
6k views

RPi Streaming Audio Server

I'm trying to build a system similar to the following diagram: My plan is to configure my Raspberry Pi, depicted as the Mixxx Block in the diagram, to stream audio from a file or a microphone ...
2
votes
0answers
398 views

The distorted audio issue if I set low volume

I bought Raspberry Pi 2 model B and tried to play the audio after rpi-update. amixer set PCM 100%; aplay sample.wav It is good quality. However, the audio is gradually distorted when I turn down the ...
2
votes
5answers
8k views

Mopidy and sound quality

My pi is plugged to my tv and I have installed mopidy. Everything is ok, the sound is played through my tv, except that the sound quality is terrible. I mean, it is not listenable at all. When I ...
1
vote
1answer
11k views

How can I stream my audio to my Sonos speakers?

I would like to listen to good quality audio while watching a video, but my Sonos does not have a line in. My idea is to stream it from the Raspberry Pi and listen to it on the Sonos by tuning in to ...
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 ...
7
votes
1answer
20k 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 ...
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 ...
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 ...
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
1answer
3k views

Can a Raspberry Pi be used to make voice changer?

There are voice modulators for over $150, and all they do is alter the pitch and put a static burst when there is a silence of over 0.5 seconds. Surely this can be done on a Raspberry Pi with a USB ...
3
votes
1answer
4k views

Sound recording program using Nano

I want to make a sound recording program such as this on my RPI machine with several modifications. The problem is that I get the fatal error message "alsa/asoundlib.h : No such file or directory". I ...
2
votes
2answers
6k views

Force sound over 3.5mm jack and video over HDMI

I am building an application where the sound needs to be over the 3.5mm jack and video over HDMI. However, sometimes it does send the sound over HDMI and 3.5mm jack. And sometimes it just uses HDMI ...
2
votes
1answer
4k views

How to enable sound on HDMI?

I have looked at all kinds of tutorials, I modified the /boot/config.txt by adding hdmi_drive=2 and sound just does not work or if it does it always is over analog out. I just want sound over HDMI ...
2
votes
1answer
13k views

How to configure and select USB Microphone

I have a USB sound card that has an audio out and a microphone in. That sound card works fine - a small microphone records fine and a small speaker plays sound back fine. However, I now have an ...
2
votes
3answers
7k views

No audio output via USB sound card

I bought an external USB sound card for my Raspberry Pi because the sound quality of the built-in 3.5mm audio jack is not that good and I experienced a lot of noise. The retailer of the sound card is ...
2
votes
1answer
4k views

Streaming Audio to Multiple Wireless Speakers

I would like to be able to stream audio from a raspberry pi to multiple wireless speakers in the same room (synchronized). I would also like to be able to control the raspberry pi with a computer or ...
2
votes
2answers
115 views

3.5 mm jack speakers not being recognized

Over the past several days, I have tried and failed to make my raspberry pi recognize the speakers that I connected to it through the 3.5mm jack. The USB microphone that I plugged in works perfectly ...
1
vote
1answer
2k views

using php_exec command to play audio on the Pi - no audio group

I'm trying to have a php script play an audio file when run shell_exec('aplay /home/andrew/www/audio/meeting-bell/medium-bell.wav') It works when I run it from the command line, but not when running ...
1
vote
1answer
2k views

How to use USB mic (in) and 3.5 mm audio jack (out)?

whenever I am making changes my usb becomes default instead of 3.5 mm jack for output. Please help me .
1
vote
1answer
3k views

Multiple microphones

Some of you know a method to connect 4 microphones to a RPi and handle them seperate? I want to calculate out when a soundwave hits the first microphone, the second, third and fourth (under water). ...
1
vote
1answer
313 views

Using PyAudio breaks GPIO18 PWM mode ? (driving LED strip with rpi_ws281x and listening MIC with PyAudio) [RPi Model B 512MB ARMv6]

I'm trying to drive a RGB LED strip with RPI's GPIO18 in python with rpi_ws281x library while listening to USB Microphone connected to the RPI to finally send colors depending on audio frequencies ...
0
votes
1answer
1k views

Using a switch, not push button, to play mp3s

I'm trying to setup a switch on a breakout board which, upon flicking the switch, will allow me to play a short mp3, then loop a second mp3 until I switch it off. When I do so, I want it to play a ...
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 (...
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 -...
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 ...
3
votes
1answer
1k views

How can I get audio (ultrasonic Nearby API) working with Android Things?

I'm trying out Android Things on my Raspberry Pi 3, and besides a little bit of a learning curve around the adb utility, things are going well. However, it doesn't seem like audio is working at all. ...
2
votes
1answer
4k views

Suitable microphone for IO pins

I am using the IO pins of the Pi to drive a speaker and a microphone. The speaker is easy to find, just a cheap one from Cool Components however I am finding it harder to find a suitable microphone. ...
2
votes
2answers
103 views

Raspberry pi 3B+ and Beats Pill+ bluetooth speaker

I have Raspberry pi 3B+ and bluetooth speaker Beats Pill+. I am trying to forward all audio to this speaker and use it as default. Bluetooth connection between rpi and speaker is not a problem, using ...
2
votes
2answers
5k views

Set up C-media USB soundcard for microphone input on Raspberry Pi 2 with Raspbian Jessie

I would like to use Amazon Alexa or Steven Hicksons Voicecommander (uses Google) on my Pi to automate some tasks by voice command, but I am having trouble getting the microphone to work in the first ...
2
votes
1answer
301 views

What is the configuration of the 4-pole A/V jack on the Pi 4?

What is the configuration of the combined analogue audio and composite video 3.5mm jack on a Raspberry Pi 4?
2
votes
1answer
903 views

Constant Stream of Distortion/Noise from 3.5mm Jack

I've been trying to set up audio playback on my Pi model B (running Raspbian, fully updated at the time of this posting), but I'm having issues with overpowering distortion. In the broader scheme I'm ...
1
vote
1answer
2k views

Is it possible to have multiple audio outputs going to different speakers at the same time?

I have 4 different displays set up in a booth and I want to be able to have someone press a button and hear an audio playback for that particular display. I am trying to determine if the RPi 2 has the ...
1
vote
1answer
321 views

6 ohm stereo enclosed speakers

I am making a Raspberry Pi project that I need to add sound to. I salvaged a pair of 6 Ω stereo enclosed speakers from a Smart TV. Is there any way to hook these up to a RasPi? I am assuming I ...
1
vote
0answers
4k views

How to resolve Invalid sample rate -9997

I am trying to install Jasper on my Raspberry Pi model B running Jessie distro. I have followed the installation guide. However, when I am now trying to run the the program I am getting the following ...
1
vote
1answer
2k views

Configuring jack into a microphone input

Is there any way that I can configure the jack on a Raspberry 2 into a microphone input ? The goal is to gather the sound data from a microphone that I would plug into the jack and save it to a file.
1
vote
1answer
550 views

Using the headphone button with the pi

I would like to use the button on my headphones (the one that play/pauses on a phone) as an input on my pi. I understand that this may need an expansion/audio board. Is it possible?
1
vote
1answer
1k views

How do I enable USB audio for GUI applications on Raspbian? (ALSA command line is working)

I'll say it again to be clear - ALSA on the command line works fine (after I delete/modify .asoundrc after it's auto-broken by PIXEL). The most seemingly contemporary answer I've found on modern ...
1
vote
1answer
2k views

Play MIDI from Raspi using external controller

I want to output MIDI fonts from the Raspberry Pi, hopefully able to control it with external sensors. I have timidity installed but get no sound playing the file python_games/tetrisc.mid . Is there ...
1
vote
1answer
4k views

Executing a command via PHP

I currently have an Apache web server running on my Pi that has this as the index.php file: <?php if (isset($_GET['play'])) { exec('sudo omxplayer yes.m4a'); } ?> However, my ...
1
vote
2answers
3k views

Raspberry Pi's analog audio output in watts

Can some one tell me what is Raspberry Pis analog audio output capability? I would like to know how munch power 3.5 mm jack of raspberry pi can deliver in terms of watts. This will be helpful to ...
0
votes
0answers
1k views

Raspberry Pi zero W (headless) bluetooth audio setup problem

I want to run a Python3 script with a text to speach engine called pyttsx3 to read some text via bluetooth.Unfortunally it does´t work. So what I have done is this: First I have setted up a new ...
0
votes
2answers
747 views

MPD hangs on song change

On my RPi 3, whenever I try to change songs with MPD, it hangs such that it's only killable with -9. I'm using the default sound setup and mpd.conf, and the built in 3.5mm jack. I've upgraded to the ...
0
votes
1answer
450 views

Usb sound card Microphone with 3.5mm Jack speaker?

I am running Google Assistant on my Pi (and an Imp) to open my door over voice control. My problem is that I am using a 3.5mm speaker, in connection with a mic that is connected via an external ...
0
votes
1answer
617 views

How do I get my I2S microphone on a Pi zero W working again after running rpi-update?

I have an I2S breakout microphone from adafruit which I got working last week. However due to problems with my pi camera I ran rpi-update, and following this my microphone is not working. I ...
0
votes
2answers
1k views

Jessie USB mic in and on-board 3.5mm jack out

I've had problems with setting Raspbian Jessie as the default USB mic input and default on-board 3.5 mm jack out. I have a USB microphone and would like to use the Raspberry Pi jack audio out. I've ...