@softure-ai/marketing-kit 0.13.2 → 0.15.0
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.
- package/CHANGELOG.md +65 -0
- package/README.md +45 -13
- package/dist/config/schema.d.ts +2 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +10 -2
- package/dist/config/schema.js.map +1 -1
- package/dist/footage/compose.d.ts +13 -0
- package/dist/footage/compose.d.ts.map +1 -1
- package/dist/footage/compose.js +26 -14
- package/dist/footage/compose.js.map +1 -1
- package/dist/footage/draft.js +2 -2
- package/dist/footage/draft.js.map +1 -1
- package/dist/footage/failure.d.ts +42 -0
- package/dist/footage/failure.d.ts.map +1 -0
- package/dist/footage/failure.js +14 -0
- package/dist/footage/failure.js.map +1 -0
- package/dist/footage/film-mix.d.ts +31 -0
- package/dist/footage/film-mix.d.ts.map +1 -0
- package/dist/footage/film-mix.js +45 -0
- package/dist/footage/film-mix.js.map +1 -0
- package/dist/footage/isolate-ranges.d.ts +47 -4
- package/dist/footage/isolate-ranges.d.ts.map +1 -1
- package/dist/footage/isolate-ranges.js +64 -14
- package/dist/footage/isolate-ranges.js.map +1 -1
- package/dist/footage/loudness.d.ts +91 -27
- package/dist/footage/loudness.d.ts.map +1 -1
- package/dist/footage/loudness.js +143 -69
- package/dist/footage/loudness.js.map +1 -1
- package/dist/footage/paid.d.ts +3 -0
- package/dist/footage/paid.d.ts.map +1 -1
- package/dist/footage/paid.js +2 -1
- package/dist/footage/paid.js.map +1 -1
- package/dist/footage/pipeline.d.ts +40 -12
- package/dist/footage/pipeline.d.ts.map +1 -1
- package/dist/footage/pipeline.js +137 -80
- package/dist/footage/pipeline.js.map +1 -1
- package/dist/footage/publish.js +4 -4
- package/dist/footage/publish.js.map +1 -1
- package/dist/footage/speech-ranges.d.ts +29 -4
- package/dist/footage/speech-ranges.d.ts.map +1 -1
- package/dist/footage/speech-ranges.js +56 -11
- package/dist/footage/speech-ranges.js.map +1 -1
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/schema/marketing.schema.json +13 -1
- package/src/config/schema.ts +14 -2
- package/src/footage/compose.ts +33 -12
- package/src/footage/draft.ts +2 -2
- package/src/footage/failure.ts +44 -0
- package/src/footage/film-mix.ts +65 -0
- package/src/footage/isolate-ranges.ts +110 -14
- package/src/footage/loudness.ts +166 -68
- package/src/footage/paid.ts +5 -2
- package/src/footage/pipeline.ts +173 -90
- package/src/footage/publish.ts +4 -4
- package/src/footage/speech-ranges.ts +68 -11
- package/src/index.ts +43 -8
package/src/index.ts
CHANGED
|
@@ -376,7 +376,18 @@ export {
|
|
|
376
376
|
} from "./footage/cuts.js";
|
|
377
377
|
export { MAX_FRAMES, buildFrameArgs, extractFrames, getFrameTimes, type ExtractFramesOptions, type ExtractedFrame, type FrameSpacing } from "./footage/frames.js";
|
|
378
378
|
export { duckingKeyframes, getDuckingOptions, getSpeechSpans, volumeExpression, type DuckingOptions, type VolumeKeyframe } from "./footage/music.js";
|
|
379
|
-
export {
|
|
379
|
+
export {
|
|
380
|
+
END_CARD_SECONDS,
|
|
381
|
+
FADE_SECONDS,
|
|
382
|
+
composeFootage,
|
|
383
|
+
getFootageFilmSeconds,
|
|
384
|
+
getFootageSfxCues,
|
|
385
|
+
getSegmentScales,
|
|
386
|
+
type FootageComposeAssets,
|
|
387
|
+
type FootageComposeInput,
|
|
388
|
+
type FootageSfxCue,
|
|
389
|
+
} from "./footage/compose.js";
|
|
390
|
+
export { buildFilmMixArgs, type FilmMixInput } from "./footage/film-mix.js";
|
|
380
391
|
export { buildCutPreviewArgs, buildLastFrameArgs, buildMusicArgs, buildSpeechArgs, getSpeechCutOptions, type SpeechCutOptions } from "./footage/render.js";
|
|
381
392
|
export {
|
|
382
393
|
FOOTAGE_DRAFT_CAPTION_COLORS,
|
|
@@ -414,21 +425,29 @@ export {
|
|
|
414
425
|
buildMixArgs,
|
|
415
426
|
findLoudnessProblems,
|
|
416
427
|
formatDb,
|
|
417
|
-
|
|
418
|
-
|
|
428
|
+
getBestGainProbe,
|
|
429
|
+
getFirstMixCeiling,
|
|
419
430
|
getLoudnessFilter,
|
|
431
|
+
getLoudnessVerdict,
|
|
432
|
+
getMixAim,
|
|
433
|
+
getMixAttempts,
|
|
420
434
|
getMixFilter,
|
|
421
435
|
getMixGain,
|
|
422
436
|
getMixTolerance,
|
|
423
|
-
|
|
437
|
+
getNextGainProbe,
|
|
438
|
+
getNextMixCeiling,
|
|
424
439
|
isSilent,
|
|
425
440
|
measureLoudness,
|
|
441
|
+
MIX_AIM_EDGE_MARGIN,
|
|
426
442
|
MIX_ATTEMPTS,
|
|
427
443
|
MIX_ENCODE_HEADROOM,
|
|
428
|
-
|
|
429
|
-
|
|
444
|
+
MIX_GAIN_PRECISION,
|
|
445
|
+
MIX_GAIN_PROBES,
|
|
430
446
|
MIX_LOUDNESS_TOLERANCE,
|
|
431
|
-
|
|
447
|
+
MIX_LOWPASS_HZ,
|
|
448
|
+
solveMixGain,
|
|
449
|
+
type LoudnessVerdict,
|
|
450
|
+
type MixAim,
|
|
432
451
|
normalizeLoudness,
|
|
433
452
|
readLoudnessMeasurement,
|
|
434
453
|
type LoudnessMeasureOutcome,
|
|
@@ -482,18 +501,31 @@ export {
|
|
|
482
501
|
type FootageEstimateItem,
|
|
483
502
|
} from "./footage/paid.js";
|
|
484
503
|
export {
|
|
504
|
+
DEFAULT_SPEECH_RANGE_FADE_MS,
|
|
485
505
|
DEFAULT_SPEECH_RANGE_MARGIN,
|
|
486
506
|
buildRangeAudioArgs,
|
|
487
507
|
buildRangeLayArgs,
|
|
488
508
|
getSpeechRangeCache,
|
|
509
|
+
getSpeechRangeFades,
|
|
489
510
|
getSpeechRangeWindows,
|
|
490
511
|
planSpeechRanges,
|
|
491
512
|
type LaidRange,
|
|
492
513
|
type SpeechRange,
|
|
514
|
+
type SpeechRangeCacheResolver,
|
|
493
515
|
type SpeechRangeClip,
|
|
516
|
+
type SpeechRangeFade,
|
|
494
517
|
type SpeechRangeWindow,
|
|
495
518
|
} from "./footage/speech-ranges.js";
|
|
496
|
-
export {
|
|
519
|
+
export {
|
|
520
|
+
DEFAULT_SPEECH_RANGE_ATTEMPTS,
|
|
521
|
+
DEFAULT_SPEECH_RANGE_RETRY_DELAYS_MS,
|
|
522
|
+
isolateSpeechRanges,
|
|
523
|
+
type IsolateSpeechRangesOptions,
|
|
524
|
+
type IsolatedSpeech,
|
|
525
|
+
type IsolatedSpeechRange,
|
|
526
|
+
type SpeechRangeOutcome,
|
|
527
|
+
type SpeechRangeRetry,
|
|
528
|
+
} from "./footage/isolate-ranges.js";
|
|
497
529
|
export { RENDER_MIN_FREE_BYTES, findLowDiskProblems, getFreeBytes, getRenderTempDir, type FreeBytesReader } from "./footage/disk.js";
|
|
498
530
|
export { DRAFT_FILTERS, REQUIRED_DECODERS, REQUIRED_FILTERS, checkFootageTools, findBrowserProblem, readFfmpegListing, type FootageToolsOptions } from "./footage/tools.js";
|
|
499
531
|
export {
|
|
@@ -513,7 +545,9 @@ export {
|
|
|
513
545
|
renderFootageFilm,
|
|
514
546
|
transcribeFootage,
|
|
515
547
|
type FinishedFootage,
|
|
548
|
+
type FinishedLoudness,
|
|
516
549
|
type FinishedMix,
|
|
550
|
+
type PreparedMix,
|
|
517
551
|
type FootageBrand,
|
|
518
552
|
type FootageMusicLookup,
|
|
519
553
|
type FootageResult,
|
|
@@ -525,6 +559,7 @@ export {
|
|
|
525
559
|
type RenderedFootage,
|
|
526
560
|
type TranscribeOutcome,
|
|
527
561
|
} from "./footage/pipeline.js";
|
|
562
|
+
export { isRetryableFootageFailure, type FootageError, type FootageFailure, type FootageFailureKind } from "./footage/failure.js";
|
|
528
563
|
export {
|
|
529
564
|
formatMessage,
|
|
530
565
|
getMarketingMessages,
|