Have you ever needed to take notes from a YouTube video lecture? Back in college I totally had some hard classes where I had to use a lot of YouTube U

How to get the transcript of a YouTube video

submited by
Style Pass
2021-07-13 19:30:06

Have you ever needed to take notes from a YouTube video lecture? Back in college I totally had some hard classes where I had to use a lot of YouTube University and take notes from some YouTube video I found. A lot of times I also had to stop and rewind and replay multiple times to take notes because it was going too fast. Today I’ll show you an amazing way to get around this problem by getting the transcript of the video via AssemblyAI’s transcription API.

I'm going to show you how to build a command line tool that will download a video from a YouTube link and extract the transcription for you via AssemblyAI in Python 3. You'll need:

AssemblyAI is an API for fast, automatic speech to text conversion. We’ll use the AssemblyAI API to transcribe the YouTube videos we download. To get an AssemblyAI API key, visit assemblyai.com and sign up, you'll see your API key clearly displayed, I've circled where it should be in the picture.

Next we'll have to download youtube-dl for Python. Youtube-dl is an open source library for easily downloading youtube videos. There's multiple ways to do this, but I suggest using pip

Leave a Comment