How to transcribe YouTube videos automatically in just 1 minute

Table of contents

What would you say if we told you that using GPT 3 and an AI model, you can turn any YouTube video into a published article on your WordPress blog in a matter of seconds.

No way!

And if we also told you that you can transcribe several videos at the same time.

What do you think?

Well, that’s exactly what we are going to do in this post:

Explain how to use Google Colab, a Python script and an AI model from Open AI, to transcribe YouTube videos and publish content on WordPress automatically.

The image generation, we’ll leave for a future video, so stay tuned to our channel.

Let’s get down to business:

Artificial intelligence automation with Python

OK, you’ve got an idea of what we want to do, but what tools will you need? Just access Google Colab, a free program from Google that allows us to run code from the cloud. In our case, a Python script.

At the moment, it sounds complicated, but nothing could be further from the truth.

I assure you!

Functions of the YouTube and WordPress video transcription script

For those who are more curious, we explain below the functions of the script we have prepared: Note: If you prefer, you can go directly to the following section where we have uploaded an explanatory video.
  1. Download audio from YouTube video. 
  2. Transcribe the audio into English. 
  3. Delete audio and continue with the download of the next audio. 
  4. Create an entry in our WordPress with the transcription. 
  5. Automatically publish content. 

As you can see, all for free, effortlessly and with a great advantage:

It won’t be necessary for the video to have previously created subtitles!

Moreover, if you know how to program, and you dare, it is possible to play with the code to translate the videos into several languages.

And now, once we have awakened the bug to automatically publish YouTube video content on WordPress, you may also be interested in downloading our script on how to publish content on WordPress generated by artificial intelligence to maximize the productivity of your working hours.

But first, let’s take a brief look at the steps before running the script in Google Colab.

Steps before executing the script:

We already have a whole list of YouTube URLs where the videos we would like to transcribe and have content on our blog are uploaded.

That’s not all we’ll need.

To activate our script, you will need an OpenAI API Key that you will need to incorporate in our code as we explain in our video.

You will also need a username and password of the WordPress where we want to publish transcripts and everything ready to press PLAY.

How to run Python code in the browser with Google Colab

Don’t let the title scare you.

If you are not a developer or do not know how to program in Python, we warn you that it is not necessary.

You will be able to follow each of the instructions perfectly without fear of getting lost or making any mistake.

Just follow these steps:

  1. Make a copy of the Google Colab file in your Drive: Access here to script how to translate videos with AI
  2. Download dependencies and libraries needed to run Google Colab in your browser by clicking on the first Play button in the sidebar. 
  3. Type in the text box below all the YouTube URLs where the videos you want to transcribe are located. Each of them must be separated by a comma. 
  4. A table will be created automatically. In each of the rows will be stored: URL, video title and text. 
  5. We download the Whisper model to translate the videos. 
  6. We detail the level of transcription quality required.
  7. Then the audio of the video will be downloaded and transcribed. 
  8. We insert text into the file and proceed to delete audio to free up space and continue iterating with the next video.  
  9. We will give permission to access our WordPress through username and password. 
  10. A transcript of each of the videos will be published automatically in a WordPress post with the title of the video.
In order for you to better understand the script, here you can see an explanatory video with a demo of the process:

Is it really that simple, or can I get a bug when running the script to translate videos?

Well, sometimes, we’re not going to fool you, it can get a bit tricky and there can be mistakes that make you lose control.

But they are easily fixable.

One of the most common mistakes can happen when you forget a comma when writing the URLs of the videos.
This has happened to us a couple of times during video recording tests.

On the other hand, it can also happen that the artificial intelligence through OpenAI crashes, especially if you are working in American time.

This can cause you to not be able to get the data at the moment, pause the magic with GPT-3 and fail in the process. But don’t worry, this is normal, and you just have to wait a little bit and try again later.

As you can see, many of them can be solved simply by following the steps we mentioned or by taking a closer look at the video.

It is very simple.

Why is it important to transcribe a YouTube video in our blog posts?

Transcribing a YouTube video is important for several reasons.

First, it helps to improve the accessibility of the video for people with hearing disabilities or for those who prefer to read rather than watch videos.

It can also help improve the comprehension of the video content for those who do not speak the language in which the video is spoken.

In addition, transcribing a video may identify important keywords that can be used to optimize the video for search, in the eyes of the user and in the eyes of Google ;-).

How to transcribe a YouTube video?

There are several ways to transcribe a YouTube video.

One way is to use the automatic subtitles generated by YouTube.

However, these captions can be inaccurate and may need to be edited for accuracy. Another way is to transcribe the video manually, which can be a tedious and time-consuming task. There are also online transcription tools that can help transcribe the video automatically.

Here are some of our favorites:

There are plenty of options, however, we can’t leave any chance to at least ask you to try our translation script and compare the time and results obtained.

We’re sure you’ll use it again and again until you get bored. 

That’s why we ask you to share it with your friends and acquaintances when you try it.

How can artificial intelligence help with video transcription?

We have just shown you how artificial intelligence can help with video transcription by using speech recognition technology to automatically transcribe the audio from the video.

This certainly saves time and effort compared to manual transcription.

In addition, some automatic transcription tools can also improve transcription accuracy through machine learning and natural language processing.

For now, we just hope you will try our script and if you find it helpful, feel free to share it on social media, leave us a comment or share it with your professional colleagues.

We’d love to hear that we’ve helped you, and will be happy to continue publishing more tips on how to get the most out of AI by automating the most tedious tasks.

Are you looking for ways to have a greater impact organically with your blog content?

Increase the number of publications and take advantage of other resources created to generate content. Surely you have a YouTube channel with possible content to incorporate into your blog.
In our team, we have experts in artificial intelligence who use automation techniques to create them easily.

Would you like to improve your project?