🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

Banner Youtube Translate Workflow

by @banner90

Automates downloading YouTube audio, launching Doubao, playing audio, and capturing translations for full video subtitle extraction.

Versionv1.0.3
Downloads751
Installs2
Stars⭐ 1
TERMINAL
clawhub install banner-youtube-translate-workflow

πŸ“– About This Skill


name: banner-youtube-translate-workflow description: Complete workflow: download YouTube audio, launch Doubao, play audio, capture translation. Activates when user needs full video translation. tools: - youtube_translate

Banner Youtube Translate Workflow

Usage

python workflow.py  [mode]

Parameters

  • url (required): YouTube video URL
  • mode (optional): Translation mode (双语, 单语, ζ±‰θ―­ζ–‡ζœ¬, εŒθ―­ζ–‡ζœ¬), default: "双语"
  • Workflow Steps

    1. Download YouTube audio - Uses youtube-audio-download skill 2. Launch Doubao - Uses doubao-launch skill 3. Play audio - Uses audio-play skill 4. Capture translation - Uses doubao-capture skill

    Returns

    {
      "success": true,
      "audio_path": "H:/works/audio/video_title-xxxxx.mp3",
      "translation_path": "H:/works/translations/doubao_20240307_143022.txt",
      "duration": 1200
    }
    

    Tools

    youtube_translate

    Complete YouTube video translation workflow

    Workflow Integration

    This skill is part of the YouTube translation workflow: 1. youtube-audio-download: Download audio from YouTube 2. doubao-launch: Launch Doubao translation window 3. audio-play: Play the downloaded audio 4. doubao-capture: Capture translated subtitles

    Execution

    All skills execute on Windows Python via WSL cross-platform call:

    wsl -> python.exe scripts/workflow.py ...
    

    Error Handling

    All skills return JSON with success field:

  • success: true - Operation completed
  • success: false - Check error_code and error_message
  • Notes

  • Windows GUI automation requires visible desktop (no RDP disconnect)
  • Output files are stored in Windows works/ directory
  • WSL accesses Windows files via /mnt/h/...
  • πŸ’‘ Examples

    python workflow.py  [mode]
    

    πŸ“‹ Tips & Best Practices

  • Windows GUI automation requires visible desktop (no RDP disconnect)
  • Output files are stored in Windows works/ directory
  • WSL accesses Windows files via /mnt/h/...