English|繁體中文
Give it a text script and it produces a narrated 16:9 video with animated cards, chapters, a caption file, a thumbnail, titles and a description — ready to upload to YouTube. Write the script yourself or have any AI write it every day; this tool handles everything that happens after the script exists.
- Works for any topic. News digests, study notes, local shop updates, daily market recaps… A new topic is one config file plus one brief for your writer AI — no code changes.
- Runs for free. The default voice is the one built into macOS. No API keys needed.
- Everything else is optional and off by default: paid voices, fetching scripts from Google Drive, uploading to YouTube, Telegram notifications, scheduling.
Narration is built for Mandarin Chinese (numbers, dates and times are converted to spoken Chinese). The bundled themes, sample scripts, script messages and code comments are in Traditional Chinese. Other languages would need work in
tools/make_day.pyand are untested.
Each theme has its own channel name, stamp, colours, writer brief and sample script. Copy the closest one and edit it.
| Theme | In one line | Good for |
|---|---|---|
general (default) |
The most neutral layout, no topic baked in | A starting point for anything: news digests, announcements, reading notes, match reports |
tech-news |
A few news items a day + "worth watching / wait and see / mostly hype" stamps | Tech, AI or industry news — any "news + short take" format |
cafe-daily |
Warm palette + "go / maybe / skip" stamps | Cafés, food, travel, shopping and other lifestyle topics |
word-a-day |
One thing per episode + a difficulty stamp | Word of the day, question of the day, "on this day" and other learning formats |
us-stocks |
Pulls real closing prices and draws data cards, a trend chart and a ticker | Topics with daily numbers: stock markets, FX, crypto (nothing this theme produces is investment advice) |
Put a script.md in episodes/<date>/, run one command, and the same folder gains:
| File | What it is |
|---|---|
video.mp4 |
1920×1080 video: intro → animated sections → outro, normalised to −14 LUFS |
thumbnail.jpg |
1280×720 thumbnail |
titles.txt |
three title candidates (the first is used as the title) |
description.md |
description: AI disclosure line, summary, chapter timestamps, source links |
tags.txt, captions.srt |
tags and timed captions |
report.json |
duration, time per step, which voice was used |
If you use Claude Code, Codex or a similar assistant that can operate your computer, paste this:
Please download https://github.com/mickyyang-1407/daily-video to my computer, set it up following its AGENTS.md, and make the sample video for me. Then ask me what topic my channel is about and build a theme for it. Explain things in plain words, and do not upload anything or spend money for me.
It will install everything, make the first video, and ask what you want your channel to be about.
Open Terminal and paste these two lines:
git clone https://github.com/mickyyang-1407/daily-video.git && cd daily-video
./quickstart.shIt checks what your Mac is missing (and tells you the exact line to install it), then sets everything up, builds the sample video and opens it. About 3–5 minutes. Its messages are in Traditional Chinese.
The video lands at episodes/sample/video.mp4 (about a minute and a half).
Rerunning is safe: finished steps are skipped and your themes, scripts and config.json are left alone. The sample always uses the bundled general theme and the free built-in voice — even after you switch theme or voice, rerunning it never uses your settings or costs money.
For when you want to see every step, or you are not on a Mac. You need macOS, Python 3.10+, Node.js 18+ and ffmpeg (brew install ffmpeg node).
git clone https://github.com/mickyyang-1407/daily-video.git && cd daily-video
# 1. Python packages
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
# 2. Animation engine (Remotion). The first render downloads a headless browser automatically
(cd remotion && npm ci)
# 3. Fonts (optional): downloads Noto Sans CJK TC, about 68 MB. Without it the system CJK font is used
.venv/bin/python tools/get_fonts.py
# 4. Config: the example works as is
cp config.example.json config.json
# 5. Drop in a sample script and build (the folder name is the date shown in the video)
mkdir -p episodes/2026-11-13
cp themes/general/sample/script.md episodes/2026-11-13/
.venv/bin/python tools/make_day.py 2026-11-13When it prints 完成 {...} ("done"), the video is at episodes/2026-11-13/video.mp4 (roughly two minutes to build on an Apple Silicon Mac).
To try another bundled theme, set "theme" in config.json to any name from the table above, swap in that theme's sample/script.md, and run it again.
The default voice is "Meijia" (Taiwanese Mandarin). If it is missing, download a Chinese (Taiwan) voice in System Settings → Accessibility → Spoken Content → System Voice → Manage Voices,
or list what you have with say -v '?' and put the name in say.voice in config.json.
Not on macOS: set engine to edge in config.json (pip install edge-tts first — free online voices through an unofficial interface that may stop working), or use a paid engine. Linux and Windows have not been tested.
A theme is one folder, themes/<name>/:
| File | Purpose |
|---|---|
theme.json |
channel name, stamp text, taglines, section rules, fixed on-screen text, colours, how descriptions and tags are written |
PROMPT-for-writer.md |
the brief for your "writer AI": paste it in and it will write scripts in the right format |
sample/script.md |
a sample script |
Steps:
- Copy the closest theme from the table above:
cp -r themes/general themes/my-topic. - Edit
themes/my-topic/theme.json. The usual changes:name(same as the folder),channel,stamp(the seal stamped in the intro; 2–3 characters look best),tagline,badgetext: fixed on-screen lines (caption above the opening line, outro reminder, subscribe button, …)verdict: a line containing e.g.評價:推薦。becomes a coloured stamp;prefixis the lead word,optionsmaps each allowed word to a colour. Remove the block to turn stamps offpalette: colours.accentis the highlight colour,stampthe seal colouraccents(optional): a list of highlight colours that rotates daily. When present it overridespalette.accent, so a test render may not show the first colour; leave it out for one fixed colourintro_line: whether to draw a rising trend line under the channel name in the intro (true/false). By default only themes that fetch daily data draw itpublish: the AI-disclosure line that opens the description, hashtags, fixed tagssections: which heading keywords have special meaning (see "Script format")
- Edit
PROMPT-for-writer.mdso its headings and stamp words matchtheme.json. - Set
"theme": "my-topic"inconfig.jsonand runmake_day.pyon a sample script.
Every field is explained in the field guide in AGENTS.md.
# 每日重點|11/13 ← first line (the theme's script_head)
## 標題候選 ← contains "標題": three video titles, not narrated
- …
## 開場 ← first section = big opening line
…
## 今日重點 ← ordinary section: name it anything; items light up one by one
- one item per line
## 今日圖表 ← contains "圖表": bar/line chart from the points you give, not narrated
- 圖名:… (title)
- 類型:長條圖 (bar; 折線圖 = line)
- 單位:% (unit)
- 資料點: (points)
- label:number
- 來源:https://… (source)
## 我們怎麼看
### subtitle|source|date ← ### shows next to the section title and becomes a chapter
- 我們的看法:評價:推薦。… ← stamps the verdict
## 結尾 ← closing
## 來源 ← contains "來源/參考": links go into the description, not narrated
- https://…
## 不公開備註 ← contains "不公開": never narrated, shown, or publishedFor a weekly wrap-up, save the script as weekly.md and add --weekly; outputs get a -weekly suffix.
- Brief your writer AI (once). Open a chat AI that can browse the web (Claude, ChatGPT, Gemini, Grok…) and paste the whole
themes/<your-theme>/PROMPT-for-writer.mdinto it. - Each day, get the script. Ask it for the day's script and save the text as
episodes/<date>/script.md, with the date written like2026-11-13. The folder date is the one the program uses (shown on screen and on the thumbnail); the date in the script's first line is just text — keep them the same. - Build:
.venv/bin/python tools/make_day.py 2026-11-13 - Collect the results from the same folder:
video.mp4,thumbnail.jpg,titles.txt(first line = title),description.md,tags.txt,captions.srt, and upload them to YouTube yourself. - If you edit the script, run the same line again; only changed sentences are re-voiced.
For a hands-off setup (wait for the script on a schedule, build, upload, notify) see the optional features below.
This theme does one extra thing: it pulls real closing prices from Yahoo Finance via yfinance and draws data cards, a trend chart, a bottom ticker and per-item cards. Numbers in the script are only read aloud, never charted.
For another market (other exchanges, FX, crypto), copy themes/us-stocks and change data.tickers (Yahoo Finance symbols) and data.companies (name → symbol) in its theme.json.
Its sample script is written for 2026-11-13, so put it in episodes/2026-11-13/. Any other data source means editing market() in tools/make_day.py. Nothing this theme produces is investment advice.
Keys go in .env (cp env.example .env; it is git-ignored). Switches live in config.json.
| Feature | How to turn it on | What you need |
|---|---|---|
| Paid voices | set engine to breeze-api, minimax or gemini |
that provider's API key in .env. BreezeBlue also needs BREEZE_VOICE_ID (tools/breeze_voice.py can design a voice from a text description). fallback_engine names a backup engine |
| Auto-retake + listening check | whisper.enabled: true |
pip install openai-whisper pypinyin opencc-python-reimplemented. Each sentence is transcribed by Whisper and compared by pinyin; misread sentences are re-synthesised (<engine>.retakes), and the whole narration gets a score in report.json |
| Intro/outro sound | fill in jingle in config.json (see the top of tools/jingle.py) |
two audio files of your own in remotion/public/brand/. No audio ships with this repo; the intro and outro are silent by default |
| Scheduling | run tools/daily.py; example in examples/launchd/ |
it waits for the script (untouched for 60 s), builds, then uploads/notifies as configured. Past the deadline with no script it only notifies — it never writes a script itself |
| Fetch scripts from Google Drive | fetch.enabled: true |
either (a) the simple way: install Google Drive for desktop and point episodes_dir at the synced folder — no need for this feature; or (b) tools/drive_fetch.py, which needs a logged-in Claude Code CLI with the Google Drive connector enabled on claude.ai |
| Upload to YouTube | upload.enabled: true; upload.privacy defaults to private |
the official YouTube Data API: a Google Cloud project with an OAuth client, pip install google-api-python-client google-auth-oauthlib, then run tools/youtube_upload.py auth once. Steps and limits are at the top of tools/youtube_upload.py |
| Telegram notifications | notify.telegram: true |
create a bot with @BotFather, put TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID in .env |
| Channel avatar / banner / logo | command at the top of remotion/src/Brand.tsx |
renders channel art in the same style |
Google locks videos uploaded through an API project that has not passed its audit to private, so until then you upload as private and press Publish in YouTube Studio yourself. Uploads are always marked as "altered or synthetic content". To monetise AI-generated videos, the content needs your own analysis and viewpoint — not a translation or a read-out of someone else's work.
| Feature | Status |
|---|---|
Building a video (built-in say voice, one video from each of the five bundled themes, thumbnail, description, captions) |
✅ Tested |
One-command setup ./quickstart.sh |
✅ Tested: a fresh clone plus this one command produces the video; missing tools are listed with the install line |
Scheduler entry tools/daily.py, manual mode |
✅ Tested |
Free online voice edge |
✅ Tested: produces audio |
| Auto-retake + listening check (Whisper) | ✅ The listening check and the per-sentence check are tested; retakes are not (the built-in voice is deterministic, so they never trigger) |
| Falling back to the backup engine when the main one fails | ✅ Tested |
Fetching from Google Drive, tools/drive_fetch.py |
✅ Tested: fetched the day's script; a date with no script reports "not there yet" |
Paid voices breeze-api, minimax, gemini |
|
YouTube upload, tools/youtube_upload.py |
--dry-run checks the files and prints the title/description/tags it would send; missing files and missing authorisation give clear messages. No real upload has been made |
| Telegram notifications | NOTIFY_DRY_RUN=1 prints instead of sending. No real message has been sent |
Jingle generator tools/jingle.py, voice design tools/breeze_voice.py |
❌ Untested (need paid keys) |
| Linux, Windows | ❌ Untested |
Issues are welcome.
quickstart.sh one-command setup + sample video
AGENTS.md instructions for AI coding agents (includes the theme field guide)
tools/make_day.py script → video (main program)
tools/tts.py voice engines (add new ones here)
tools/daily.py scheduler entry: wait for script → build → upload → notify
tools/… everything else is optional; each file starts with usage notes
remotion/src/Video.tsx the animation template (React)
themes/ themes
episodes/<date>/ your scripts and outputs (git-ignored)
work/ scratch: per-sentence voice cache, render data (git-ignored, safe to delete)
- Does re-running re-synthesise everything? No. Sentences are cached; only changed ones are redone.
- Rendering is slow. Set
render.concurrencyinconfig.json(by default Remotion decides). - I want burned-in subtitles.
burn_subtitles: true. By default captions go tocaptions.srtfor YouTube CC. - The colour is not the one I set. If the theme has
accents, the highlight colour rotates daily; removeaccentsand keep onlypalette.accentfor a fixed colour.
- This project's code, themes and sample scripts are released under the MIT License.
- Remotion has its own license: free for individuals and small teams, a company license is required for larger for-profit organisations. Read its terms before use.
- Noto Sans CJK is under the SIL Open Font License 1.1;
tools/get_fonts.pydownloads it from the official repository and it is not redistributed here. - The
us-stockstheme's data comes from Yahoo Finance via yfinance and is subject to Yahoo's terms. - Whether TTS output may be used commercially, and what attribution it needs, depends on each provider's terms.