Recording Personal Wake Word Error - Invalid Sampling Rate


Previously I have recorded my wake word with PS4 microphone, and there is no issue.
I tried to record another personal wake word using a desk microphone, 3.5 mm jack but converted into usb with an adapter. An i got the following error when recording the sample.

Press enter to record one sample, say your hotword when “recording…” shows up
Expression ‘paInvalidSampleRate’ failed in ‘src/hostapi/alsa/pa_linux_alsa.c’, line: 2048
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &real
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatenc
Traceback (most recent call last):
File “”, line 142, in
File “”, line 79, in record_and_trim
record_one(directory, i)
File “”, line 39, in record_one
File “/usr/lib/python3/dist-packages/”, line 750, in open
stream = Stream(self, *args, **kwargs)
File “/usr/lib/python3/dist-packages/”, line 441, in init
self._stream =**arguments)
OSError: [Errno -9997] Invalid sample rate

Does anyone has any idea how to resolve this?