Uberi / speech_recognition

Speech recognition module for Python, supporting several engines and APIs, online and offline.

Home Page:https://pypi.python.org/pypi/SpeechRecognition/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No module named 'distutils' on Python 3.12

SyberiaK opened this issue · comments

Steps to reproduce

  1. Install Python 3.12
  2. Install speech_recognition and pyaudio with pip (pip install SpeechRecognition and pip install pyaudio)
  3. Create a Python script with this code:
import speech_recognition as sr

mic = sr.Microphone()
print('hello')
  1. 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.