@Terry: I appreciate the help, but a bit confused - I already have an opamp (but in inverting config while yours is non-inverting, is that the main difference?), and then you removed the coupling cap after the opamp in your circuit, which is necessary to remove the Vcc/2 bias
@magic: very interesting circuit! I do not think it solves the issue that it conflicts with the audio circuit though, as Q3 on will still send +5V to the audio circuit, i.e. the opamp output.
The thing is it seems it is not realy possible to combine the audio and the digital output, so I went around the whole board and found a better connector to send the digital signal from
So I leave the audio alone and avoid that problem.
I am not very strong on transistors though and I will need help to do the actual switching. But it is outside the topic of this thread so I will create a new one. I will put your circuit there magic (because I do not quite understand it).