Spaces:
Running on Zero
Running on Zero
Restore the centered monitor and horizontal direction desk (v0.5.1)
Browse files- README.md +2 -2
- app.py +2 -2
- assets/credits.html +1 -1
- assets/desk.html +23 -24
- assets/header.html +11 -3
- assets/studio.css +44 -30
- assets/studio.js +10 -2
README.md
CHANGED
|
@@ -27,13 +27,13 @@ models:
|
|
| 27 |
|
| 28 |
# FastFrames Voice
|
| 29 |
|
| 30 |
-
A private research prototype for directing a continuous generated shot with spoken or written cues. Version 0.5.
|
| 31 |
|
| 32 |
Select Voice and start the microphone, or select Text, write a direction and press Generate segment (Enter to send, Shift+Enter for a new line). Text mode releases the microphone. Switching inputs preserves the shot. Each accepted direction generates one silent segment at 832 × 480 and 16 fps. Choose 1–8 whole seconds (default 4) before submitting each direction. Each second contains 16 frames. The opening generates one extra latent and trims one leading decoded frame after the model’s three startup frames to deliver an exact whole-second clip. The last generated image stays in the monitor while you think or while the next cue is being interpreted. End session joins completed segments into a downloadable MP4. Microphone mute discards unsubmitted audio and stops capture. Unmute continues the same take. The monitor plays the generated frames on an inline canvas, including on iPhone. The browser decodes the next JPEG strip during playback and displays the frames on one 16 fps timeline. The complete take uses a native MP4 player with inline playback and download.
|
| 33 |
|
| 34 |
After a clip is complete, voice and text directions can continue the shot or redo its last segment. Check **Redo last segment** to force a variant for one instruction. A redo uses the duration and the starting state of the original (the same initial seed for the opening). The next-segment duration selector is preserved. With an ambiguous cue, answer “last segment” or “next segment” by voice, text or button; the studio keeps the original direction while waiting. Review both versions, then choose **Keep original** or **Use variant**. Ending during review exports the original. Only chosen clips enter the recording and future continuity.
|
| 35 |
|
| 36 |
-
Fluid Speech Pro transcribes voice on CPU. Typed directions bypass speech recognition. Inkling 2 Mini updates the last completed shot via Hugging Face Inference Providers when a provider credential is available. Only the text of the current direction, previous direction, target and visual prompt are sent to the HF router. Sign in through
|
| 37 |
|
| 38 |
Anonymous sessions belong to a private browser key in local storage. Clearing site data or using a different browser loses that key. When signed in through the in-app HF button, new sessions belong to the HF account and can be reopened on another device. The Space operator controls the private backing bucket. Earlier prototype exports without stored checkpoints cannot be restored.
|
| 39 |
|
|
|
|
| 27 |
|
| 28 |
# FastFrames Voice
|
| 29 |
|
| 30 |
+
A private research prototype for directing a continuous generated shot with spoken or written cues. Version 0.5.1. The monitor fills the studio above a horizontal desk for the microphone, transcript and interpreted direction. Open Sessions in the header to browse recordings.
|
| 31 |
|
| 32 |
Select Voice and start the microphone, or select Text, write a direction and press Generate segment (Enter to send, Shift+Enter for a new line). Text mode releases the microphone. Switching inputs preserves the shot. Each accepted direction generates one silent segment at 832 × 480 and 16 fps. Choose 1–8 whole seconds (default 4) before submitting each direction. Each second contains 16 frames. The opening generates one extra latent and trims one leading decoded frame after the model’s three startup frames to deliver an exact whole-second clip. The last generated image stays in the monitor while you think or while the next cue is being interpreted. End session joins completed segments into a downloadable MP4. Microphone mute discards unsubmitted audio and stops capture. Unmute continues the same take. The monitor plays the generated frames on an inline canvas, including on iPhone. The browser decodes the next JPEG strip during playback and displays the frames on one 16 fps timeline. The complete take uses a native MP4 player with inline playback and download.
|
| 33 |
|
| 34 |
After a clip is complete, voice and text directions can continue the shot or redo its last segment. Check **Redo last segment** to force a variant for one instruction. A redo uses the duration and the starting state of the original (the same initial seed for the opening). The next-segment duration selector is preserved. With an ambiguous cue, answer “last segment” or “next segment” by voice, text or button; the studio keeps the original direction while waiting. Review both versions, then choose **Keep original** or **Use variant**. Ending during review exports the original. Only chosen clips enter the recording and future continuity.
|
| 35 |
|
| 36 |
+
Fluid Speech Pro transcribes voice on CPU. Typed directions bypass speech recognition. Inkling 2 Mini updates the last completed shot via Hugging Face Inference Providers when a provider credential is available. Only the text of the current direction, previous direction, target and visual prompt are sent to the HF router. Sign in through Account in the studio footer before starting a take to use your inference credits, or set a server-side HF_INFERENCE_TOKEN secret scoped to Inference Providers. Qwen runs locally when no credential is present or the provider call fails. The interpreted direction identifies the model used. FastFrames-S receives one ZeroGPU allocation per segment, with a 60-second maximum runtime for computation and checkpoint I/O. Between directions, the session keeps its exact occupied attention cache, decoder history, frame indices and random generator state on the Space's temporary filesystem. The latest clip and its immediate predecessor retain their checkpoints. A pending variant has its own temporary checkpoint until the user chooses a version. Ending a studio session saves the recording, chosen clips, original seed, text conditioning and the last two continuity checkpoints to a private attached HF bucket. The Sessions view lists finalized recordings, plays/downloads the MP4, and restores a local working copy for continuing or redoing the last clip. Each finished continuation is a new saved session. The original stays available. Unsubmitted variants and microphone audio are excluded. Closing a tab before a save completes may lose the unsaved work.
|
| 37 |
|
| 38 |
Anonymous sessions belong to a private browser key in local storage. Clearing site data or using a different browser loses that key. When signed in through the in-app HF button, new sessions belong to the HF account and can be reopened on another device. The Space operator controls the private backing bucket. Earlier prototype exports without stored checkpoints cannot be restored.
|
| 39 |
|
app.py
CHANGED
|
@@ -272,7 +272,7 @@ BUS_JS="watch('value', () => { if (props.value) window.dispatchEvent(new CustomE
|
|
| 272 |
with gr.Blocks(title="FastFrames Voice",fill_width=True,delete_cache=(600,1800)) as demo:
|
| 273 |
with gr.Column(elem_id="studio"):
|
| 274 |
gr.HTML(asset("header.html"),apply_default_css=False,padding=False,container=False,elem_id="studio-header")
|
| 275 |
-
with gr.
|
| 276 |
with gr.Column(elem_id="monitor"):
|
| 277 |
gr.HTML(asset("monitor.html"),apply_default_css=False,padding=False,container=False,elem_id="cover")
|
| 278 |
feed=gr.Video(label="Current segment",visible=False,streaming=False,autoplay=False,interactive=False,
|
|
@@ -284,10 +284,10 @@ with gr.Blocks(title="FastFrames Voice",fill_width=True,delete_cache=(600,1800))
|
|
| 284 |
with gr.Column(elem_id="collection"):
|
| 285 |
gr.HTML(asset("gallery.html"),container=False,padding=False,apply_default_css=False,elem_id="gallery-panel")
|
| 286 |
gallery_video=gr.Video(label="Saved session",interactive=False,buttons=["download"],elem_id="gallery-video")
|
|
|
|
| 287 |
with gr.Row(elem_id="provider-account"):
|
| 288 |
gr.HTML('<span class="label" data-tr="providerHelp">Sign in for sessions across devices and Inkling direction.</span>', container=False)
|
| 289 |
gr.LoginButton(elem_id="provider-login", size="sm", variant="secondary")
|
| 290 |
-
gr.HTML(asset("credits.html"),apply_default_css=False,padding=False,container=False,elem_id="studio-credits")
|
| 291 |
def bus(name):
|
| 292 |
return gr.HTML(value="",html_template="<span></span>",js_on_load=BUS_JS,elem_id=name,container=False)
|
| 293 |
cpu_bus=bus("cpu-signal")
|
|
|
|
| 272 |
with gr.Blocks(title="FastFrames Voice",fill_width=True,delete_cache=(600,1800)) as demo:
|
| 273 |
with gr.Column(elem_id="studio"):
|
| 274 |
gr.HTML(asset("header.html"),apply_default_css=False,padding=False,container=False,elem_id="studio-header")
|
| 275 |
+
with gr.Column(elem_id="work-area"):
|
| 276 |
with gr.Column(elem_id="monitor"):
|
| 277 |
gr.HTML(asset("monitor.html"),apply_default_css=False,padding=False,container=False,elem_id="cover")
|
| 278 |
feed=gr.Video(label="Current segment",visible=False,streaming=False,autoplay=False,interactive=False,
|
|
|
|
| 284 |
with gr.Column(elem_id="collection"):
|
| 285 |
gr.HTML(asset("gallery.html"),container=False,padding=False,apply_default_css=False,elem_id="gallery-panel")
|
| 286 |
gallery_video=gr.Video(label="Saved session",interactive=False,buttons=["download"],elem_id="gallery-video")
|
| 287 |
+
gr.HTML(asset("credits.html"),apply_default_css=False,padding=False,container=False,elem_id="studio-credits")
|
| 288 |
with gr.Row(elem_id="provider-account"):
|
| 289 |
gr.HTML('<span class="label" data-tr="providerHelp">Sign in for sessions across devices and Inkling direction.</span>', container=False)
|
| 290 |
gr.LoginButton(elem_id="provider-login", size="sm", variant="secondary")
|
|
|
|
| 291 |
def bus(name):
|
| 292 |
return gr.HTML(value="",html_template="<span></span>",js_on_load=BUS_JS,elem_id=name,container=False)
|
| 293 |
cpu_bus=bus("cpu-signal")
|
assets/credits.html
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
<footer class="credit-line"><div><a href="https://huggingface.co/apple/FastFrames-S" target="_blank" rel="noopener">FastFrames-S <span>· Apple</span></a><a href="https://huggingface.co/FluidVoice-Labs/fluid-speech-pro" target="_blank" rel="noopener">Fluid Speech Pro <span>· FluidVoice</span></a><a href="https://huggingface.co/thinkingmachines/Inkling-2-Mini" target="_blank" rel="noopener">Inkling 2 Mini <span>· Thinking Machines</span></a><a href="https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507" target="_blank" rel="noopener">Qwen</a><a href="https://huggingface.co/spaces/linoyts/fastframes-s-live" target="_blank" rel="noopener"><span data-tr="source">Source Space</span> · linoyts</a></div><a href="https://huggingface.co/fffiloni" target="_blank" rel="noopener">UI/UX · Sylvain Filoni / fffiloni</a></footer>
|
|
|
|
| 1 |
+
<footer class="credit-line"><div><button type="button" id="account-toggle" data-tr="accountLink" aria-expanded="false" aria-controls="provider-account">Account</button><a href="https://huggingface.co/apple/FastFrames-S" target="_blank" rel="noopener">FastFrames-S <span>· Apple</span></a><a href="https://huggingface.co/FluidVoice-Labs/fluid-speech-pro" target="_blank" rel="noopener">Fluid Speech Pro <span>· FluidVoice</span></a><a href="https://huggingface.co/thinkingmachines/Inkling-2-Mini" target="_blank" rel="noopener">Inkling 2 Mini <span>· Thinking Machines</span></a><a href="https://huggingface.co/Qwen/Qwen3-4B-Instruct-2507" target="_blank" rel="noopener">Qwen</a><a href="https://huggingface.co/spaces/linoyts/fastframes-s-live" target="_blank" rel="noopener"><span data-tr="source">Source Space</span> · linoyts</a></div><a href="https://huggingface.co/fffiloni" target="_blank" rel="noopener">UI/UX · Sylvain Filoni / fffiloni</a></footer>
|
assets/desk.html
CHANGED
|
@@ -1,28 +1,19 @@
|
|
| 1 |
-
<
|
| 2 |
-
<
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
<button type="button" id="mode-text" aria-pressed="false" data-tr="textMode">Text</button>
|
| 8 |
-
</div>
|
| 9 |
<div id="voice-control" class="control-cell">
|
| 10 |
<button class="mic-key" id="mic-key" data-mic-state="idle">
|
| 11 |
<svg aria-hidden="true" viewBox="0 0 24 24"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10v1a7 7 0 0 0 14 0v-1m-7 8v4m-4 0h8"/><path class="mic-slash" d="M3 3l18 18"/></svg><span id="mic-word">Start mic</span>
|
| 12 |
</button>
|
| 13 |
<canvas id="mic-level" width="88" height="32" aria-hidden="true"></canvas>
|
| 14 |
</div>
|
| 15 |
-
<div id="
|
| 16 |
-
<
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</div>
|
| 20 |
-
<div class="cue-tools"> <label id="redo-control"><input type="checkbox" id="redo-last" disabled><span data-tr="redoLabel">Redo last segment</span></label>
|
| 21 |
-
<label class="duration" id="next-length"><span data-tr="duration">Next segment</span>
|
| 22 |
-
<select id="cue-seconds" aria-describedby="stage-text"><option value="1">1 s</option><option value="2">2 s</option><option value="3">3 s</option><option value="4" selected>4 s</option><option value="5">5 s</option><option value="6">6 s</option><option value="7">7 s</option><option value="8">8 s</option></select>
|
| 23 |
-
</label>
|
| 24 |
-
<span id="fixed-length" class="duration" hidden></span>
|
| 25 |
-
</div><div class="cue-choice" id="clarify-control" hidden>
|
| 26 |
<span data-tr="clarify">Last segment or the next one?</span>
|
| 27 |
<div><button type="button" id="answer-redo" data-tr="lastOne">Last segment</button><button type="button" id="answer-append" data-tr="nextOne">Next segment</button><button type="button" id="cancel-answer" data-tr="cancel">Cancel</button></div>
|
| 28 |
</div>
|
|
@@ -30,9 +21,17 @@
|
|
| 30 |
<div role="group" aria-label="Preview"><button type="button" id="watch-original" data-tr="watchOriginal">Play original</button><button type="button" id="watch-variant" data-tr="watchVariant">Play variant</button></div>
|
| 31 |
<div><button type="button" id="keep-original" data-tr="keepOriginal">Keep original</button><button type="button" id="use-variant" data-tr="useVariant">Use variant</button></div>
|
| 32 |
</div>
|
|
|
|
| 33 |
<div class="status-row"><p class="stage-status" role="status" aria-live="polite"><span id="status-dot"></span><span id="stage-text">Microphone off</span></p><button type="button" id="retry-cue" data-tr="retryCue" hidden>Retry</button></div>
|
| 34 |
-
|
| 35 |
-
<
|
| 36 |
-
|
| 37 |
-
<
|
| 38 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div id="text-control" hidden>
|
| 2 |
+
<label class="label" for="cue-text" data-tr="textLabel">Written direction</label>
|
| 3 |
+
<div class="composer"><textarea id="cue-text" rows="2" maxlength="1200"></textarea>
|
| 4 |
+
<button type="button" id="send-text" disabled data-tr="send">Generate segment</button></div>
|
| 5 |
+
</div>
|
| 6 |
+
<section class="console" aria-label="Direction">
|
|
|
|
|
|
|
| 7 |
<div id="voice-control" class="control-cell">
|
| 8 |
<button class="mic-key" id="mic-key" data-mic-state="idle">
|
| 9 |
<svg aria-hidden="true" viewBox="0 0 24 24"><rect x="9" y="2" width="6" height="12" rx="3"/><path d="M5 10v1a7 7 0 0 0 14 0v-1m-7 8v4m-4 0h8"/><path class="mic-slash" d="M3 3l18 18"/></svg><span id="mic-word">Start mic</span>
|
| 10 |
</button>
|
| 11 |
<canvas id="mic-level" width="88" height="32" aria-hidden="true"></canvas>
|
| 12 |
</div>
|
| 13 |
+
<div class="readout"><span class="label" id="input-label">Direction</span><p id="heard-text">—</p></div>
|
| 14 |
+
<div class="readout"><span class="label" data-tr="direction">Interpreted direction</span><p id="focus-text">—</p><small id="interpreter"></small></div>
|
| 15 |
+
</section>
|
| 16 |
+
<div class="cue-choice" id="clarify-control" hidden>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
<span data-tr="clarify">Last segment or the next one?</span>
|
| 18 |
<div><button type="button" id="answer-redo" data-tr="lastOne">Last segment</button><button type="button" id="answer-append" data-tr="nextOne">Next segment</button><button type="button" id="cancel-answer" data-tr="cancel">Cancel</button></div>
|
| 19 |
</div>
|
|
|
|
| 21 |
<div role="group" aria-label="Preview"><button type="button" id="watch-original" data-tr="watchOriginal">Play original</button><button type="button" id="watch-variant" data-tr="watchVariant">Play variant</button></div>
|
| 22 |
<div><button type="button" id="keep-original" data-tr="keepOriginal">Keep original</button><button type="button" id="use-variant" data-tr="useVariant">Use variant</button></div>
|
| 23 |
</div>
|
| 24 |
+
<div class="desk-rail">
|
| 25 |
<div class="status-row"><p class="stage-status" role="status" aria-live="polite"><span id="status-dot"></span><span id="stage-text">Microphone off</span></p><button type="button" id="retry-cue" data-tr="retryCue" hidden>Retry</button></div>
|
| 26 |
+
<div class="cue-tools">
|
| 27 |
+
<div role="group" aria-label="Direction input" class="input-switch">
|
| 28 |
+
<button type="button" id="mode-voice" aria-pressed="true" data-tr="voiceMode">Voice</button>
|
| 29 |
+
<button type="button" id="mode-text" aria-pressed="false" data-tr="textMode">Text</button>
|
| 30 |
+
</div>
|
| 31 |
+
<label id="redo-control"><input type="checkbox" id="redo-last" disabled><span data-tr="redoLabel">Redo last segment</span></label>
|
| 32 |
+
<label class="duration" id="next-length"><span data-tr="duration">Next segment</span>
|
| 33 |
+
<select id="cue-seconds" aria-describedby="stage-text"><option value="1">1 s</option><option value="2">2 s</option><option value="3">3 s</option><option value="4" selected>4 s</option><option value="5">5 s</option><option value="6">6 s</option><option value="7">7 s</option><option value="8">8 s</option></select>
|
| 34 |
+
</label>
|
| 35 |
+
<span id="fixed-length" class="duration" hidden></span>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
assets/header.html
CHANGED
|
@@ -1,5 +1,13 @@
|
|
| 1 |
<header class="mast">
|
| 2 |
-
<
|
| 3 |
-
<
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
</header>
|
|
|
|
| 1 |
<header class="mast">
|
| 2 |
+
<h1><svg aria-hidden="true" viewBox="0 0 32 32"><path d="M3 11V3h8m10 0h8v8m0 10v8h-8m-10 0H3v-8"/></svg>FastFrames Voice</h1>
|
| 3 |
+
<div class="mast-actions">
|
| 4 |
+
<nav aria-label="Workspace">
|
| 5 |
+
<button type="button" id="nav-studio" data-tr="studioTab">Studio</button>
|
| 6 |
+
<button type="button" id="nav-gallery">
|
| 7 |
+
<svg aria-hidden="true" viewBox="0 0 24 24"><rect x="3" y="7" width="15" height="13" rx="2"/><path d="M7 4h12a2 2 0 0 1 2 2v10"/></svg><span data-tr="galleryTab">Sessions</span>
|
| 8 |
+
</button>
|
| 9 |
+
</nav>
|
| 10 |
+
<div class="langs" aria-label="Interface language"><button id="lang-en" lang="en" aria-pressed="true">EN</button><span>/</span><button id="lang-fr" lang="fr" aria-pressed="false">FR</button></div>
|
| 11 |
+
<button id="end-take" class="stop" disabled><span class="stop-icon"></span><span data-tr="end">End session</span></button>
|
| 12 |
+
</div>
|
| 13 |
</header>
|
assets/studio.css
CHANGED
|
@@ -97,34 +97,31 @@ html:has(#huggingface-space-header){scroll-padding-top:60px}
|
|
| 97 |
#studio .cue-choice button[aria-pressed=true],#studio #use-variant{border-color:#e3aa63}
|
| 98 |
@media(max-width:570px){#redo-control{order:2;flex-basis:100%;margin:0}.cue-tools{row-gap:0}.cue-choice>div{gap:5px}#studio .cue-choice button{padding:0 9px}}
|
| 99 |
|
| 100 |
-
/*
|
| 101 |
-
#
|
| 102 |
-
#
|
| 103 |
-
.
|
| 104 |
-
|
| 105 |
-
.mast
|
| 106 |
-
|
| 107 |
-
#
|
| 108 |
-
#
|
| 109 |
-
#
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
#
|
| 113 |
-
|
| 114 |
-
.
|
| 115 |
-
.
|
| 116 |
-
.
|
| 117 |
-
|
|
|
|
|
|
|
| 118 |
#voice-desk[data-has-clip=false] #redo-control{display:none}
|
| 119 |
-
|
| 120 |
-
#
|
| 121 |
-
|
| 122 |
-
#studio
|
| 123 |
-
#studio #direction-notes .readout{padding:0;border:0}#studio .readout p{font-size:16px}
|
| 124 |
-
#studio .cue-choice{display:grid;justify-content:start;margin:8px 0}.cue-choice>div{gap:5px}
|
| 125 |
-
#voice-desk[data-review=true] .input-switch,#voice-desk[data-review=true] #voice-control,#voice-desk[data-review=true] #text-control,#voice-desk[data-review=true] .cue-tools{display:none!important}
|
| 126 |
-
#studio #provider-account{justify-content:flex-start;border-top:1px solid #3b433e;margin:20px 0 0;padding:10px 0}
|
| 127 |
-
#studio #provider-account>div{flex:0 1 auto}#studio-credits{margin-top:8px}
|
| 128 |
#collection,#gallery-signal{display:none!important}
|
| 129 |
#studio[data-view=gallery] #work-area{display:none!important}
|
| 130 |
#studio[data-view=gallery] #collection{display:flex!important;min-height:240px;gap:12px}
|
|
@@ -141,10 +138,27 @@ html:has(#huggingface-space-header){scroll-padding-top:60px}
|
|
| 141 |
#saved-grid p{margin:3px 0 8px}#saved-grid article>div{display:flex;gap:7px}
|
| 142 |
#collection button{min-height:44px;color:#eeeae2;background:#283029;border:1px solid #59645b;border-radius:5px;padding:0 12px}
|
| 143 |
#collection button:disabled{opacity:.5;cursor:default}#collection button[data-action=resume]{border-color:#ae834d}#gallery-more{margin-top:12px}
|
| 144 |
-
@media(max-width:
|
| 145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 146 |
#studio #provider-account .label,#studio #provider-account [data-tr=providerHelp]{color:#bfcbc1!important}
|
| 147 |
-
#studio
|
|
|
|
|
|
|
| 148 |
#studio #provider-account>div{width:auto!important;min-width:0;max-width:100%}
|
| 149 |
#studio #provider-login{background:#222a25!important;color:#f2f2eb!important;border:1px solid #59665c;border-radius:5px;min-height:44px;padding:0 12px}
|
| 150 |
#studio .langs button{min-width:32px;min-height:44px}
|
|
|
|
| 97 |
#studio .cue-choice button[aria-pressed=true],#studio #use-variant{border-color:#e3aa63}
|
| 98 |
@media(max-width:570px){#redo-control{order:2;flex-basis:100%;margin:0}.cue-tools{row-gap:0}.cue-choice>div{gap:5px}#studio .cue-choice button{padding:0 9px}}
|
| 99 |
|
| 100 |
+
/* The monitor and the three-part sound desk share a single column. */
|
| 101 |
+
#work-area{display:flex!important;flex-direction:column!important;align-items:stretch;gap:0!important}
|
| 102 |
+
#work-area>*{width:100%;min-width:0!important}
|
| 103 |
+
.mast nav button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 6px;background:none;border:0;color:#c6ccc6}
|
| 104 |
+
.mast nav button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}
|
| 105 |
+
.mast .langs{border-right:1px solid #46504a;padding-right:12px}
|
| 106 |
+
#studio:not([data-view=gallery]) #nav-studio,#studio[data-view=gallery] #nav-gallery{display:none}
|
| 107 |
+
#studio[data-view=gallery] #end-take{display:none}
|
| 108 |
+
#voice-desk .console{margin-top:11px;background:#212422;border-color:#333936;align-items:center}
|
| 109 |
+
#voice-desk .mic-key{background:#0b0d0c;border-color:#343a36;min-height:44px}
|
| 110 |
+
#voice-desk .control-cell canvas{width:65px}
|
| 111 |
+
#voice-desk .readout p{font-size:clamp(15px,1.45vw,19px)}
|
| 112 |
+
#interpreter:empty{display:none}
|
| 113 |
+
.desk-rail{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap}
|
| 114 |
+
.desk-rail .cue-tools{margin-top:0;gap:6px 14px}
|
| 115 |
+
.desk-rail .input-switch{border:0;gap:4px;padding:0}
|
| 116 |
+
#studio .desk-rail .input-switch button{min-height:44px;padding:0 5px;font-size:13px}
|
| 117 |
+
#studio .desk-rail .input-switch button[aria-pressed=true]{background:transparent;color:#ffbc70;box-shadow:none;text-decoration:underline;text-underline-offset:5px}
|
| 118 |
+
.desk-rail .duration,#redo-control{font-size:13px}
|
| 119 |
+
#studio .desk-rail select{min-height:40px}
|
| 120 |
#voice-desk[data-has-clip=false] #redo-control{display:none}
|
| 121 |
+
#voice-desk[data-review=true] .cue-tools,#voice-desk[data-review=true] #text-control{display:none!important}
|
| 122 |
+
#studio #provider-account{margin:8px 0 6px;padding:0}
|
| 123 |
+
.collection-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
|
| 124 |
+
#studio .collection-heading h2{font:600 23px/1.15 Barlow,Arial,sans-serif;margin:0;color:#f3f2e9}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
#collection,#gallery-signal{display:none!important}
|
| 126 |
#studio[data-view=gallery] #work-area{display:none!important}
|
| 127 |
#studio[data-view=gallery] #collection{display:flex!important;min-height:240px;gap:12px}
|
|
|
|
| 138 |
#saved-grid p{margin:3px 0 8px}#saved-grid article>div{display:flex;gap:7px}
|
| 139 |
#collection button{min-height:44px;color:#eeeae2;background:#283029;border:1px solid #59645b;border-radius:5px;padding:0 12px}
|
| 140 |
#collection button:disabled{opacity:.5;cursor:default}#collection button[data-action=resume]{border-color:#ae834d}#gallery-more{margin-top:12px}
|
| 141 |
+
@media(max-width:720px){
|
| 142 |
+
#studio .mast-actions{gap:4px}.mast .langs{padding-right:4px}
|
| 143 |
+
#studio .mast nav button{padding:0 4px}
|
| 144 |
+
#voice-desk .console{align-items:stretch}
|
| 145 |
+
.desk-rail{align-items:flex-start;gap:0}
|
| 146 |
+
.desk-rail .cue-tools{width:100%;justify-content:space-between;gap:0 9px}
|
| 147 |
+
.desk-rail .status-row{order:2;width:100%}
|
| 148 |
+
#redo-control{flex-basis:auto;order:0;margin-left:0}
|
| 149 |
+
.collection-heading{flex-wrap:wrap}
|
| 150 |
+
}
|
| 151 |
+
@media(max-width:540px){
|
| 152 |
+
#studio .mast nav button{width:38px;justify-content:center}
|
| 153 |
+
#nav-gallery span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
|
| 154 |
+
#studio .mast #nav-studio{width:auto}
|
| 155 |
+
#voice-desk .control-cell{padding:9px 12px}
|
| 156 |
+
#voice-desk .readout p{font-size:15px}
|
| 157 |
+
}
|
| 158 |
#studio #provider-account .label,#studio #provider-account [data-tr=providerHelp]{color:#bfcbc1!important}
|
| 159 |
+
#studio #provider-account{display:none!important}
|
| 160 |
+
#studio .credit-line #account-toggle{min-height:32px;background:transparent;border:0;padding:0;color:inherit;text-decoration:underline;text-underline-offset:3px}
|
| 161 |
+
#studio[data-account-open=true]:not(:has(#voice-desk[data-active=true])) #provider-account{display:flex!important;flex-flow:row wrap!important;align-items:center;gap:8px 16px}
|
| 162 |
#studio #provider-account>div{width:auto!important;min-width:0;max-width:100%}
|
| 163 |
#studio #provider-login{background:#222a25!important;color:#f2f2eb!important;border:1px solid #59665c;border-radius:5px;min-height:44px;padding:0 12px}
|
| 164 |
#studio .langs button{min-width:32px;min-height:44px}
|
assets/studio.js
CHANGED
|
@@ -30,7 +30,8 @@ const copy = {
|
|
| 30 |
review:["Compare the two versions","Compare les deux versions"],deciding:["Saving your choice…","Enregistrement de ton choix…"],
|
| 31 |
decision_error:["Couldn’t save your choice · try again","Choix non enregistré · réessaie"],
|
| 32 |
invalid_target:["Pick the latest completed segment","Choisis le dernier segment terminé"],invalid_operation:["Invalid action","Action invalide"],
|
| 33 |
-
|
|
|
|
| 34 |
preview:["Preview frame","Aperçu"],help:["Speak or type a direction to begin.","Utilise la voix ou le clavier pour commencer."],
|
| 35 |
voiceMode:["Voice","Voix"],textMode:["Text","Texte"],duration:["Next segment","Prochaine portion"],
|
| 36 |
textLabel:["Written direction","Consigne écrite"],textIdle:["Ready for a written direction","En attente d’une consigne écrite"],
|
|
@@ -81,7 +82,6 @@ function label(){
|
|
| 81 |
deskEl.dataset.input=inputMode;
|
| 82 |
deskEl.dataset.active=String(Boolean(take));
|
| 83 |
draft.placeholder=tr(take&&applied?"nextPlaceholder":"placeholder");
|
| 84 |
-
by("direction-notes").hidden=!lastHeard;
|
| 85 |
deskEl.dataset.review=String(Boolean(variantClip));
|
| 86 |
deskEl.dataset.hasClip=String(Boolean(approvedClip));
|
| 87 |
collection?.controls();
|
|
@@ -104,6 +104,9 @@ function label(){
|
|
| 104 |
retry.hidden=!retryKind;
|
| 105 |
mic.disabled=opening||stopped;
|
| 106 |
end.disabled=(!take&&!opening)||stopped;
|
|
|
|
|
|
|
|
|
|
| 107 |
const stage = opening ? tr("permission") : tr(inputMode==="text" && ["armed","idle","mic_error"].includes(status)?"textIdle":status);
|
| 108 |
by("stage-text").textContent = muted && status !== "mic_error"
|
| 109 |
? (status === "armed" ? tr("muted") : tr("muted")+" · "+stage) : stage;
|
|
@@ -255,6 +258,11 @@ mic.addEventListener("click",()=>{
|
|
| 255 |
}
|
| 256 |
});
|
| 257 |
end.addEventListener("click",endSession);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
langButtons.forEach((b,i)=>b.addEventListener("click",()=>{lang=i?"fr":"en";try{localStorage.setItem("ffv-lang",lang);}catch{}label();collection?.drawItems();}));
|
| 259 |
function displayClip(clip){
|
| 260 |
lastSegment=clip;pendingStill=clip.still;
|
|
|
|
| 30 |
review:["Compare the two versions","Compare les deux versions"],deciding:["Saving your choice…","Enregistrement de ton choix…"],
|
| 31 |
decision_error:["Couldn’t save your choice · try again","Choix non enregistré · réessaie"],
|
| 32 |
invalid_target:["Pick the latest completed segment","Choisis le dernier segment terminé"],invalid_operation:["Invalid action","Action invalide"],
|
| 33 |
+
accountLink:["Account","Compte"],endSave:["End session and save recording","Terminer la session et enregistrer la vidéo"],
|
| 34 |
+
end:["End session","Terminer"],intro:["Describe your opening shot.","Décris ton premier plan."],
|
| 35 |
preview:["Preview frame","Aperçu"],help:["Speak or type a direction to begin.","Utilise la voix ou le clavier pour commencer."],
|
| 36 |
voiceMode:["Voice","Voix"],textMode:["Text","Texte"],duration:["Next segment","Prochaine portion"],
|
| 37 |
textLabel:["Written direction","Consigne écrite"],textIdle:["Ready for a written direction","En attente d’une consigne écrite"],
|
|
|
|
| 82 |
deskEl.dataset.input=inputMode;
|
| 83 |
deskEl.dataset.active=String(Boolean(take));
|
| 84 |
draft.placeholder=tr(take&&applied?"nextPlaceholder":"placeholder");
|
|
|
|
| 85 |
deskEl.dataset.review=String(Boolean(variantClip));
|
| 86 |
deskEl.dataset.hasClip=String(Boolean(approvedClip));
|
| 87 |
collection?.controls();
|
|
|
|
| 104 |
retry.hidden=!retryKind;
|
| 105 |
mic.disabled=opening||stopped;
|
| 106 |
end.disabled=(!take&&!opening)||stopped;
|
| 107 |
+
end.title=tr("endSave");
|
| 108 |
+
end.setAttribute("aria-label",tr("endSave"));
|
| 109 |
+
by("account-toggle").hidden=Boolean(take||opening);
|
| 110 |
const stage = opening ? tr("permission") : tr(inputMode==="text" && ["armed","idle","mic_error"].includes(status)?"textIdle":status);
|
| 111 |
by("stage-text").textContent = muted && status !== "mic_error"
|
| 112 |
? (status === "armed" ? tr("muted") : tr("muted")+" · "+stage) : stage;
|
|
|
|
| 258 |
}
|
| 259 |
});
|
| 260 |
end.addEventListener("click",endSession);
|
| 261 |
+
by("account-toggle").addEventListener("click",()=>{
|
| 262 |
+
const studio=by("studio"), open=studio.dataset.accountOpen!=="true";
|
| 263 |
+
studio.dataset.accountOpen=String(open);
|
| 264 |
+
by("account-toggle").setAttribute("aria-expanded",String(open));
|
| 265 |
+
});
|
| 266 |
langButtons.forEach((b,i)=>b.addEventListener("click",()=>{lang=i?"fr":"en";try{localStorage.setItem("ffv-lang",lang);}catch{}label();collection?.drawItems();}));
|
| 267 |
function displayClip(clip){
|
| 268 |
lastSegment=clip;pendingStill=clip.still;
|