Let's build an interactive web app that can transcribe YouTube videos in minutes! Streamlit is a great Python library that makes web development a piece of cake. And on top of Streamlit's powerful framework we will plug in Assembly AI's easy-to-use API to quickly upload and transcribe audio files.
Sign up for a free AssemblyAI API token here ๐
https://www.assemblyai.com/?utm_source=youtube&utm_medium=referral&utm_campaign=yt_mis_2
In the first part of the tutorial we will create a project structure, install all necessary dependencies, create a base Streamlit app with which we can test our code and develop the Python function that starts the transcription process.
We will use three main libraries: Streamlit, YouTube_dl and FFmpeg. These libraries will enable us to create a front-end for our project, download youtube videos and extract audio files from youtube videos respectively.
All the code in this tutorial is shared through a public Github repository. (https://github.com/misraturp/YouTube-transcriber)
This is all possible with only the free API token provided by Assembly AI. Sign up to get your own free API token here: https://www.assemblyai.com/?utm_source=youtube&utm_medium=referral&utm_campaign=channel_assemblyai
๐ฉโ๐ป Grab the code: https://github.com/misraturp/YouTube-transcriber
๐ฅ Download FFmpeg: https://ffbinaries.com/downloads
โ๏ธ See this tutorial in written format: https://www.assemblyai.com/blog/how-to-get-the-transcript-of-a-youtube-video/00:00 Introduction
00:19 App overview
00:31 Get your own free API token
01:01 Let's get started!
01:25 Creating the project structure
02:35 Installing dependencies
05:26 Starting the Streamlit application
06:40 Setting up youtube_dl constants
07:50 Setting up the AssemblyAI API options
08:33 Getting the free API token
09:39 Extracting audio from the YouTube video
12:38 Uploading the audio to AssemblyAI
13:15 Starting the transcription
15:22 Checking that the code works correctly
16:31 Like and subscribe!
3 Comments