An open API service indexing awesome lists of open source software.

https://github.com/muavia1/youtubescript


https://github.com/muavia1/youtubescript

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# YouTubeScript ๐ŸŽ™๏ธ

## ๐Ÿ“– Project Description
YouTubeScript is a simple and efficient application that allows users to transcribe YouTube videos or uploaded audio files into text. It supports both original language transcription and language translation with subtitle files in `.vtt` format.

## ๐Ÿš€ Features
- ๐ŸŽฅ Transcribe YouTube videos via URL
- ๐ŸŽ™๏ธ Transcribe uploaded audio files
- ๐ŸŒ Translate transcriptions to multiple languages
- ๐Ÿ“ Generate `.vtt` subtitle files
- ๐Ÿง  Summarize transcriptions using a language model
- ๐Ÿงน Easy interface with clear fields for repeated use

## โš™๏ธ Installation

1. **Clone the Repository**
```bash
git clone https://github.com/yourusername/YouTubeScript.git
cd YouTubeScript
```

2. **Install Dependencies**
```bash
pip install -r requirements.txt
```

3. **Install ffmpeg** (Required for Whisper)
- Linux: `sudo apt install ffmpeg`
- Windows: [Download here](https://ffmpeg.org/download.html)

## ๐Ÿ› ๏ธ Required Packages
- `gradio`
- `openai-whisper`
- `transformers`
- `yt-dlp`

## ๐Ÿš€ Usage

Run the application with:
```bash
python app.py
```

## ๐ŸŽฏ How to Use
1. Select input type: YouTube video or audio file.
2. Provide the YouTube link or upload an audio file.
3. Choose the mode: Original or Translate.
4. Select a language if translating.
5. Click **Get YouTubeScript ๐Ÿช„**.
6. View the transcription summary and download the `.vtt` file.
7. Click **Clear Fields ๐Ÿงน** to reset the interface.

## ๐Ÿ“‚ Project Structure
```bash
.
โ”œโ”€โ”€ app.py # Main application code
โ”œโ”€โ”€ requirements.txt # Dependency file
โ”œโ”€โ”€ README.md # Project documentation
โ””โ”€โ”€ sub.vtt # Generated subtitle file
```

## ๐Ÿงช Sample Commands
- To transcribe a YouTube video:
- Provide the URL and click **Get YouTubeScript ๐Ÿช„**.
- To transcribe an uploaded file:
- Upload an audio file and follow the same steps.

## โš ๏ธ Troubleshooting
- **No transcription or empty subtitles**: Make sure `ffmpeg` is installed.
- **Failed YouTube download**: Confirm `yt-dlp` installation.

Happy Transcribing! ๐ŸŽง