Files
vrsub/workflows/demo.json
T

79 lines
1.6 KiB
JSON

{
"id": "demo",
"name": "视频字幕生成",
"description": "上传视频,自动生成中文字幕和 VR 双眼 ASS。",
"version": 1,
"definition": {
"name": "视频字幕生成",
"version": 1,
"nodes": [
{
"id": "extract",
"node_type": "ffmpeg-extract",
"params": {
"sample_rate": 16000,
"channels": 1
},
"inputs": {
"video_uri": "input.video_uri"
}
},
{
"id": "asr",
"node_type": "faster-whisper",
"params": {
"language": "ja",
"model_path": "faster-whisper-large-v2",
"condition_on_previous_text": false,
"chunk_seconds": 60,
"vad_filter": true
},
"inputs": {
"audio_uri": "extract.audio_uri"
}
},
{
"id": "translate",
"node_type": "llm-translate",
"params": {
"target_language": "zh-CN"
},
"inputs": {
"srt_uri": "asr.srt_uri"
}
},
{
"id": "ass",
"node_type": "srt-to-dual-eye-ass",
"params": {
"resolution": "3840x1920"
},
"inputs": {
"cn_srt_uri": "translate.cn_srt_uri"
}
}
],
"edges": [
{
"from": "extract",
"to": "asr"
},
{
"from": "asr",
"to": "translate"
},
{
"from": "translate",
"to": "ass"
}
],
"entry_inputs": {
"video_uri": "file"
},
"final_outputs": {
"cn_srt": "translate.cn_srt_uri",
"ass": "ass.ass_uri"
}
}
}