you have to give scratch access to your microphone
this is the closest you can get to an actual microphone on scratch