Can I detect incoming sound on Line In, Audio Shield?

Status
Not open for further replies.

cow_n_berg

Active member
For my escape room I'm going to replace the inner works of a rotary phone by a Teensy 3.2 + Audio Shield. The players will have to find the right number to call. Up to that point, I will play WAV files (buzz tone etc.) from the SD card. After they called the right number, the Teensy will stop playing the WAV sounds.

Then the Game Master will speak to them through the Line In. As I gather it, the sound from Line In will directly go out to the jack plug, mixed with whatever the Teensy is playing. Is this correct?

Then my question: can I detect activity on the Line In? If yes, I can silence the buzz tone from the Teensy. (If no, I have to use another form of communication (a digital pin) to change its state from active to passive.)
 
As I gather it, the sound from Line In will directly go out to the jack plug, mixed with whatever the Teensy is playing. Is this correct?
Pretty sure that is incorrect. Both the Line In and the microphone are inputs to the SGTL5000. You can select one of them. The selected one enters the Teensy via it's RX I2S interface. It's up to your program what happens to it after that.
 
All right, it slowly comes together in my brain.
Code:
inputSelect(AUDIO_INPUT_LINEIN);
And then I can hook up a peak analyzer to the i2s input, and hook up the i2s input to a mixer and then to the i2s output Audio Design Tool Heartbeat.jpg.

Thanks!
 
Status
Not open for further replies.
Back
Top