Steps to reproduce
- Install Python 3.12
- Install
speech_recognition and pyaudio with pip (pip install SpeechRecognition and pip install pyaudio)
- Create a Python script with this code:
import speech_recognition as sr
mic = sr.Microphone()
print('hello')
- Launch the script.
Expected behaviour
hello printed in the console
Actual behaviour
Because distutils was removed in Python 3.12, we get ModuleNotFoundError: module named 'distutils'
System information
My Python version is 3.12.