Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 6 of 6

Thread: Sound clips to be sent to one of three devices?

  1. #1
    Junior Member
    Join Date
    Dec 2018
    Posts
    16

    Sound clips to be sent to one of three devices?

    For a new escape room project I have three possible devices where the audio can go:
    - a loudspeaker, or
    - the speaker inside an old fashioned telephone, or
    - a Bluetooth earpiece (worn by one of the players).
    So a sound clip will only be heard on one device simultaneously.

    The room is running already with a pc playing the audio files. The files have specific channels, and the channel specifies which device will play the sound. We want to move the room elsewhere, and change this system.

    I was thinking of using a Teensy and Audio Shield. In an array I could specify the sound files and their destinations. Could I use some relays to change the output of the sound, or will this lead to a lot of distortion? We couldn't have that, especially for the player with the earpiece...

  2. #2
    Senior Member
    Join Date
    Feb 2017
    Posts
    213
    The PRJC TDM Board comes to mind. But, you'd have to provide more details on your interfaces.

  3. #3
    Junior Member
    Join Date
    Dec 2018
    Posts
    16
    This board looks great, I'll order them right away. Thanks!

  4. #4
    Junior Member
    Join Date
    Dec 2018
    Posts
    16
    I see that my intended reply never made it...

    What I simply wanted to do, now that the boards arrived and the soldering can begin, is to read WAV files from the SD card on the Teensy 3.6. Depending on some values in an array, the sound will be directed to one of the three outputs on the TDM Board.

    I have looked around on the forum, could not find any earlier attempt to do this... It must be possible, right?

    Best wishes for 2019!

  5. #5
    Senior Member
    Join Date
    Feb 2017
    Posts
    213
    I imagine it would be something like this:
    Click image for larger version. 

Name:	TDM.JPG 
Views:	6 
Size:	23.9 KB 
ID:	15484
    You'd set one of the amplifiers' gain to 1.0 and the others' to 0.0.

    The mixer is included in case you need to convert stereo wav files to mono. Set gain on inputs 0 and 1 to 0.5.

  6. #6
    Junior Member
    Join Date
    Dec 2018
    Posts
    16
    Thanks, that looks great!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •