I’ve documented how I collect microphone responses (and issues I’ve encounted) here:
Set your library to PTB and try adjusting the frequency and latency. I recently learned that my microphone was cheap and couldn’t resolve higher frequencies (like 48k range). I had a look at the manual and found the optimal range to be 8 - 16 k.