Simple 12V preamp circuit before speaker
A preamp like you show has an output current that is much too low to drive a speaker. A speaker is usually driven by a Power Amplifier that is usually an IC.

But if you use a power amplifier IC then its output will always be connected to the speaker so then the speaker will no longer work as a microphone.