@koda-sl/baker-cli 0.305.0-dev.4e8ef1cd7 → 0.305.0-dev.a04fd407d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2184,6 +2184,7 @@ function spokenWordsIn(prompt) {
|
|
|
2184
2184
|
const text = quoted.join(" ").trim();
|
|
2185
2185
|
return text ? text.split(/\s+/).filter(Boolean).length : 0;
|
|
2186
2186
|
}
|
|
2187
|
+
var SPOKEN_CLIP_DURATION_S = 8;
|
|
2187
2188
|
function nearestClipDuration(model, preferred) {
|
|
2188
2189
|
const schema = MODEL_REGISTRY.video_generate[model]?.params.duration;
|
|
2189
2190
|
const allowed = schema?.kind === "number" ? schema.enum : void 0;
|
|
@@ -8227,9 +8228,9 @@ async function substituteCompositionFiles(tmp, values) {
|
|
|
8227
8228
|
}
|
|
8228
8229
|
await writeFile6(entryPath, output, "utf-8");
|
|
8229
8230
|
}
|
|
8230
|
-
var MAX_WORKERS =
|
|
8231
|
+
var MAX_WORKERS = 8;
|
|
8231
8232
|
function workerCount() {
|
|
8232
|
-
return Math.max(1, Math.min(MAX_WORKERS, cpus().length));
|
|
8233
|
+
return Math.max(1, Math.min(MAX_WORKERS, cpus().length - 1));
|
|
8233
8234
|
}
|
|
8234
8235
|
async function runRender(opts) {
|
|
8235
8236
|
const { tmp, outputPath, params, meta, ctx } = opts;
|
|
@@ -9583,6 +9584,7 @@ export {
|
|
|
9583
9584
|
DEFAULT_CLIP_DURATION_S,
|
|
9584
9585
|
SPOKEN_WORDS_PER_SECOND,
|
|
9585
9586
|
spokenWordsIn,
|
|
9587
|
+
SPOKEN_CLIP_DURATION_S,
|
|
9586
9588
|
nearestClipDuration,
|
|
9587
9589
|
clipAudioMode,
|
|
9588
9590
|
clipDurationsFor,
|
|
@@ -9631,4 +9633,4 @@ export {
|
|
|
9631
9633
|
defaultRegistry,
|
|
9632
9634
|
createEngineFromEnv
|
|
9633
9635
|
};
|
|
9634
|
-
//# sourceMappingURL=chunk-
|
|
9636
|
+
//# sourceMappingURL=chunk-ZNN6ZHDS.js.map
|