Skip to content

πŸŽ™οΈ Effortlessly transcribe YouTube videos, MP4, and MP3 files to text using Whisper on Google Colab β€” no setup required!

License

Notifications You must be signed in to change notification settings

whiteSHADOW1234/WhisperTranscriber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Whisper on Google Colaboratory

Easily transcribe YouTube videos, MP4, and MP3 files to text using Whisper on Google Colab.

Features

  • No local setup required β€” runs entirely on Google Colab
  • Supports YouTube URLs, MP4, and MP3 files
  • Outputs transcribed text in .txt format

Table of Contents

  1. Basic Setup
  2. Choose Data Type & Download Transcribed Text

I. Basic Setup

  1. Search for google colab on Google and press Enter.
  2. Select the first search result or directly click this link: Google Colaboratory. image
  3. On the Colaboratory page, click the File option at the top left.
  4. From the dropdown menu, select Upload Notebook. image
  5. Drag and drop Whisper.ipynb into the Open a notebook page. image
  6. After uploading, click the Runtime option at the top.
  7. From the dropdown, select Change runtime type. image
  8. In the pop-up window, choose Python 3 (this should be the default).
  9. Set the hardware accelerator to T4 GPU (default is usually CPU).
  10. Click the Save button at the bottom left. image
  11. Click the Runtime menu again.
  12. Select Run all (or press Ctrl + F9) or manually run code blocks 1 through 4 to avoid errors. image

Note

It’s normal to see errors at this point if you decided to Run all, since no file type or file path has been selected yet.

II. Choose Data Type & Download Transcribed Text

1. YouTube Video βž” Text File

  1. Select YouTube from the dropdown menu.
  2. Click the Confirm button. image
    • Example selection: image
  3. Run Code Block 5 and paste the YouTube video URL when prompted. Press Enter and wait for the transcription. image
  4. Run Code Block 6 and wait until it outputs Your Transcript is here: YOUR_FILE_NAME.mp3.txt.
  5. In the right panel, click Refresh if the .txt file isn't visible.
  6. Right-click on YOUR_FILE_NAME.mp3.txt.
  7. Click Download to get your text file. image image

2. MP4 βž” Text File

  1. Select MP4 from the dropdown.
  2. Click the Confirm button. Select MP4
    • Example of selected result: MP4 Example
  3. Drag and drop <YOUR_FILE_NAME>.mp4 into the Files panel.

Tip

Click the Files icon on the right if the panel isn't open.

  1. Right-click on the file.
  2. Select Copy path.
  3. Run Code Block 5 and paste the file path into the input prompt. Press Enter to start conversion. image
  4. Run Code Block 6 and wait for the message: Your Transcript is here: YOUR_FILE_NAME.mp3.txt.
  5. Click Refresh (skip if the TXT file already appears).
  6. Then, right-click on YOUR_FILE_NAME.mp3.txt.
  7. Click Download to get your text file. image image

3. MP3 βž” Text File

  1. Select MP3 from the dropdown menu.
  2. Click the Confirm button. image
    • Screenshot of selected result: image
  3. Drag and drop <YOUR_FILE_NAME>.mp3 into the Files panel.

Tip

Click the Files icon on the right if the panel isn't open.

  1. Right-click on the file.
  2. And select Copy path.
  3. Run Code Block 5 and paste the file path into the input textbar. image
  4. Run Code Block 6 and wait for the message: Your Transcript is here: YOUR_FILE_NAME.mp3.txt.
  5. Click Refresh (if needed).
  6. Then, right-click on YOUR_FILE_NAME.mp3.txt.
  7. Finally, click Download to get your text file. image image

Notes

  • Ensure stable internet connectivity for smooth transcription.
  • For large files, transcriptions may take longer.
  • If you encounter errors, try restarting the runtime (Runtime > Restart runtime).

Happy Transcribing!

About

πŸŽ™οΈ Effortlessly transcribe YouTube videos, MP4, and MP3 files to text using Whisper on Google Colab β€” no setup required!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published