3

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 app) of sending different audio playback to different speakers at the same time. So, if 1 person walks up to display A and presses the button, the audio for that display starts on that speaker; but then someone presses the button for display B while display A is still playing...display A needs to keep running while B starts playing on that speaker. Is this even possible?

Ghanima
  • 15,855
  • 15
  • 61
  • 119
supersport
  • 33
  • 1
  • 3

1 Answers1

2

Yes, should be possible

(While I don't understand whether those "displays" are supposed to show some kind of graphics output), it is possible for the Pi to source multiple different audio outputs. One simple approach is to use multiple USB sound cards. alsa is perfectly capable to handle multiple cards (see here). Different software tools or multiple instances of the same should then be able to output different sound files to those cards.

The information on the web is slightly inconsistent, some claim that both mpd and mopidy support multiple instances running other say the don't.

Example, Pi2, with mopidy running (controlled by a local instance of ncmpcpp which essentialy uses no resources) while playing MP3 uses about 25% of total CPU load. So this could get you to roughly three or four independent sources of sound. At least from a resource perspective.

Ghanima
  • 15,855
  • 15
  • 61
  • 119
  • This was an excellent answer! I am going to try this out to see if I can get it working. I will update the board with my results, whether good or not so good. – supersport Nov 18 '15 at 07:29
  • @supersport I'd like to know how you were able to connect multiple speakers to one raspberry pi and played different audios at the same time? I have the same project. Any help would be highly appreciated. Thanks – Sakhi Mansoor May 09 '21 at 21:33