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
4
votes
2answers
10k views

Pyaudio - Recording sound on Pi - getting errors

I'm attempting to record sound on the Pi. I am using PyAudio for this and everytime I do even the following: import pyaudio pa = pyaudio.PyAudio() I get the following errors: ALSA lib pcm.c:2217:(...
4
votes
1answer
364 views

Why is HDMI audio working differently for Sony and Samsung?

I have a strange different behaviour in raspbian showing up between two TVs. A Sony Bravia 32W670A and a Samsung LA32A650A1F The simplest demonstration for this problem is to build the hello_audio....
4
votes
1answer
610 views

HDMI passthrough with Raspbian

I have my RPI3 connected to a pair of Edifier S1000 speakers through a device that extracts the audio from the HDMI signal and sends it to the speakers through an optical cable. The sound is clearly ...
4
votes
1answer
3k views

Raspberry pi 3 analogue (headphone jack) audio output and usb microphone as input

How can I use the default audio analogue (headphone jack) output and as input a usb microphone together for voice recognition? I want to use the onboard audio output and record from a usb microphone, ...
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 ...
4
votes
1answer
3k views

Building an In-car audio system using a Raspberry Pi

My current car has a small Bluetooth Adapter for playing music though my cars AUX port, but its not great. I am currently looking at the idea of building a Raspberry Pi based version of this. I found ...
4
votes
2answers
3k views

Python Synth with Raspberry

I'm trying to create a synth using python with raspberry pi. I've written the code for manipulate the gpio input (i've modified the electronic of an old pianola and connected it to raspberry with the ...
4
votes
2answers
89 views

Program that autosaves music position on shutdown?

I'm looking for a program that saves the track position and playtime upon shutdown of the Rpi. We're talking a proper shutdown, not unplugging the Rpi unexpectedly. Imagine the Rpi is an iPod, that ...
4
votes
1answer
510 views

TeamSpeak in VOX mode on the Raspberry Pi

I would really like to run a TeamSpeak client in VOX mode on my Pi. My goal is to hook the Pi to a USB sound card and wire that to my two way portable radio that is VOX. Has anyone done this?
4
votes
0answers
270 views

I2s DAC audio out but USB audio in

I was wondering if anyone could help me. I am trying to set up my Pi 3 to be an assistant (Google or Alexa, etc). I had it set up working fine with the USB mic and the 3.5mm audio out, but I wanted ...
4
votes
0answers
942 views

Full duplex Audio With USB Sound Card

I setup Raspberry Pi with external usb sound blaster sound card. My Goal is to be able to record and play audio simultaneously. I setup and configured it to be the default sound card as follows: sudo ...
4
votes
2answers
3k views

About 1 second from start is cut from each song played by XBMC

I have a problem with playing music on my XBMC (Raspbmc RPi 512MB RAM). It's connected to my AVReciever (Onkyo) through HDMI cable and in XBMC settings HDMI is set as output. Now, when I play some ...
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
4answers
12k views

How to make PCM5102 DAC work on Raspberry Pi ZeroW?

I purchased a PCM5102 for my PiZeroW, but having problems finding complete driver software information voltage information wiring information. I chose this particular unit because they seemed very ...
3
votes
2answers
7k views

role of snd_bcm2835 on raspberry pi

What is the purpose of snd_bcm2835 and how can I get it? Is it sound driver? And what is ALSA for?
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 ...
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
1answer
350 views

Using an Android earset and button on the Raspberry Pi

I would like to connect stereo earbuds with inline mic and play controls to a Pi 2. Sadly for me, the 4-pole TRRS jack on the Pi 2 is for stereo audio and video out :) A cheap USB sound dongle is ...
3
votes
3answers
5k views

Cannot get USB audio (Generalplus Technology Inc) to work

I bought a USB audio adapter and have been unable to get any sound to come out of it. lsusb reports it as: Bus 001 Device 005: ID 1b3f:2007 Generalplus Technology Inc. which is not one I've come ...
3
votes
3answers
700 views

Can MAX98306 Stereo 3.7W Audio Amplifier be powered by Raspberry PI 5V supply?

Can I power the MAX98306 Stereo 3.7W Audio Amplifier off of my Raspberry Pi 3's 5V pin? I have a project that needs to be battery powered, and I'd like to run everything from a single battery and not ...
3
votes
2answers
227 views

Spotify 'one touch' player for disabled user

I'm trying to create a 'one touch' system for a disabled user to play a Spotify playlist - the Raspberry Pi seems an ideal candidate for this project. Info: User can only hit a plastic switch (like ...
3
votes
2answers
2k 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), ...
3
votes
3answers
587 views

Diagnosing dropped samples from a usb microphone

My usb microphone appears to be dropping samples, producing very glitchy recordings which are about 5% shorter than they should be. Here's an example recording of a periodic wave: You can clearly see ...
3
votes
3answers
1k views

Pygame and Alsa lib error

I am running a pygame window on a raspberry pi. The raspberry pi is connected to an lcd through gpio (not hdmi). My pygame script does not contain any mention of audio, only some basic rectangle ...
3
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 #...
3
votes
3answers
200 views

Hearing loss — need RPi Zeros to listen to bells, buzzers, or chimes and send some notification

I can't hear my doorbell when I'm in my shop the dryer's mechanical chime when I'm upstairs the oven's little buzzer when I'm out of the kitchen which smoke alarm is going off (hearing aids don't ...
3
votes
1answer
872 views

How do I read PCM audio from a file?

I would then to write the PCM data directly to the I2S interface. Is there an existing API that would allow me to read an audio file and get at the PCM digital data?
3
votes
1answer
2k views

Pi 3B+ jack audio inputs and low latency

Related: Raspberry Pi 3 audio input? I need to be able to input several jack microphones (minimum 2, more could prove useful) to my raspberry, to do some audio processing (between all inputs), and ...
3
votes
2answers
3k views

How do I change OMXplayer's default volume?

The title pretty much says it all. I am using Ubuntu MATE, which uses ALSA instead of PulseAudio. OMXplayer bypasses ALSA. Because of this OMXplayer always starts playback at 100% volume, which is far ...
3
votes
1answer
398 views

pi zero audio output with sense hat

I have asked this question on raspberry pi forum but no response. I am trying to make a web radio alarm with display and control using a sense hat. I got the radio working first on an old RPi A using ...
3
votes
2answers
1k views

What's the difference between aplay -l and aplay -L?

I'm trying to configure my Raspberry Pi (model B) to work as an AirPlay to Bluetooth bridge of sorts. I'm using Shairport-Sync to receive the AirPlay audio successfully, and can get it to output via ...
3
votes
1answer
6k views

A way to solder composite video directly to RPi B+ board?

I have a b+ newly purchased that I'm slimming down for a handheld build. Ideally, I'd like to be able to solder my composite video connection to the underside of the board like I could with a model B....
3
votes
4answers
2k views

Sound card for raspberry pi?

Can anyone recommend the best way of recording audio input? Are there any "sound cards" for Raspberry Pis? Edit: I've seen Linux software for ham radio. And see that Debian Wheezy has a whole lot of ...
3
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 ...
3
votes
1answer
191 views

Raspberry Pi 2 hissing sound only when not connected via HDMI

My Raspberry Pi 2 (running the latest Raspbian Jessie Lite and with Pixel) is making a hissing sound over the 3.5mm headphone jack only when not connected via HDMI. I have set the audio output device ...
3
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 ...
3
votes
4answers
5k views

How to stream audio from raspberry pi to android phone?

I want to use my android phone as speaker for my rpi 3 with raspbian jessie. As I unerstood I can't use my phone as bluetooth speaker. The only solution I found is to use Soundwire. However I'm not ...
3
votes
1answer
377 views

Speech Synthesis issues ? Dalek / HAL

I have installed 'espeak' , 'Festival' and 'Flite' (the cut-down version of 'Festival' for ARM) ; and the former two seem to suffer from a very similar problem: they both start reading text files just ...
3
votes
1answer
4k views

static sound when recording with USB sound card mic/input on a B+

I have a Raspberry Pi B+ model and I am using a USB sound card to record audio. The problem is that I am only getting static and loud humming when recording, with nothing else actually recorded. I am ...
3
votes
2answers
2k views

Least delay for audio processing

I am working on a project that involves real-time audio processing to do noise cancellation, so basically taking input from a microphone, doing processing, and sending out the output. It heavily ...
3
votes
2answers
1k views

No audio on Xbian connected to an AV receiver via HDMI

I've got a Raspberry Pi with Xbian and XBMC installed that works perfect through HDMI when I connect it to the TV set. Video and audio are nice, but I've tried to set up it with my AV receiver without ...
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
2answers
5k views

ADC for ultrasonic frequency recording?

I'm trying to create a prototype using a breadboard that is able to record sounds at the ultrasonic frequency range. I am looking into purchasing this microphone. The problem is that the Raspberry Pi ...
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
4k 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
2answers
2k 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
597 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
1k 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
509 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 ...