360 Secure SkillHub
360 安全技能中心

Byt Workflow

核心功能是实现YouTube视频翻译全自动化流程:自动下载视频音频、启动豆包翻译窗口、播放音频并捕获翻译字幕。典型场景为需将YouTube视频转为中/双语字幕的需求。输入为YouTube视频URL,可选翻译模式(默认双语文本);输出为含音频路径、翻译文件路径、视频时长的JSON结果,运行于Windows,需保持桌面可见。

banner90
banner90
热度 75.08
最近更新 2026-05-11 17:29:33
分类:自动化依赖:代码执行 / 读写文件 / MCP 服务应用场景:翻译 / 工作流 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add byt-workflow
Metadata
name
byt-workflow
description
YouTube video translation workflow, download audio, launch Doubao, play audio, capture translation
tools
["youtube_translate"]

Byt Workflow

Usage

python workflow.py <youtube_url> [mode]

Parameters

  • url (required): YouTube video URL
  • mode (optional): Translation mode (dual, single, chinese, bilingual), default: "dual"

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/...