Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swimburger/transcribe-youtube-video
https://github.com/swimburger/transcribe-youtube-video
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/swimburger/transcribe-youtube-video
- Owner: Swimburger
- Created: 2024-06-21T12:56:26.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-21T20:55:02.000Z (5 months ago)
- Last Synced: 2024-06-22T12:33:11.328Z (5 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Transcribe and subtitle YouTube videos
This sample shows how you can transcribe YouTube videos and generate subtitles for the video.
Additionally, the sample shows how you can prompt the YouTube video using LeMUR.For step-by-step instructions on how to build this sample yourself, see [Transcribe and subtitle YouTube videos with Node.js](https://www.assemblyai.com/blog/transcribe-youtube-nodejs).
To run the sample, you'll need the following:
- [Node.js](https://nodejs.org/)
- [Python 3.7](https://www.python.org/downloads/) or above on your system as `python3`
- An AssemblyAI account with a credit card set upClone or download the sample, then install the dependencies:
```bash
npm install
```Configure the `ASSEMBLYAI_API_KEY` environment variable in your shell, or create a `.env` file with the following contents and replace `[YOUR_ASSEMBLYAI_API_KEY]` with your API key:
```plaintext
ASSEMBLYAI_API_KEY=[YOUR_ASSEMBLYAI_API_KEY]
```Run the sample:
```bash
npm run start
```