This Python script uses the OpenAI Whisper library and pytube to convert YouTube audio into text.
Install OpenAI Whisper and pytube
Run from your terminal either:
python generate-transcript-from-youtube.py <youtube_url>
or
python generate-transcript-from-youtube.py <youtube_url> <optional_folder_path>