Wav File From Microphone On Python
My project is to do speaker recognition using a microphone. I'm using the speeh_recognition library to extract my microphone audio, but the object's class is 'speech_recognition.A
Solution 1:
write audio to a WAV file:
withopen("microphone-results.wav", "wb") as f:
f.write(audio.get_wav_data())
Quoting the doc:
Returns a byte string representing the contents of a WAV file containing the audio represented by the AudioData instance.
Post a Comment for "Wav File From Microphone On Python"