Specify the youtube url to download the audio of the target video and do the following
- Transcription in English
- Translate English to Japanese
- Summarize in English
- Summarize in Japanese
- Summarize in Japanese in chapters
GPU use is recommended due to the large-v3 model of faster-whisper.
cp .env.example .env
replace your openai api key
OPENAI_API_KEY="replace your own openai api key"
build container
docker build
login container
docker compsoe up -d
docker compsoe exec tube-translator bash
example
python main.py "youtube_url" --output "output_path" --chunk_size 30