Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Tutorial: sound chapters, separate-tracks / replace-music / replace-voice how-tos, first-time...
Bowen Xue7f0888cdaefb
diff --git a/MANIFEST.in b/MANIFEST.inindex f4dd048..f24d339 100644--- a/MANIFEST.in+++ b/MANIFEST.in@@ -74,5 +74,13 @@ include web/assets/tour/c12-s1.mp4include web/assets/tour/c12-s1.webpinclude web/assets/tour/c13-s1.mp4include web/assets/tour/c13-s1.webp+include web/assets/tour/cb-ambience.mp4+include web/assets/tour/cb-ambience.webp+include web/assets/tour/cb-dialogue.mp4+include web/assets/tour/cb-dialogue.webp+include web/assets/tour/cb-music.mp4+include web/assets/tour/cb-music.webp+include web/assets/tour/cb-source.mp4+include web/assets/tour/cb-source.webpinclude web/assets/tour/c10-source.webpinclude web/assets/tour/fox-sheet.webpdiff --git a/freevideo_source_bootstrap.py b/freevideo_source_bootstrap.pyindex 0a5cd05..2cfd06a 100644--- a/freevideo_source_bootstrap.py+++ b/freevideo_source_bootstrap.py@@ -111,6 +111,14 @@ TOUR_FILES = frozenset(('web/assets/tour/c12-s1.webp','web/assets/tour/c13-s1.mp4','web/assets/tour/c13-s1.webp',+ 'web/assets/tour/cb-ambience.mp4',+ 'web/assets/tour/cb-ambience.webp',+ 'web/assets/tour/cb-dialogue.mp4',+ 'web/assets/tour/cb-dialogue.webp',+ 'web/assets/tour/cb-music.mp4',+ 'web/assets/tour/cb-music.webp',+ 'web/assets/tour/cb-source.mp4',+ 'web/assets/tour/cb-source.webp','web/assets/tour/c10-source.webp','web/assets/tour/fox-sheet.webp',))diff --git a/web/assets/tour/cb-ambience.mp4 b/web/assets/tour/cb-ambience.mp4new file mode 100644index 0000000..6550178Binary files /dev/null and b/web/assets/tour/cb-ambience.mp4 differdiff --git a/web/assets/tour/cb-ambience.webp b/web/assets/tour/cb-ambience.webpnew file mode 100644index 0000000..ab466b0Binary files /dev/null and b/web/assets/tour/cb-ambience.webp differdiff --git a/web/assets/tour/cb-dialogue.mp4 b/web/assets/tour/cb-dialogue.mp4new file mode 100644index 0000000..0aefa22Binary files /dev/null and b/web/assets/tour/cb-dialogue.mp4 differdiff --git a/web/assets/tour/cb-dialogue.webp b/web/assets/tour/cb-dialogue.webpnew file mode 100644index 0000000..a310338Binary files /dev/null and b/web/assets/tour/cb-dialogue.webp differdiff --git a/web/assets/tour/cb-music.mp4 b/web/assets/tour/cb-music.mp4new file mode 100644index 0000000..4388dc3Binary files /dev/null and b/web/assets/tour/cb-music.mp4 differdiff --git a/web/assets/tour/cb-music.webp b/web/assets/tour/cb-music.webpnew file mode 100644index 0000000..9098c23Binary files /dev/null and b/web/assets/tour/cb-music.webp differdiff --git a/web/assets/tour/cb-source.mp4 b/web/assets/tour/cb-source.mp4new file mode 100644index 0000000..bd70a79Binary files /dev/null and b/web/assets/tour/cb-source.mp4 differdiff --git a/web/assets/tour/cb-source.webp b/web/assets/tour/cb-source.webpnew file mode 100644index 0000000..72558e3Binary files /dev/null and b/web/assets/tour/cb-source.webp differdiff --git a/web/editor_stems.js b/web/editor_stems.jsindex b99facc..f93d9a9 100644--- a/web/editor_stems.js+++ b/web/editor_stems.js@@ -2,6 +2,7 @@ import * as model from './editor_model.js';import {registerMenuItem} from './editor_menu.js';import {agentGet, agentPost, retryAgentPost} from './agent_session.js';import {sourceKey} from './editor_store.js';+import {showSoundBubble, markSoundBubbleSeen, isBubbleRemover} from './sound_bubble.js';const ROOT = '/freevideo/agent/v1';const ACTIVE = ['waiting', 'queued', 'running', 'cancelling'];@@ -59,14 +60,19 @@ export function createStemsIntegration({state, api, queue, store, t, error, noti.flatMap(track => track.clips.filter(clip => selection.ids.includes(clip.id)).map(clip => ({clip, track})));return sound.length === 1 && !!sound[0].clip.source && sound[0].clip.stem_of === undefined ? sound[0] : null;};- let button = null, holder = null;+ let button = null, holder = null, hideBubble = () => {};const sync = () => {if (!button) return;const found = available && target();button.hidden = holder.hidden = !found;- if (!found) return;+ if (!found) { hideBubble(); return; }const {clip, track} = found;button.disabled = !!running || !!clip.pending || track.locked || children(state.record, clip.id).length > 0;+ if (!button.disabled) {+ // A bubble that is already up returns nothing to remove; keep the remover that owns it.+ const remove = showSoundBubble(button, {cn: t('', 'zh') === 'zh'});+ if (isBubbleRemover(remove)) hideBubble = remove;+ }};// The entries exist only where the engine offers the separation, so other computers keep the menu they had.let stops = [];@@ -109,7 +115,7 @@ export function createStemsIntegration({state, api, queue, store, t, error, noti}async function separate(clipId) {if (running) { notify(t('A sound is already being separated.', '正在分离另一段声音。')); return false; }- const tool = running = {cancelled: false, job: null}; sync();+ const tool = running = {cancelled: false, job: null}; markSoundBubbleSeen(); sync();try {if (!await ready()) return false;const project = state.record.id, ref = globalThis.crypto?.randomUUID?.() || `${Date.now()}-${Math.random()}`;@@ -164,5 +170,5 @@ export function createStemsIntegration({state, api, queue, store, t, error, noti} catch (value) { say(value, 'stems_failed'); return false; }}return {separate, cancel, exportStems, active: () => !!running,- dispose() { disposed = true; stops.forEach(stop => stop()); stops = []; unsubscribe?.(); holder?.remove(); button = holder = null; }};+ dispose() { disposed = true; hideBubble(); stops.forEach(stop => stop()); stops = []; unsubscribe?.(); holder?.remove(); button = holder = null; }};}diff --git a/web/feature_tour.css b/web/feature_tour.cssindex c586682..83a5190 100644--- a/web/feature_tour.css+++ b/web/feature_tour.css@@ -45,3 +45,11 @@.fv-tour-close::after{transform:rotate(-45deg)}.fv-tour-book{background:none;border:0;padding:6px 4px;color:inherit;font:inherit;text-decoration:underline;opacity:.75;cursor:pointer;flex:none;margin-right:auto;margin-left:12px}.fv-tour-book:hover,.fv-tour-book:focus-visible{opacity:1}@media (max-width:680px){.fv-tour-book{margin:0;align-self:center}}+.fv-tour-segments{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}+.fv-feature-tour .fv-tour-segment{flex:1;min-width:0;padding:6px 10px}+.fv-feature-tour .fv-tour-segment[aria-pressed=true]{background:var(--fv-accent);color:var(--fv-bg);border-color:var(--fv-accent);font-weight:600}+@media(max-width:680px){+.fv-tour-dots{flex-wrap:nowrap;gap:2px}+.fv-feature-tour .fv-tour-dot{flex:0 1 20px;width:20px;min-width:0}+.fv-tour-dot::after{inset:10px 6px}+}diff --git a/web/feature_tour.js b/web/feature_tour.jsindex cf65dce..a2c57a2 100644--- a/web/feature_tour.js+++ b/web/feature_tour.js@@ -8,7 +8,7 @@ export const TOUR_TEXT = {};// The chapter of the tutorial book that teaches the same thing as the card.const BOOK_CHAPTER = {'first-video': 'quick-start', 'text-to-video': 'text-to-video', 'first-last-frame': 'first-last-frame', 'quality-tiers': 'quality-tiers',- 'reference-image': 'reference-video', 'replace-person': 'replace-person', character: 'cast-sheet', 'edit-view': 'editor', extend: 'extend-video', 'two-pass': 'refine', autopilot: 'autopilot'};+ 'reference-image': 'reference-video', 'replace-person': 'replace-person', character: 'cast-sheet', 'edit-view': 'editor', 'separate-sound': 'separate-tracks', extend: 'extend-video', 'two-pass': 'refine', autopilot: 'autopilot'};const asset = name => new URL(`./assets/tour/${name}`, import.meta.url).href;const el = (tag, cls, text) => { const node = document.createElement(tag); if (cls) node.className = cls; if (text != null) node.textContent = text; return node; };const contexts = new Map();@@ -149,11 +149,25 @@ export async function openFeatureTour({api = contextFor()?.api, cn = contextFor(videos[0].onended = () => { for (const video of playing) video.currentTime = 0; play(); };for (const video of videos) video.loop = false;} else if (card.sequence) {+ // The four versions play in turn without sound. A choice plays that one version, with sound, until another is chosen.+ const picker = el('div', 'fv-tour-segments'), segments = [];+ picker.setAttribute('role', 'group');+ const show = (i, chosen) => {+ stop();+ videos.forEach((video, j) => { video.hidden = j !== i; segments[j]?.setAttribute('aria-pressed', String(j === i)); if (j !== i) video.muted = true; });+ const video = videos[i]; video.currentTime = 0; video.muted = !chosen; video.loop = chosen; playing = [video]; play();+ };videos.forEach((video, i) => {- video.hidden = i !== 0; media(video); video.loop = false;- video.onended = () => { video.hidden = true; const next = videos[(i + 1) % videos.length]; next.hidden = false; next.currentTime = 0; playing = [next]; next.play().catch(() => {}); };+ media(video); video.loop = false;+ video.onended = () => show((i + 1) % videos.length, false);output.append(video);+ const label = card.sequence[i].label;+ if (!label) return;+ const segment = el('button', 'fv-tour-segment', label[lang]); segment.type = 'button';+ segment.onclick = () => show(i, true); segments[i] = segment; picker.append(segment);});+ if (segments.length) output.append(picker);+ videos.forEach((video, i) => { video.hidden = i !== 0; segments[i]?.setAttribute('aria-pressed', String(i === 0)); });playing = [videos[0]];} else output.append(media(videos[0], card.previewRange));pair.append(input, arrow, output); content.append(pair);diff --git a/web/feature_tour_content.js b/web/feature_tour_content.jsindex d0e5a14..5b45ccf 100644--- a/web/feature_tour_content.js+++ b/web/feature_tour_content.js@@ -24,6 +24,9 @@ export const FEATURE_TOUR = [[{text: copy('@Leo walks along the shore.', '@小林 走在海边。')}], clip('c12-s1'), {status: 'pending-assets'}, {trigger: 'media', added: '0.5.0', goto: ['cast-add', 'prompt-box']}),card('edit-view', copy('Edit view', '剪辑视图'), copy('Arrange clips on the timeline and adjust picture, sound and speed.', '在时间线上排列片段,调整画面、声音和速度。'),[{src: 'c12-s1.webp'}], clip('c13-s1'), {status: 'pending-assets', view: 'editor'}, {trigger: 'editor', added: '0.5.0', goto: ['editor-timeline', 'editor-inspector']}),+ card('separate-sound', copy('Separate and replace sound', '分离与替换声音'), copy('Split the sound into dialogue, music and ambience, then replace each one.', '把声音分成人声、音乐和环境声,再分别替换。'),+ [{src: 'cb-source.webp'}], clip('cb-source'), {status: 'pending-assets', view: 'editor'},+ {trigger: 'editor', added: '0.5.0', goto: ['audio-track-button'], sequence: [['source', 'Original', '原声'], ['dialogue', 'Dialogue', '人声'], ['music', 'Music', '音乐'], ['ambience', 'Ambience', '环境声']].map(([name, en, zh]) => ({...clip(`cb-${name}`), label: copy(en, zh)}))}),card('extend', copy('Extend', '接着生成'), copy('Continue from where the last clip ends.', '从上一段的结尾接着生成下一段。'),[{src: 'c6-s1.webp'}], clip('c6-s1'), {status: 'pending-assets', view: 'editor'}, {trigger: 'editor', previewRange: [2, 8]}),card('two-pass', copy('Two-pass', '二次采样'), copy('The first pass sets the composition; the second adds detail.', '第一遍定构图,第二遍补细节。'),diff --git a/web/health.js b/web/health.jsindex cbb9bec..69cd316 100644--- a/web/health.js+++ b/web/health.js@@ -19,7 +19,7 @@ export const MODULES = ['audio_original.js', 'chat_data.js', 'phone_model.js', ''progress_connection.js', 'prompt_draft.js', 'prompt_enhance.js', 'prompt_references.js', 'prompt_sections.js', 'prompt_terms.js', 'request_assets.js', 'repair_hint.js', 'report_issue.js', 'issue_button.js', 'studio_recent.js', 'task_groups.js','result_actions.js', 'result_reuse.js', 'sampling_effort.js', 'pass_mode.js','setup.js', 'share.js', 'share_layout.js', 'studio.js', 'studio_chain.js', 'studio_extend.js', 'studio_length.js', 'first_frame_row.js', 'replace_person.js', 'replace_state.js', 'optional_inputs.js', 'other_usage.js', 'studio_queue.js', 'studio_size.js','toolbar_position.js', 'updates.js', 'view_navigation.js', 'whatsnew.js', 'wordmark.js', 'workspace_restore.js', 'cast_library.js', 'media_upload.js', 'whitebox_encode.js', 'whitebox_mp4.js', 'whitebox_recording.js', 'whitebox_render.js', 'whitebox_scenes.js', 'whitebox_worker.js',- 'empty_prompt_notice.js', 'feature_tour.js', 'feature_tour_content.js', 'howto.js', 'swap_lora.js', 'tour_goto.js', 'tour_try.js', 'tutorial_book.js', 'tutorial_book_content.js'];+ 'empty_prompt_notice.js', 'feature_tour.js', 'feature_tour_content.js', 'howto.js', 'swap_lora.js', 'sound_bubble.js', 'tour_goto.js', 'tour_try.js', 'tutorial_book.js', 'tutorial_book_content.js'];const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));let visibleAt = 0;async function waitForVisible() {diff --git a/web/howto.js b/web/howto.jsindex 0850b57..9e796c6 100644--- a/web/howto.js+++ b/web/howto.js@@ -44,6 +44,20 @@ const HOWTOS = [{id: 'editor-refs', anchor: '[data-fv-guide="editor-refs"]', image: 'editor-refs',en: 'Click + next to the prompt to upload or generate images, up to 3.', zh: '点描述框旁的 +,上传或生成图片,最多 3 张。'},{id: 'editor-describe', anchor: '[data-fv-guide="editor-describe"]', en: 'Describe it, then choose "Generate".', zh: '填写描述,然后点“生成”。'}]},+ {id: 'separate-tracks', view: 'editor', title: ['Separate tracks', '分离音轨'],+ steps: [+ {id: 'sound-clip', anchor: '[data-tour-id="audio-a1-track"]', en: 'Select a clip with sound.', zh: '请选中带声音的片段。'},+ {id: 'separate', anchor: '[data-tour-id="audio-track-button"]', en: 'Choose "Separate tracks". Dialogue, music and ambience become three tracks.', zh: '点“分离音轨”,人声、音乐和环境声会分成三条轨道。'},+ {id: 'parts', anchor: '[data-tour-id="audio-music-stem"]', en: 'Each part can now be replaced on its own.', zh: '每条轨道现在都可以单独替换。'}]},+ {id: 'replace-music', view: 'editor', title: ['Replace the music', '换一段配乐'],+ steps: [+ {id: 'music-track', anchor: '[data-tour-id="audio-music-stem"]', en: 'Select a clip on the music track.', zh: '选中“音乐”轨上的片段。'},+ {id: 'music-describe', anchor: '[data-fv-guide="editor-describe"]', en: 'Describe the music you want.', zh: '描述想要的配乐。'},+ {id: 'music-generate', anchor: '[data-fv-guide="editor-generate"]', en: 'Choose "Replace music".', zh: '点“替换配乐”。'}]},+ {id: 'replace-voice', view: 'editor', title: ['Edit lines one by one', '逐句改台词'],+ steps: [+ {id: 'voice-lines', anchor: '[data-tour-id="voice-lines"]', en: 'Select a clip on the dialogue track. Change the words of a line here.', zh: '选中“人声”轨上的片段,在这里修改某一句的文字。'},+ {id: 'voice-generate', anchor: '[data-fv-guide="editor-generate"]', en: 'Choose "Redub" to speak the changed lines again.', zh: '点“重新配音”,只重配改过的句子。'}]}];export const howToList = cn => HOWTOS.map(({id, title}) => ({id, title: title[cn ? 1 : 0]}));diff --git a/web/sound_bubble.css b/web/sound_bubble.cssnew file mode 100644index 0000000..243684f--- /dev/null+++ b/web/sound_bubble.css@@ -0,0 +1,8 @@+.fv-sound-bubble{box-sizing:border-box;position:absolute;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;align-items:center;padding:10px 36px 10px 12px;color:var(--fv-ink);background:var(--fv-raised,#1b2430);border:1px solid var(--fv-accent,#6db8fa);border-radius:var(--fv-r-md,10px);box-shadow:0 8px 28px #0008;font:13px/1.5 var(--fv-font);animation:fv-sound-bubble-in .2s ease-out}+.fv-sound-bubble::before{content:'';position:absolute;top:-6px;left:calc(var(--fv-sound-arrow,16px) - 5px);width:10px;height:10px;transform:rotate(45deg);background:var(--fv-raised,#1b2430);border-left:1px solid var(--fv-accent,#6db8fa);border-top:1px solid var(--fv-accent,#6db8fa)}+.fv-sound-bubble p{margin:0;grid-column:1 / -1;max-height:3em;overflow:hidden}+.fv-sound-bubble button{font:inherit;cursor:pointer;color:var(--fv-ink);background:transparent;border:1px solid var(--fv-border);border-radius:var(--fv-r-sm,6px);padding:3px 10px;min-height:28px}+.fv-sound-bubble button:hover{background:var(--fv-hover)}+.fv-sound-bubble .fv-sound-bubble-close{position:absolute;top:4px;right:4px;width:28px;padding:0;border:0;font-size:18px;line-height:1}+@keyframes fv-sound-bubble-in{from{opacity:0}}+@media(prefers-reduced-motion:reduce){.fv-sound-bubble{animation:none}}diff --git a/web/sound_bubble.js b/web/sound_bubble.jsnew file mode 100644index 0000000..0ffac24--- /dev/null+++ b/web/sound_bubble.js@@ -0,0 +1,45 @@+// A one-time bubble on the "Separate tracks" button, shown when a clip with sound is first selected.+// It is seen once the button is used, the chapter is opened, the bubble is closed or any click lands; a bubble that only+// fades out is shown one more time.+if (typeof document !== 'undefined' && !document.head.querySelector('link[href$="sound_bubble.css"]')) {+ const link = document.createElement('link'); link.rel = 'stylesheet'; link.href = new URL('./sound_bubble.css', import.meta.url).href;+ document.head.append(link);+}+const KEY = 'freevideo-sound-bubble', FADE_MS = 8000, OTHER_CARD = '.fv-guide-layer,.fv-first-start,.fv-next-step,body[data-fv-how-to],dialog.fv-feature-tour[open],.fv-tour-ring,dialog.fv-tutorial-book[open]';+const read = () => { try { return JSON.parse(localStorage.getItem(KEY) || '{}') || {}; } catch { return {}; } };+const write = value => { try { localStorage.setItem(KEY, JSON.stringify(value)); } catch { /* The bubble then shows again next time. */ } };+export const soundBubbleSeen = () => read().seen === true;+export function markSoundBubbleSeen() { write({seen: true}); globalThis.document?.querySelector('.fv-sound-bubble')?.remove(); }+const TEXT = {line: ['Splits dialogue, music and ambience.', '分离出人声、音乐和环境声。'], view: ['Read the tutorial', '看教程'], close: ['Close', '关闭']};+const NO_BUBBLE = () => {};+/** Show the bubble under `button` when it is due. Returns a function that removes it. */+export const isBubbleRemover = remove => remove !== NO_BUBBLE;+export function showSoundBubble(button, {cn = false} = {}) {+ const t = pair => pair[cn ? 1 : 0], state = read();+ if (state.seen || state.faded > 1 || document.querySelector('.fv-sound-bubble') || document.querySelector(OTHER_CARD) || button.hidden) return NO_BUBBLE;+ const bubble = document.createElement('div'); bubble.className = 'fv-sound-bubble'; bubble.setAttribute('role', 'status');+ const line = document.createElement('p'); line.textContent = t(TEXT.line);+ const view = document.createElement('button'); view.type = 'button'; view.className = 'fv-sound-bubble-view'; view.textContent = t(TEXT.view);+ const close = document.createElement('button'); close.type = 'button'; close.className = 'fv-sound-bubble-close'; close.textContent = '×'; close.setAttribute('aria-label', t(TEXT.close));+ bubble.append(line, view, close);+ const host = button.closest('dialog[open]') || document.body;+ let timer = 0, gone = false;+ const place = () => {+ const r = button.getBoundingClientRect(), panel = host.getBoundingClientRect(), width = Math.min(300, panel.width - 16);+ const left = Math.max(panel.left + 8, Math.min(r.left, panel.right - 8 - width));+ Object.assign(bubble.style, {width: `${width}px`, left: `${left - (host === document.body ? 0 : panel.left + host.clientLeft)}px`, top: `${r.bottom + 8 - (host === document.body ? 0 : panel.top + host.clientTop)}px`});+ bubble.style.setProperty('--fv-sound-arrow', `${Math.max(12, Math.min(r.left + r.width / 2 - left, width - 12))}px`);+ };+ const remove = () => {+ if (gone) return; gone = true; clearTimeout(timer);+ document.removeEventListener('pointerdown', onPointer, true); removeEventListener('resize', place);+ bubble.remove();+ };+ function onPointer(event) { if (!bubble.contains(event.target)) { markSoundBubbleSeen(); remove(); } }+ view.onclick = async () => { markSoundBubbleSeen(); remove(); const {openTutorialBook} = await import('./tutorial_book.js'); openTutorialBook({chapter: 'separate-tracks'}); };+ close.onclick = () => { markSoundBubbleSeen(); remove(); };+ host.append(bubble); place(); addEventListener('resize', place);+ document.addEventListener('pointerdown', onPointer, true);+ timer = setTimeout(() => { write({...read(), faded: (read().faded || 0) + 1}); remove(); }, FADE_MS);+ return remove;+}diff --git a/web/tutorial/replace-music-1.webp b/web/tutorial/replace-music-1.webpnew file mode 100644index 0000000..0eac970Binary files /dev/null and b/web/tutorial/replace-music-1.webp differdiff --git a/web/tutorial/replace-music-2.webp b/web/tutorial/replace-music-2.webpnew file mode 100644index 0000000..da93071Binary files /dev/null and b/web/tutorial/replace-music-2.webp differdiff --git a/web/tutorial/separate-tracks-1.webp b/web/tutorial/separate-tracks-1.webpnew file mode 100644index 0000000..2893c62Binary files /dev/null and b/web/tutorial/separate-tracks-1.webp differdiff --git a/web/tutorial/separate-tracks-2.webp b/web/tutorial/separate-tracks-2.webpnew file mode 100644index 0000000..7b675deBinary files /dev/null and b/web/tutorial/separate-tracks-2.webp differdiff --git a/web/tutorial/sound-to-picture-1.webp b/web/tutorial/sound-to-picture-1.webpnew file mode 100644index 0000000..5503d94Binary files /dev/null and b/web/tutorial/sound-to-picture-1.webp differdiff --git a/web/tutorial/sound-to-picture-2.webp b/web/tutorial/sound-to-picture-2.webpnew file mode 100644index 0000000..bbf8196Binary files /dev/null and b/web/tutorial/sound-to-picture-2.webp differdiff --git a/web/tutorial/voice-recording-1.webp b/web/tutorial/voice-recording-1.webpnew file mode 100644index 0000000..3badd6aBinary files /dev/null and b/web/tutorial/voice-recording-1.webp differdiff --git a/web/tutorial/voice-recording-2.webp b/web/tutorial/voice-recording-2.webpnew file mode 100644index 0000000..4ea0f53Binary files /dev/null and b/web/tutorial/voice-recording-2.webp differdiff --git a/web/tutorial_book.js b/web/tutorial_book.jsindex 98cad79..11b4620 100644--- a/web/tutorial_book.js+++ b/web/tutorial_book.js@@ -41,6 +41,7 @@ let current = null;/** Open the bundled manual; chapter is one of the ids in tutorial_book_content.js. */export function openTutorialBook({chapter = TUTORIAL_CHAPTERS[0].id} = {}) {+ if (chapter === 'separate-tracks') import('./sound_bubble.js').then(({markSoundBubbleSeen}) => markSoundBubbleSeen(), () => {});if (current?.dialog.isConnected) {current.select(chapter);return current.dialog;diff --git a/web/tutorial_book_content.js b/web/tutorial_book_content.jsindex df730df..304a66c 100644--- a/web/tutorial_book_content.js+++ b/web/tutorial_book_content.js@@ -322,6 +322,82 @@ export const TUTORIAL_CHAPTERS = [en: ['A part that continues the previous one uses up to 3 reference images and no first or last frames.', 'Edit takes images only. Add reference videos and audio under "Media" in the creation panel.', 'The same part limits apply. An NVIDIA graphics card or a Mac is required.'],},},+ {+ id: 'separate-tracks',+ goto: ['audio-track-button'],+ title: {zh: '分离音轨和替换声音', en: 'Separate tracks and replace sound'},+ summary: {zh: '把声音分成人声、音乐和环境声,并分别替换。', en: 'Split the sound into dialogue, music and ambience and replace each one.'},+ media: {+ type: 'image',+ src: {zh: 'separate-tracks-1.webp', en: 'separate-tracks-2.webp'},+ alt: {zh: '剪辑视图:选中的声音片段和“分离音轨”按钮已用红框标出。', en: 'The Edit view, with a selected sound clip and the "Separate tracks" button outlined in red.'},+ },+ steps: {+ zh: ['在剪辑视图中选中带声音的片段。', '点“分离音轨”,人声、音乐和环境声会分成三条轨道。', '选中“音乐”轨上的片段,在描述框中写下想要的音乐,点“替换配乐”。', '选中“人声”轨上的片段,在“台词”中修改某一句的文字。', '点“重新配音”,只重配改过的句子。'],+ en: ['Select a clip with sound in the Edit view.', 'Choose "Separate tracks". Dialogue, music and ambience become three tracks.', 'Select a clip on the music track, describe the music you want and choose "Replace music".', 'Select a clip on the dialogue track and change the words of one line under "Lines".', 'Choose "Redub". The changed lines are spoken again.'],+ },+ limits: {+ zh: ['部分电脑暂不支持分离音轨,此时按钮不会出现。'],+ en: ['Some computers cannot separate tracks. The button does not appear on them.'],+ },+ },+ {+ id: 'replace-music',+ goto: ['audio-a2-track'],+ title: {zh: '加配乐', en: 'Add music'},+ summary: {zh: '在声音轨上选一段,描述想要的音乐。', en: 'Select a range on a sound track and describe the music.'},+ media: {+ type: 'image',+ src: {zh: 'replace-music-1.webp', en: 'replace-music-2.webp'},+ alt: {zh: '剪辑视图:第二条声音轨上选中的一段和风格选项已用红框标出。', en: 'The Edit view, with a range on the second sound track and the style options outlined in red.'},+ },+ steps: {+ zh: ['点“+ 声音轨”,添加第二条声音轨“声音 2”。', '在“声音 2”轨的空白处拖出一段。', '在“风格”和“情绪”中各选一项。', '在“描述配乐”中写下想要的音乐。', '点“生成”。'],+ en: ['Choose "+ Audio track" to add a second audio track, "Audio 2".', 'Drag a range on an empty part of the "Audio 2" track.', 'Choose one option under "Style" and one under "Mood".', 'Describe the music under "Describe the music".', 'Choose "Generate".'],+ },+ limits: {+ zh: ['首次生成需要下载配乐模型。', '要换掉分离后的音乐,请选中“音乐”轨上的片段,按钮会变为“替换配乐”。'],+ en: ['The first run downloads the music model.', 'To replace separated music, select a clip on the music track. The button then reads "Replace music".'],+ },+ },+ {+ id: 'voice-recording',+ goto: ['record-entry'],+ title: {zh: '配音与录音', en: 'Voice-over and recording'},+ summary: {zh: '直接录音,或对已有的台词重新配音。', en: 'Record your own voice, or redub lines that already exist.'},+ media: {+ type: 'image',+ src: {zh: 'voice-recording-1.webp', en: 'voice-recording-2.webp'},+ alt: {zh: '剪辑视图:工具栏中的“录音”按钮已用红框标出。', en: 'The Edit view, with the "Record" button in the toolbar outlined in red.'},+ },+ steps: {+ zh: ['点工具栏中的“录音”。', '点“开始录音”,对着麦克风说话。', '点“停止”结束,录音会放到声音轨上。', '已有的人声可逐句改写:选中“人声”轨上的片段,修改“台词”中的文字,点“重新配音”。'],+ en: ['Choose "Record" in the toolbar.', 'Choose "Start recording" and speak into the microphone.', 'Choose "Stop". The recording is placed on an audio track.', 'Existing dialogue can be changed line by line: select a clip on the dialogue track, edit the words under "Lines" and choose "Redub".'],+ },+ limits: {+ zh: ['录音需要允许使用麦克风。'],+ en: ['Recording needs permission to use the microphone.'],+ },+ },+ {+ id: 'sound-to-picture',+ goto: ['editor-timeline'],+ title: {zh: '按声音生成画面', en: 'Generate a picture from sound'},+ summary: {zh: '为只有声音的部分生成匹配的画面。', en: 'Generate a picture that matches a part that only has sound.'},+ media: {+ type: 'image',+ src: {zh: 'sound-to-picture-1.webp', en: 'sound-to-picture-2.webp'},+ alt: {zh: '剪辑视图:画面轨上选中的一段和描述框已用红框标出。', en: 'The Edit view, with a range on the picture track and the prompt box outlined in red.'},+ },+ steps: {+ zh: ['在剪辑视图中放入一段只有声音的素材。', '在“画面”轨上,对着声音拖出一段。', '在“描述这一段”中写下想看到的画面。', '点“生成”。'],+ en: ['Put a clip that only has sound into the Edit view.', 'On the picture track, drag a range along the sound.', 'Describe the picture you want under "Describe this part".', 'Choose "Generate".'],+ },+ limits: {+ zh: ['画面时长以所选的一段为准。'],+ en: ['The picture has the length of the selected range.'],+ },+ },{id: 'autopilot',title: {zh: 'AI 全自动', en: 'Autopilot'},