Giter Site home page Giter Site logo

devilsnerve / ai-transcribe-mp4 Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 5 KB

Automate audio-to-text transcription with Python. This tool downloads videos, extracts audio, transcribes using OpenAI's Whisper, and outputs PDFs. Features multithreading for efficiency.

Python 100.00%

ai-transcribe-mp4's Introduction


Audio to Text Transcription Tool

Overview

This tool is designed to automate the process of converting audio from a video into a text transcription. It downloads a video, extracts the audio, splits the audio into manageable segments, transcribes each segment using OpenAI's Whisper model, and compiles the transcriptions into a single PDF file.

Requirements

  • Python 3.x
  • requests
  • pydub
  • moviepy
  • FPDF
  • tqdm
  • whisper
  • concurrent.futures
  • multiprocessing
  • reportlab

Installation

Before running the script, ensure you have Python installed on your machine and then install the required packages using pip:

pip install requests pydub moviepy fpdf tqdm whisper reportlab

Usage

To use the tool, follow these steps:

  1. Ensure ffmpeg.exe is accessible in your system's PATH.
  2. Modify the video_url variable in the script to point to the video you want to transcribe.
  3. Run the script using Python.

Example

Here's an example of how to run the script:

python transcription_tool.py

The script performs the following steps:

  1. Downloads the video from the specified URL.
  2. Extracts the audio from the downloaded video.
  3. Splits the audio into segments and saves them in a directory.
  4. Transcribes each audio segment using Whisper and saves the transcriptions.
  5. Compiles all transcriptions into a PDF file.

Notes

  • The script uses OpenAI's Whisper model for transcription, which requires a good internet connection for model downloading.
  • The script currently saves the transcribed segments in a folder named 'transcriptions'.

ai-transcribe-mp4's People

Contributors

devilsnerve avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.