grilotc
Posts: 15
Joined: Fri Aug 01, 2014 10:05 pm

Controlling multiple audio devices

Thu Aug 06, 2015 12:31 pm

Hello, people!

I was wondering if there's a way to use the Pi to play multiple audio files to different speakers at the same time.
Any I2C, SPI or even bluetooth solution should be fine. I tried googling for I2C/SPI audio but I only managed to find
audio processing components...

Thanks in advance!

User avatar
r3d4
Posts: 1006
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Controlling multiple audio devices

Fri Aug 07, 2015 12:59 pm

also i2s , anyway

You did not say N* how many speakers/audio files .. ! :!: !

With 2 speakers and one stereo channel you can use paning and send L/R channel of audio to each speaker.
That is generally the default for most setups AFAIK

grilotc
Posts: 15
Joined: Fri Aug 01, 2014 10:05 pm

Re: Controlling multiple audio devices

Fri Aug 07, 2015 2:56 pm

Thanks for the reply!

Yeah, that's a good idea. What about more speakers? Say 4 or so...?

User avatar
r3d4
Posts: 1006
Joined: Sat Jul 30, 2011 8:21 am
Location: ./

Re: Controlling multiple audio devices

Fri Aug 07, 2015 11:59 pm

More out channels!

with one or more
usb ---> D2A
OR
I2C,SPI,I2S ---> D2A

It might be posible to use somthing with 'Surround sound' support to get access to more out channels , but how idk .
Unlikely but even with hdmi something might be posible

User avatar
eave4sean
Posts: 1
Joined: Mon Nov 16, 2015 12:42 am

Re: Controlling multiple audio devices

Mon Nov 16, 2015 12:53 am

grilotc,

Did you ever figure this out? I am trying to do the same thing. I am trying to figure out how I can use an input to play an audio file to 1 speaker while another input can play a different audio file to another speaker. I need 4 different audio files to be able to play to 4 different speakers at 1 time. Using Python, I figured out how to get the different audio files to play depending on the input, but I haven't found a way to send them to different outputs yet. Any help is appreciated!

lymezest
Posts: 3
Joined: Thu Jul 14, 2016 2:17 pm

Re: Controlling multiple audio devices

Thu Oct 20, 2016 8:06 pm

Have you guys been able to figure this out? I am in desperate need to do this for a multimedia installation. Thanks!

Return to “Graphics, sound and multimedia”