SunnySurge Video Factory v7.4
⏳ Detecting encoder…
📋課程輸入
⚙️製作設定
🎬製作隊列
🔑API 設定
ℹ️使用說明

課程輸入

上傳完整課程 .txt → 系統自動拆 topics → AI 生成 PPT + 演講稿 (可 edit)
Step 1 · 上傳 Course .txt
📂
拖放 .txt 檔案到呢度,或撳 button 揀檔案
未揀檔案
▸ 或者貼 text 內容 (advanced)

製作設定

揀語言、聲線、template,然後加入製作隊列
演講稿語言 (已喺「課程輸入」揀)
當前選擇: 廣東話 + 英文術語 (要改就返「課程輸入」tab 揀,要重新生成 narration)
Voice Selection
選擇聲線 Azure Neural TTS
語速 0.8 = 慢 / 1.0 = 正常 / 1.2 = 快
PPT Template
Output Settings
Course code 用嚟做 filename prefix
Video resolution 1080p 推薦 (Full HD)
Frame rate 24 fps 對 lecture 已經 smooth

製作隊列

逐個 topic run pipeline: slides → narration → TTS → frames → mp4
Queue Total
0
Done
0
In Progress
0
Failed
0
📭

隊列係空嘅

返去「課程輸入」揀 topics,再喺「製作設定」加入隊列

Pipeline Log
[init]等待開始...

API 設定

API keys 儲喺你 browser localStorage,唔會傳去任何 server
Anthropic Claude API
API Key sk-ant-...
Model Sonnet 4.6 推薦 (cost-balanced)
console.anthropic.com 攞 API key。
⚠️ 2026年4月14日後,舊 model 「claude-sonnet-4-20250514」已 deprecated,不能再用
Azure Speech (TTS)
Subscription Key 32 字 hex string
Region e.g. eastasia, southeastasia
Pricing Tier F0=free, S0=paid
portal.azure.com 建立「Speech Service」resource,喺 Keys and Endpoint 攞 Key 1 或 Key 2。
F0 free tier 嘅 limit: 500K chars/month + 20 req/min — 自動 throttle 3.3秒/call。

使用說明

SunnySurge Video Factory v7.4 — 將 v7.3 完整課程轉化為 AI 教學視頻
Pipeline 流程 (2 stages)
  1. 📋 課程輸入 (Content Generation): 上傳 .txt → parse topics → AI 生成 PPT + 演講稿 → preview & edit → 自動 save 到 LocalStorage
  2. ⚙️ 製作設定: 揀已生成 topics + voice + template,加入隊列
  3. 🎬 製作隊列 (Video Production): 開始 → TTS + Canvas + MediaRecorder → 下載 .mp4
內容生成 Stage (課程輸入)
  1. Parse topic content (lecture + 7 questions)
  2. Claude 生成 slide structure (JSON) — ~30 slides per topic
  3. Claude 生成 per-slide 演講稿 (with examples, question analysis, tutor tone)
  4. User review & edit narration in preview accordion
  5. Auto-save to LocalStorage (survives browser close)
視頻製作 Stage (製作隊列)
  1. Azure TTS 生成 audio per scene (用 reviewed 演講稿)
  2. Canvas 渲染 slide frames (每個 scene 一張 PNG)
  3. MediaRecorder API 合成 mp4 (canvas + audio + 字幕 burn-in, hardware-accelerated)
  4. 自動下載 .mp4 (Mac/Chrome/Safari) 或 .webm fallback
Multi-Tab Parallel Rendering

你可以開 2-3 個 browser tab 同時跑唔同 topic batch。建議分配方式:

  • Tab 1: A1-A7 + B1-B7
  • Tab 2: C1-C7 + D1-D7
  • Tab 3: E1-E7 + F1-G + H

⚠️ 你部 MacBook Air M4 建議最多 2 tabs 同時 (thermal throttle 限制)

Cost Estimate

Per topic (~20 min video):
• Claude API (script gen): ~$0.30-0.50 USD
• Azure TTS: ~$0.05 USD
• Render: $0 (browser local)
Per topic total: ~$0.35-0.55 USD (HK$2.7-4.3)

42 topics 一個 course: ~$15-23 USD (HK$117-180)