https://github.com/assemblyai-community/transcribe-youtube-nodejs
Transcribe YouTube videos and generate SRT subtitles with Node.js and AssemblyAI.
https://github.com/assemblyai-community/transcribe-youtube-nodejs
Last synced: 2 months ago
JSON representation
Transcribe YouTube videos and generate SRT subtitles with Node.js and AssemblyAI.
- Host: GitHub
- URL: https://github.com/assemblyai-community/transcribe-youtube-nodejs
- Owner: AssemblyAI-Community
- Created: 2024-06-24T10:10:21.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T17:22:57.000Z (about 2 years ago)
- Last Synced: 2025-12-31T19:27:15.578Z (6 months ago)
- Language: JavaScript
- Homepage: https://www.assemblyai.com/blog/transcribe-youtube-nodejs
- Size: 18.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 up
Clone 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
```