I have got a probably very dumb question. I was not able to find an answer on the other topics because they always described the use of transistor as a switch for other applications.
I have a circuit with audio signal passing through and going to a speaker. I would like this signal to be grounded unless a 5V TTL signal is on. In this case this will have to go to the speaker. Can I do it with a transistor?
All the example that I found are about something (like a LED) already connected to a a voltage and then with the transistor either grounding its cathode or not and I do not know whether this would work in the other direction (what I would like to do).
Can I use a transitor to ground/mute the audio signal when TTL signal is zero?