Giter Club home page Giter Club logo

youtube-transcriber's Introduction

YT2Text: YouTube Transcriber

This tool allows you to transcribe YouTube videos. It uses OpenAI's Whisper model for transcription.

Features

  • Download audio from YouTube videos
  • Transcribe audio using OpenAI's Whisper model
  • Save transcriptions to a text file
  • Secure storage of OpenAI API key

Prerequisites

  • Python 3.7 or higher
  • pip (Python package installer)

Installation

  1. Clone this repository:

    git clone https://github.com/yourusername/yt2text.git
    cd yt2text
    
  2. Create a virtual environment:

    python -m venv venv
    
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
      
    • On macOS and Linux:
      source venv/bin/activate
      
  4. Install the required packages:

    pip install -r requirements.txt
    

Usage

  1. Run the script:

    python youtube_transcriber.py
    
  2. Follow the prompts to:

    • Enter your OpenAI API key (only required on first run)
    • Provide a YouTube video URL
    • Specify the output file name for the transcription
  3. The script will download the audio, transcribe it, and save the transcription to a file.

Notes

  • The OpenAI API key is stored securely in your home directory.
  • Temporary audio files are automatically cleaned up after processing.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Copyright (c) 2024 PierrunoYT

youtube-transcriber's People

Watchers

 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.