5 votes
Accepted

Possible to route audio directly from usb-audio line-in to same usb audio line-out?

I found a simple solution using just ALSA and uses little CPU - around 3-5% on RPi 3 using latest Jessie build and a USB Audio Device It appears that recent builds all come with ALSA's dmix plugin ...
dbmitch's user avatar
  • 381
4 votes

Possible to route audio directly from usb-audio line-in to same usb audio line-out?

You can use module-loopback functionality of PulseAudio. First identify the names for your sound card's line in and speakers using pactl list sources and pactl list sinks respectively. Then create the ...
Dmitry Grigoryev's user avatar
4 votes

Audio goes in and out on Retropie

I had this same problem on my Vizio. There is nothing wrong with your Pi: this is a Smart TV "feature". They call it volume leveling and it is on by default. You should be able to turn it off from ...
Red's user avatar
  • 41
4 votes
Accepted

Use different sound card for microphone vs audio output

I set up my ~/.asoundrc like below and it allowed playback from the USB sound card and input from the separate USB mic. pcm.!default { type hw card 0 #card 0 is USB sound card } ctl.!...
user3291073's user avatar
4 votes

No sound through 3.5mm jack

The Raspberry Pi documentation covers three ways to force audio. Try the first two methods: Desktop volume control Right-clicking the volume icon on the desktop taskbar brings up the audio output ...
Andy Anderson's user avatar
3 votes

HifiBerry DAC+ or Digi+?

Actually, both would work and it is up to you. Either the DAC+ into your amp (using the RCA connector, red and white are the left and right channels), or the Digi+ for a digital connection to your DAC....
user42535's user avatar
3 votes

Digital amplifier with Raspberry Pi

The Adafruit board you've linked to is just a DAC and amp bundled together. From your linked page: It takes standard I2S digital audio input and, not only decodes it into analog, but also ...
goobering's user avatar
  • 10.7k
3 votes

RPI 3 Firefox Video plays but Sound is loud hiss

I found the solution: sudo apt-get install alsa-utils sudo apt-get install mpg321 sudo apt-get install lame sudo modprobe snd-bcm2835 Enabling Audio Output By default, the RPi audio output is set ...
Inés Gómez Benavent's user avatar
3 votes
Accepted

Is it possible to play audio though the aux. port without starting 'x'? (pi 2b)

Yeah, it's possible. I even play movies without startx. I personally use omxplayer but any command-line based player would do it. Edit as suggested by angussidney: What package do you need to ...
Aloha's user avatar
  • 7,126
3 votes

Whistling sound from speakers on connecting USB mouse

Welcome to the world of RF. You're experiencing what's called "crosstalk". Basically what this means is that the EMI (electromagnetic interference) generated from one wire can influence other wires ...
drong0's user avatar
  • 31
3 votes

Command aplay does not work without sudo

Check if your user included in the audio group. This might be necessary for aplay to run. If not, you can add the user to the group by running: sudo adduser "yourname" audio
Bart Heremans's user avatar
2 votes

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

aplay -l lists all hardware devices, i.e., devices handled by an ALSA kernel driver. These devices, identified by card number x and device number y, can be accessed directly with a device name hw:x,y. ...
CL.'s user avatar
  • 571
2 votes

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

As per the manual page (which should be installed, read man aplay): -l, --list-devices List all soundcards and digital audio devices -L, --list-pcms List all PCMs defined PCM is the standard ...
goldilocks's user avatar
  • 58.7k
2 votes

How to play mp3 on background from command line

Here's an alternative Open up a screen session using the command screen. Install it if you have to. Run omxplayer -o local sample.mp3 from there. Press Ctrl+A then press D to send the screen to the ...
Aloha's user avatar
  • 7,126
2 votes

How to play mp3 on background from command line

There should be a man page (man omxplayer); the options are also explained here. I do not see a "background" or "damonize" (similar concept) option there. This is probably because omxplayer was ...
goldilocks's user avatar
  • 58.7k
2 votes

Need audio recorder + audio player for my Pi Zero

The Pi Zero doesn't have a built-in Microphone input nor Audio output, therefore, you will need either a USB Sound Card or a pHAT. In case it helps, I bought a "USB Sound Card for Pi" on ebay for $3, ...
Ricardo's user avatar
  • 1,038
2 votes
Accepted

Is the new 2nd gen Focusrite Scarlett 2i4 compatible with the RPi 3 B

I have a new Focusrite Scarlett 2i2 2nd Gen (+ Pi3B with RB Jessie) as well. Although: the CL alsamixer tells me there are no controls no changes were made in the file alsa.conf Darkice (& Alsa)...
Maarten's user avatar
  • 36
2 votes

Audio injector codec board wm8731 bcm2835-i2s 20203000.i2s: I2S SYNC error! raspberry pi b+

I can see that you are using the stereo Audio Injector card and not the Octo 8 channel card. This line : audioinjector-audio soc:sound: wm8731-hifi <-> 20203000.i2s mapping ok shows that ALSA ...
Matt's user avatar
  • 966
2 votes

No audio on Raspberry Pi 3 w/Kali

Audio over HDMI sometimes doesn't work out of the box on Raspbian, and the same might be the case with Kali. When you run sudo aplay /usr/share/sounds/alsa/Front_Center.wav does it say /dev/dsp: No ...
jdonald's user avatar
  • 2,904
2 votes

How can I play locally stored music via an Alexa command?

Alexa can't play (and isn't even aware of) music stored locally. All music that Alexa can play is processed on the cloud and streamed to the device, so Alexa won't natively support playing music. That ...
Aurora0001's user avatar
  • 6,298
2 votes

How many speakers could I hook up to an RPi, and what additional hardware would I need?

One way to go is using multiple USB sound cards, though reports about the number of supported sound cards differ. These posts claim that alsa supports up to 32 devices without much fiddling: Need ...
Ghanima's user avatar
  • 15.8k
2 votes

How many speakers could I hook up to an RPi, and what additional hardware would I need?

Look for an "audio distribution amplifier". A quick search finds several that support 8 outputs off a single input. I found used 10 output units on eBay. As you note, each output will, in turn, ...
bobstro's user avatar
  • 3,998
2 votes

No audio output Raspberry Pi3 (Raspbian-stretch)

I feel your pain, I have the same setup and trying to troubleshoot at the moment looking for a solution. edit: I've tried a bunch of things. I just did pi@raspberrypi:~ $ sudo killall bluealsa pi@...
Alex Laverty's user avatar
2 votes

Install spotify on raspberry pi 3 and run it remotely

Yes, at least part of what you want to do is possible. Here's a link to a repo on GitHub containing some instructions for installing raspotify, and downloads to get this running. When you say, "...
Seamus's user avatar
  • 21.7k
2 votes

How can I direct the output both of mpg123, and of eSpeak to the same ALSA sound device?

OK, I've found out that mpg123 and eSpeak stumble upon each other whilst trying to spit out their sound data through the sound card. Configuring an output mixer in /etc/asound.conf resolved the issue. ...
Neppomuk's user avatar
  • 452
2 votes

Play multiple mp3 files

I believe this is a simple issue of running the mpg123 command multiple times. sudo apt-get install mpg123 man mpg123 If you want it in python import subprocess subprocess.run(['mpg123','<your ...
nohupt's user avatar
  • 21
2 votes
Accepted

Play multiple mp3 files

Based on my answer here: The test is done on a Pi Zero with a recent Raspbian, Python 3.6, vlc (along with approx. 150 other packages), and it's Python-bindings. It's using a USB soundcard and alsa. ...
Ghanima's user avatar
  • 15.8k
2 votes
Accepted

Is there a way play a sound with a specific frequency that is transmitted through the raspberry pi's audio jack to a speaker?

Could this be what you're looking for? Pi Tone Generator with Python Good example here of how to do it.
jwh20's user avatar
  • 479
2 votes

I want to allow two instances of mPlayer to play music over a single bluetooth link to a speaker

Answered my own question with help from this link from Mark Hills Once you have bluealsa working and can connect devices and play, then these additional steps open up dmix capability and allow audio ...
David Goddard's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible