What is the purpose of the 10K resistor that is connected across the input and the supply?
It applies a bias current across the microphone. As the microphone is of the type that changes resistance in response to sound. Thus forming a voltage divider that is connected to the base of the transistor via the decoupling capacitor.