I want to connect a Raspberry Pi 3 to my PC monitor. The monitor provides an HDMI port but lacks of a built in speaker because the desktop computer that is currently connected to the monitor uses its own speaker. My question is this: Is there is a way to connect the Raspberry's headphone jack to the computer's microphone jack and then redirect the audio input of the PC to the speakers in order to listen the Raspberry's audio without the need of other devices such as headphones or external speakers? The computer is a dual boot system with Linux and Windows so I accept suggestions for both operating systems.
I don't have a set up to test this but it looks like...
Step 1. Audio to 3.5mm output:
amixer cset numid=3 1
This will send sound to the headphone jack. Test it works first :) You can make this permanent with raspy-config (see reference page).
Step 2. Play mic input through speakers (Linux):
Install pulse audio
Then route mic to speaker:
pactl load-module module-loopback latency_msec=1
A simple hardware solution might be a microphone splitter, two jacks, one socket for the speakers to plug into ~£4?