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
3
votes
2answers
1k views

TV remote no longer working

I'm running openelec+xbmc connected to my TV via HDMI cable, and my TV remote has stopped being able to control XBMC. I'm not sure if it is the settings in xbmc/openelec that are incorrect, if there ...
3
votes
1answer
4k views

Access audio device from c code

Is there a way i can send PCM (.wav) data to an audio device on raspberry pi? I am looking for something like FILE* file_out = fopen("/dev/snd/pcmC0D0p", "wb"); so i can easily open the device in ...
3
votes
2answers
5k views

python audio bindings

I'm trying to get python audio input on my raspberry pi. So far I've installed the following: My inquiry looks similar to this one, but I'm not using an audio card, I just have a webcam plugged ...
3
votes
1answer
43 views

Terrible sound quality when recording over bluetooth

I have paired a Jabra Talk 15 headset with a Raspberry Pi 3B (and PulseAudio). I can play sound through the headset well. When I record using arecord though, I get almost completely garbled audio. ...
3
votes
1answer
304 views

How do I get send audio from Raspbian over a network?

I have a classroom set of RPi (4, running Raspbian Buster) that students will access via VNC through their Chromebooks. Eventually the school will allow that access from off campus as well. The ...
3
votes
2answers
2k views

How to select audio output in Raspberry 4

I have a youtube video playing in Chromium and I can hear the sound that comes from HDMI, to the built-in monitor speakers. How can I select where the audio goes? I'd like to hear the sound in the ...
3
votes
2answers
3k views

Adding microphone support to the RPi 3B

I own a Raspberry Pi 3B and want to extend the sound capabilities. So what I need is sound output for speakers and headphones via a 3.5mm phone jack. In addition to that, I want to add an internal mic ...
3
votes
1answer
901 views

Audio from audio source to pipe (stdin/stdout)

I am trying to get an audio stream from Bluetooth to the stdin of fm_transmitter on my Raspberry Pi 3 / up-to-date Raspbian Stretch. So far, I got FM-Transmitter running with an ICE-Cast-Stream ...
3
votes
1answer
2k views

Set custom mouse button actions

How would I set custom mouse button actions on my Raspberry Pi? Here's the idea: I have a Pi with speakers with a mouse dongle connected. I want to dismantle a wireless mouse and use the already ...
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. ...
3
votes
1answer
1k views

jackd with raspberry pi 3 jackd server stops

I'm using jackd2 on my raspi3 with a USB sound and recording device like this one. Build is Jessie https://www.amazon.co.uk/Adapter-External-Headphone-Speaker-Microphone/dp/B016CU2PEU/ref=sr_1_2?ie=...
3
votes
1answer
596 views

playing a wave file with the pi zero

I have read several threads, but still no output. First I set: sudo raspi-gpio set 18 a5 The gpio settings did change per: gpio readall aplay test.wav produced nothing through the PWM0 (now GPIO18) I ...
3
votes
1answer
40 views

Internal soundcard sometimes card 0 and sometimes card 2 with 2 usb mics

I can't get a consistent setting for my internal soundcard. BCM2835 is sometimes card 2 and then I'll reboot and it'll be card 0. Driving me nuts, hard to set the default when it's jumping around. Is ...
3
votes
1answer
3k views

Raspberry Pi 3 Sound Not Working With HDMI

The sound simply doesn't work, I'm using HDMI on a large flat-screen TV. Earlier today I had it working with HDMI on a smaller TV that is not a flat-screen. I have heard that it may have something to ...
3
votes
1answer
410 views

No sound out of analog jack

I'm new to the Raspberry Pi. I hooked up some speakers to the audio jack and was able to play a few wave files. Then I did some programming to test out a few things (downloaded script from some ...
3
votes
1answer
515 views

Stream rasberry pi audio to my windows pc

On my Raspberry Pi Zero I'm using an HDMI to VGA adapter. So I have no audio output for my RPIZ. I'm wondering how hard would it be to stream audio from my RPIZ to my windows 7 PC.
3
votes
1answer
2k views

How to create a virtual microphone that reads from a file?

TL;DR: I want to create a virtual mic on my pi to stream wav data to it from a named pipe, so apps that look for input from a mic instead of a file can receive it. Background I'm running ...
3
votes
1answer
598 views

Loud click when playing sound files

With Windows IOT before and after playing a sound file on the Raspberry (both 2 and 3) a loud click can be heard thru the speakers; is there a way to make it so no click is heard? Here is the code I ...
3
votes
1answer
595 views

Sound Quality: Does the choice of operating system or software affect quality of sound?

Has anyone done a sound quality comparison between Audiophile and Media Centre operating systems? On a simple Pi-for-stereo that uses only the onboard sound card, will I get better sound if I use ...
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 ...
3
votes
1answer
924 views

Why is there no sound while playing audio from a SSH session?

I've been banging my head for several dozens of minutes against the wall until I realized my Pi (B+) did play audio indeed. The only thing is it seems to only play from a TTY (i.e. an interactive text ...
3
votes
1answer
306 views

Can I use the HiFiBerry DAC+ to create constant output voltages?

I need two constant differential voltage signals in the range of [-10V,10V] as input for two galvanometer-mirrors and so far I have seen several possibilities (e.g. with SPI-connected DAC-breakout ...
3
votes
2answers
5k views

Use a USB MIDI controller as an input

I want to build a kind of a synthesizer, with a set of potentiometers connected to Pi via ADC, a set of momentary buttons that would toggle the modes and so on. I could create a row of buttons as ...
3
votes
1answer
3k views

Audio and microphone configuration of usb sound card on r-pi

To configure audio of soundcard I did the following settings: sudo nano /etc/modprobe.d/alsa-base.conf I commented options snd-usb-audio index=-2 and added options snd_bcm2835 index=1 so speaker ...
3
votes
1answer
2k views

Play video in full screen with USB Audio

I am using Rasbian... Is there any way I can play video in full screen with audio on my USB headphones? I can play fullscreen using omxplayer, but audio cannot be redirected to USB as omxplayer uses ...
3
votes
1answer
8k views

sox & alsa sound recording issue

I've installed sox and now this whole thing is freaking out :) I'm trying to get sox to record a flac file for me. aplay and arecord work ok: pi@raspberrypi /tmp $ arecord -d 3 test1.wav Recording ...
3
votes
0answers
1k views

Raspberry Pi 4 - Dual Audio with Dual HDMI

I have a Raspberry Pi 4. The thing is, I want to play 2 videos at the same time, since the RPi-4 has 2 HDMI outputs. BUT I also want to have split audio. The audio from video 1 should go out over the ...
3
votes
0answers
153 views

raspi MIDI in audio out

I have a MIDI controller keyboard, that I want to take with me to a vacation. For some reason I cannot bring a tablet/laptop with me. I still have a Raspberry Pi 2B lying around so I thought it might ...
3
votes
0answers
1k views

Why won't pygame play sound over Bluetooth when everything else works?

I having trouble getting a program I've written using the pygame sound mixer to play sound to work over Bluetooth. The program is able to work correctly over HDMI audio. The Raspberry Pi has no ...
3
votes
0answers
965 views

Pi doesn't detect microphone but detects usb device

I had my Raspberry Pi configured to work with a USB microphone (C-Media microphone USB). I had made the following changes For /lib/modprobe.d/aliases I update the following lines options snd-usb-...
3
votes
0answers
60 views

Is this RPi DAC compatible to RPi 3?

I bought and used this DAC for a long time on my RPi 1 B+: https://www.audiophonics.fr/fr/dac-diy/audiophonics-dac-sabre-es9023-v22-i2s-vers-analogique-24bit192khz-p-8396.html Recently I bought a ...
3
votes
1answer
6k views

Having trouble sending audio data over TCP using Sockets to raspberry pi

I am trying to do something like a walkie talkie. 1 device is my laptop and the other being the raspberry pi. What I have working. I am able to record the microphone, transmit it over a socket and ...
3
votes
2answers
5k views

Bluetooth connection attempt gives “Failed to connect: org.bluez.Error.Failed”

I'm a recent RPi user. Pi version - Pi 3, Model B Bluetooth speakers - Philiphs BT64R I've tested the speakers with other devices and the bluetooth pairing works fine. I've also tested my Pi with ...
3
votes
0answers
1k views

Which GPIO pins are used for I2S audio I/O

I am trying to set up the ADAU1781 as an audio codec for the Pi 3 B, communicating with the Pi via the GPIO pins. Which pins would I use for I2S audio input and output? I have been doing a lot of ...
3
votes
0answers
2k views

Arecord not working with USB Microphone anymore

Before I start, I'd like to tell you that I've used arecord in the past with the Raspberry Pi 2 using the same USB Microphone and it has worked just fine. For some reason, it doesn't seem to work ...
3
votes
0answers
851 views

Using I2S microphone with Raspberry Pi [closed]

I have a microphone with I2S output and I am trying to record audio with it, using the Raspberry Pi (2 model B). I'm having trouble getting the microphone to work. Does anyone have working code for it?...
3
votes
0answers
3k views

Jack server not working on Raspbian

I wrote a little python app (using PyDub), that plays sound files. Everytime I run it, I get the these errors: ALSA lib pulse.c:243(pulse_connect) PulseAudio: Unable to connect: Connection refused ...
3
votes
3answers
14k views

How to force Rpi to use usb soundcard

I have RPi with usb soundcard I have follow this answer USB card as my default Audio Device But i still can't make it work the settings always changing itself and i can't set my default soundcard to ...
3
votes
0answers
130 views

crackling sound RPI2 analog output [duplicate]

I am using a RPI B 2 with OSMC as a media player for video and sound content. I have an amp connected via the analog 3.5mm jack output of the pi. When the audio volume of the pi is relatively low, ...
3
votes
0answers
963 views

Bluetooth Input Not Outputting High Quality Audio to FM

I have Raspian Wheezy running on my Raspberry Pi. I have set it up to run pifmplay and output the sound to HDMI - (Pin 4 on GPIO) so that the Pi is now working as an FM Transmitter. This part works ...
3
votes
0answers
2k views

Raspberry Pi Drum Module

I have an old electric drum set with a broken sound module (the brain that you plug each jack into). As a fun DIY project I'd like to resurrect this drum kit by replacing the sound module with the ...
3
votes
0answers
1k views

Dynamic compression / limiter of MP3 audio playback? [closed]

I often listen to audio plays (single or multiple MP3 files) before going to sleep but then wake up again when there is a much louder scene or the end theme. I can't just turn the volume down in ...
3
votes
0answers
444 views

Audacity crashes after recording 10s or so of sound

I'm experimenting with recording sound using the Pi and a USB microphone. I can record long samples using arecord from the command line but when I use Audacity I get frequent bus errors, usually ...
3
votes
0answers
1k views

Audio/Video out of sync with PCM2704 USB key. How should I proceed? [closed]

I recently bought a PCM2704 USB sound card, which is purported to work out-of-the-box with raspbmc. I've enabled the experimental audio drivers, but now I get pretty bad A/V sync issues. Of course, ...
3
votes
2answers
425 views

Problems recording while playing audio

I am using a USB-soundcard to record on my raspberry pi and it records fine and the recorded sound is great, however if I am playing any other sound clip (through the audio output port on the ...
3
votes
1answer
3k views

Very bad sound with external microphone [closed]

I have a CAD Audio U9 Microphone external microphone with a clear sound on my laptop. I plugged it inside Rpi and the sound is very bad. I have glitches and noise. I tried to change the gain inside ...
2
votes
1answer
6k 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 ...
2
votes
5answers
1k views

Powering an amp and a Pi from a single 12V lead?

I have a project in mind where I put a Pi into an old radio along a small amp (e.g.), or similar. The only problem is I'd like to only have one power lead to the whole thing. The amp takes a 12V ...
2
votes
2answers
2k views

Driving an 8 Ohm, 0.25 W speaker using GPIO or audio output (RPi 1 Model B)

I'm trying to build a Raspberry Pi into an old toy phone and use the GPIO pins to read the numeric pad (this part is working) and attaching the RPi's output to the built-in speaker. The speaker says "...
2
votes
1answer
2k views

What would it need to create an audio A/D Converter for a Raspberry Pi

I'm trying to build a simple audio-recorder, that stores data from an audio input to either an sd-card or a connected usb-stick. The audio interface should initially just encode 2 channels, with the ...

1 2 3
4
5
19