Questions tagged [audio-playback]

For questions pertaining to the hardware and software necessary to play back audio.

Audio playback on the Raspberry Pi often involves adding a sound card (often by USB) and configuring ALSA.

127 questions
11
votes
2 answers

Outputting audio to multiple sound devices simultaniously

I'd like my RasPi to send audio to my on board audio out port, and also to my Digital out card (an I2S Hifiberry Digi). This ought to be possible with ALSA. I have the drivers loaded and can send to both sound devices individually, but combining…
Christi
  • 241
  • 2
  • 8
7
votes
3 answers

Audio goes in and out on Retropie

So as my title suggests I am having an issue with my Retropie installation. I am currently using latest greatest BerryBoot, OpenElec, and Retropie on my Rasp Pi 2 updated as of yesterday evening. The audio works perfectly if I am on OpenElec…
MAllen22842
  • 171
  • 1
  • 4
6
votes
1 answer

No sound through 3.5mm jack

I've followed the instructions to "force sound over 3.5mm jack" but when I run omxplayer example.mp3 I get no audio. When I force omxplayer to play over the 3.5mm jack using omxplayer -o local example.mp3 it works. How do I change the system-wide…
Tyler
  • 61
  • 1
  • 1
  • 2
5
votes
4 answers

How to play mp3 on background from command line

The command: omxplayer -o local sample.mp3 works fine - sound is good, but I have to wait for return until the music stops. I want to put this in a backround. I run: omxplayer -o local sample.mp3 & It creates the new process in a background as it…
Marcin Majchrzak
  • 159
  • 1
  • 1
  • 3
5
votes
1 answer

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 USB sound card as the default for audio out while…
5
votes
1 answer

Losing first few seconds of audio

So on my Raspberry pi when I play audio through the headphone jack, the first few seconds of sound are lost. However, I if I immediately play the sound again, the audio works fine from the very beginning of the sample. The end of period when I can…
4
votes
2 answers

Passive speaker connected to the Pi

I know the audio output is line level, but what can I hope, in terms of volume, with a small passive speaker (without any LM386 amplifier) like this?
Basj
  • 800
  • 3
  • 21
  • 49
4
votes
2 answers

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 Alsa to either the built-in minijack or a USB…
Trickartt
  • 41
  • 1
  • 3
4
votes
3 answers

Play multiple mp3 files

I need to be able to play up to 8 mp3 files at the same time. Is this possible with the raspberry pi 3b+? They need to be started in python code.
mScientist
  • 107
  • 1
  • 1
  • 6
3
votes
2 answers

Command aplay does not work without sudo

The command aplay only works if preceded by sudo. omxplayer test.wav will play the audio I recorded with arecord just fine. aplay text.wav does not, but sudo aplay test.wav does. The suggestions from this previous thread did not solve the issue.…
relientkc
  • 31
  • 1
  • 5
3
votes
1 answer

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 using ffmpeg & my Pi is playing Music from Spotify via…
3
votes
1 answer

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. Ultimately I'm writing a small app using Google's…
soapergem
  • 149
  • 1
  • 2
  • 8
3
votes
1 answer

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 capability (maybe with PulseAudio or some other…
supersport
  • 33
  • 1
  • 3
3
votes
1 answer

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 fine - then the quality degrades..... espeak…
monojohnny
  • 569
  • 1
  • 6
  • 18
3
votes
1 answer

GPIO affected by audio playback

I recently found the PiFm project which sends a FM signal through a GPIO pin to effectively create a FM transmitter out of the Pi. A problem arises when you do a normal playback of a .wav audio file with mplayer or aplay. After you did this the…
WalyKu
  • 131
  • 4
1
2 3
8 9