YouTube 字幕產生器 - 自動轉錄逐字稿與多語言翻譯
by futurizerush
Automatically transcribe any YouTube video and translate the text. Generate SRT files, searchable transcripts, and multilingual subtitles using AI.
Opens on Apify.com
About YouTube 字幕產生器 - 自動轉錄逐字稿與多語言翻譯
Need a transcript or subtitles for a YouTube video that doesn't have them? This actor is your fix. It taps into OpenAI's Whisper model to listen to the audio and generate an accurate transcript or subtitle file (SRT/VTT). What's really handy is the translation feature—it can take that transcript and convert it into multiple languages, which is perfect for making your content accessible to a global audience. I use it for a few key things: creating searchable text archives of lectures or meetings, generating subtitles for my own videos to boost SEO and accessibility, and quickly understanding foreign-language content by translating it. You get the output in clean, usable formats like JSON, CSV, or plain text, ready to plug into your project. A quick tip: it works best on videos that don't already have official captions, as those are usually more accurate. It's a straightforward, reliable way to get text from speech when you need it.
What does this actor do?
YouTube 字幕產生器 - 自動轉錄逐字稿與多語言翻譯 is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
YouTube Subtitle Generator
An Apify actor that automatically transcribes YouTube videos and translates the subtitles using OpenAI's AI models. It's designed for on-demand use, not automated workflows, due to YouTube's cookie restrictions.
Overview
This actor takes a YouTube video URL, uses OpenAI's Whisper model for speech recognition, and can translate the transcript into over 15 languages using GPT-4o. The primary output is subtitle files (SRT) and structured text data. A key limitation is that YouTube cookies expire within minutes, so each run requires fresh cookies, making it unsuitable for scheduled tasks.
Key Features
- Automatic Transcription: Uses OpenAI's AI for speech-to-text.
- Translation: Translates transcripts to multiple languages using GPT-4o.
- Batch Processing: Generates a result every 2 minutes of video for efficient processing.
- Multiple Output Formats: SRT subtitle files, plain text (TXT), and structured JSON data.
- Video Metadata: Extracts full video info like title, channel, and view count.
- Language Support: Auto-detects source language. Supports translation to English, Traditional/Simplified Chinese, Japanese, Korean, Spanish, French, German, Italian, Portuguese, Russian, Arabic, Hindi, Thai, and Vietnamese.
How to Use
1. Get YouTube Cookies (Required for Every Run)
Cookies expire quickly and must be manually provided each time.
1. Install the Chrome extension Get cookies.txt LOCALLY.
2. Log into YouTube in your browser and navigate to a video page.
3. Click the extension icon and select "Export as Netscape".
4. Copy the entire text content. This is your youtubeCookies input.
2. Run the Actor
- Go to the actor on Apify Console (search for "YouTube Subtitle Generator").
- Configure the input:
videoUrl: The YouTube video URL.openaiApiKey: Your valid OpenAI API key.youtubeCookies: The freshly exported Netscape-format cookies.- (Optional) Set
sourceLanguage,targetLanguage, orgptModel.
- Click "Start".
Input Parameters
Required
| Parameter | Description |
|---|---|
videoUrl |
The full URL of the YouTube video. |
openaiApiKey |
Your OpenAI API key. |
youtubeCookies |
YouTube cookies in Netscape format. Must be recent. |
Optional
| Parameter | Default | Description |
|---|---|---|
sourceLanguage |
auto |
Source language for transcription (auto-detected). |
targetLanguage |
zh-TW |
Target language for translation. |
gptModel |
gpt-4o |
GPT model used for translation. |
Output
The actor produces results in batches (every ~2 minutes of video) and a final dataset.
Final outputs include:
* SRT files: Subtitles in both the original and translated languages.
* TXT file: Plain text transcript.
* JSON: Structured data containing the full transcript segments, translations, and video metadata.
* Metadata: Complete video information (title, channel, views, etc.).
* Statistics: Processing stats.
Important Notes & Troubleshooting
️ Critical: YouTube Cookie Limitation
- Cookies expire in minutes. You need new ones for every execution.
- This actor is not suitable for automation or scheduling. It's for manual, on-demand use.
- Always use the Netscape format (text starting with
# Netscape HTTP Cookie File).
Best Practices
- Test with shorter videos (under 30 minutes is recommended).
- Ensure a stable network connection.
- Check your OpenAI API quota before processing long videos.
Common Issues
- Video won't download? Confirm your
youtubeCookiesare fresh and the video is publicly available. - No transcription output? Verify your
openaiApiKeyis valid and has not reached its usage limits. - Translation not working? Ensure
sourceLanguageandtargetLanguageare different and you have access to thegpt-4omodel.
Pricing
Apify charges based on the number of results in the dataset. For example:
* 2-minute video: ~2 results
* 10-minute video: ~6 results
* 30-minute video: ~16 results
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try YouTube 字幕產生器 - 自動轉錄逐字稿與多語言翻譯 now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- futurizerush
- Pricing
- Paid
- Total Runs
- 4
- Active Users
- 2
Related Actors
TikTok Scraper
by clockworks
TikTok Data Extractor
by clockworks
Fast TikTok API (free-watermark videos)
by novi
YouTube Scraper
by streamers
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support