Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: let a music video turn off transcript-guided lip-sync
[._.]/ Adam Eivya5b79d62b969
diff --git a/client/src/components/musicVideo/VideoRenderSettings.jsx b/client/src/components/musicVideo/VideoRenderSettings.jsxindex 1cbbe9cae1..89f9a16ef9 100644--- a/client/src/components/musicVideo/VideoRenderSettings.jsx+++ b/client/src/components/musicVideo/VideoRenderSettings.jsx@@ -227,6 +227,16 @@ export default function VideoRenderSettings({ videoSettings, generating }) {<option key={res} value={res}>{`Lip-sync ${res} · ${describeFalVideoRate(lipSync.modelId, res)}`}</option>))}</select>+ <label className="flex items-center gap-1.5 text-xs text-port-text-muted min-h-[44px] sm:min-h-0"+ title="Let the provider transcribe the sung audio to guide mouth shapes. Turn off if it mishears lyrics and shapes the wrong words (e.g. 'swarm' mouthed as 'sworn'); the take then follows the audio alone.">+ <input+ type="checkbox"+ checked={settings.falLipSyncTranscription !== false}+ onChange={(e) => change({ falLipSyncTranscription: e.target.checked ? null : false })}+ disabled={locked}+ />+ Transcript-guided lip-sync+ </label></>)}</>diff --git a/server/lib/musicVideoValidation.js b/server/lib/musicVideoValidation.jsindex c1bba70e97..96faa35e99 100644--- a/server/lib/musicVideoValidation.js+++ b/server/lib/musicVideoValidation.js@@ -74,6 +74,9 @@ export const musicVideoVideoSettingsSchema = z.object({// Output resolution of a performance (lip-sync) take — fal's own alphabet// for the lip-sync route. null/omitted = MUSIC_VIDEO_LIPSYNC_DEFAULT_RESOLUTION.falLipSyncResolution: z.enum(SOURCE_AUDIO_LIPSYNC.fal.resolutions).nullable().optional(),+ // false = lip-sync to the audio alone, without the provider transcribing it+ // first (sung words it mishears turn into the wrong mouth shapes).+ falLipSyncTranscription: z.boolean().nullable().optional(),generationMode: z.enum(['image', 'audioReactive']).optional(),audioReactiveLora: z.string().max(255).regex(/^[^/\\]+\.safetensors$/i).nullable().optional(),audioReactiveScale: z.number().min(0).max(2).optional(),diff --git a/server/services/musicVideo/performanceShot.js b/server/services/musicVideo/performanceShot.jsindex 223d3bb678..54463cd4f6 100644--- a/server/services/musicVideo/performanceShot.js+++ b/server/services/musicVideo/performanceShot.js@@ -226,6 +226,7 @@ export async function assertCurrentPerformanceTakes(project, masterPath) {** Returns `null` for a cutaway scene (nothing to add), or* `{ audioFilePath, shotInstruction, modelId, resolution, enableTranscription }`+ * (`enableTranscription` is off when the project sets `videoSettings.falLipSyncTranscription: false`)* for a performance scene on a capable backend. `resolution` is the take's* output resolution: the request's own when the lip-sync route offers it, else* the project's `videoSettings.falLipSyncResolution`, else the capability@@ -292,6 +293,10 @@ export async function preparePerformanceShot({ musicVideo, backend, sourceImageP);}+ // Transcript guidance is on by default where the route offers it; a project+ // can turn it off (videoSettings.falLipSyncTranscription === false) when the+ // provider's transcript mishears sung words and shapes the mouth for them.+ const transcription = capability.transcription === true && project.videoSettings?.falLipSyncTranscription !== false;const shotInstruction = {version: SHOT_INSTRUCTION_VERSION,shotMode: 'performance',@@ -321,6 +326,8 @@ export async function preparePerformanceShot({ musicVideo, backend, sourceImagePtranscription: capability.transcription,resolution: takeResolution,},+ // Whether this take asked the provider to transcribe the audio first.+ transcription,// The provider's output length follows the submitted audio.generatedCoverageSec: plan.windowSec,};@@ -329,6 +336,6 @@ export async function preparePerformanceShot({ musicVideo, backend, sourceImagePshotInstruction,modelId: capability.modelId,resolution: takeResolution,- enableTranscription: capability.transcription === true,+ enableTranscription: transcription,};}diff --git a/server/services/musicVideo/performanceShot.test.js b/server/services/musicVideo/performanceShot.test.jsindex 1bd0e73349..35d2d8dabe 100644--- a/server/services/musicVideo/performanceShot.test.js+++ b/server/services/musicVideo/performanceShot.test.js@@ -280,6 +280,18 @@ describe.skipIf(!ffmpeg)('music-video performance shot through the fal lip-syncexpect((await preparePerformanceShot({ ...args, resolution: '720p' })).resolution).toBe('768P');});+ it('asks for transcript guidance by default and skips it when the project turns it off', async () => {+ const args = { musicVideo: { projectId: 'mv-1', sceneId: 'mvs-1' }, backend: 'fal', sourceImagePath: '/x/frame.png', mode: 'image' };+ getProject.mockResolvedValue(project());+ const guided = await preparePerformanceShot(args);+ expect(guided.enableTranscription).toBe(true);+ expect(guided.shotInstruction.transcription).toBe(true);+ getProject.mockResolvedValue({ ...project(), videoSettings: { backend: 'fal', falLipSyncTranscription: false } });+ const acoustic = await preparePerformanceShot(args);+ expect(acoustic.enableTranscription).toBe(false);+ expect(acoustic.shotInstruction.transcription).toBe(false);+ });+it('refuses a shot longer than the provider synchronizes instead of letting it truncate', async () => {getProject.mockResolvedValue(project({ startSec: 0, endSec: 30 }));await expect(preparePerformanceShot({