Skip to content

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.

Let the editor page's session reach the voice routes it uses

Bowen Xue735dbab5f3d7
diff --git a/freevideo_engine/agent/schema.py b/freevideo_engine/agent/schema.py
index 21521dd..e272e1b 100644
--- a/freevideo_engine/agent/schema.py
+++ b/freevideo_engine/agent/schema.py
@@ -636,9 +636,11 @@ def contracts(*, local=False):
auth=False, page_or_token=True)
routes['PUT', '/confirmations'] = route('Only the page user may change which operations need approval.',
body=confirm_settings(), auth=False, page_or_token=True)
- # The editor page separates sound itself: these four also accept its page session, which never holds the token.
+ # The editor page separates sound and changes voices itself: these also accept its page session, which never holds the token.
for key in (('POST', '/projects/{id}/stems'), ('POST', '/projects/{id}/stems/export'),
- ('GET', '/jobs/{id}'), ('POST', '/jobs/{id}/cancel')):
+ ('GET', '/jobs/{id}'), ('POST', '/jobs/{id}/cancel'), ('GET', ''),
+ ('POST', '/projects/{id}/voice/lines'), ('POST', '/projects/{id}/voice/replace'),
+ ('POST', '/projects/{id}/voice/shorten'), ('POST', '/projects/{id}/voice/estimate')):
routes[key]['page_ok'] = True
return routes
diff --git a/web/editor_voice_store.js b/web/editor_voice_store.js
index 92cd4c7..6dff238 100644
--- a/web/editor_voice_store.js
+++ b/web/editor_voice_store.js
@@ -13,7 +13,7 @@ const failure = (value, fallback) => Object.assign(new Error(value?.code || valu
// change a voice but the model is still to be downloaded.
export async function voiceFeatures(api) {
try {
- const response = await agentGet(api, `${ROOT}/capabilities`);
+ const response = await agentGet(api, ROOT);
if (!response.ok) return {ready: false, install: false, unknown: true};
const features = (await response.json())?.features;
return {ready: !!features?.['projects.voice'], install: !!features?.['projects.voice.install']};