hyperframes 0.9.19 → 0.9.21
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/dist/{add-YT7BMWZB.js → add-VQVP3JPZ.js} +14 -15
- package/dist/{agentPromptGenerator-VKOL4XCD.js → agentPromptGenerator-PAFWQGHU.js} +10 -11
- package/dist/{animatedGifPrep-MD4BNSPH.js → animatedGifPrep-AK26JDVM.js} +10 -11
- package/dist/api.js +36 -37
- package/dist/{appHistory-WXJ4STHX.js → appHistory-FVDSCS64.js} +1 -1
- package/dist/{asset-J42DGWPQ.js → asset-N6RZSN44.js} +2 -2
- package/dist/{assetCataloger-XDZB53RE.js → assetCataloger-GWF6II54.js} +11 -12
- package/dist/{audio-6EV56WMQ.js → audio-ZHVBBQRA.js} +70 -26
- package/dist/{auth-ECYU3HT4.js → auth-AJM3YSN6.js} +4 -4
- package/dist/{autoUpdate-HIKCPXQA.js → autoUpdate-GV4LPAJX.js} +2 -2
- package/dist/{avatars-X7DEU57Y.js → avatars-5EKOR2DW.js} +16 -17
- package/dist/{backgroundChecks-IYWWBPTC.js → backgroundChecks-J4XJD4ET.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-3TAV6XQQ.js → batchRender-UKQ36JT2.js} +5 -6
- package/dist/{beats-IFJBCISA.js → beats-LXYHFVPP.js} +11 -12
- package/dist/{benchmark-OS6LVCAY.js → benchmark-KXR56MIT.js} +11 -12
- package/dist/{billing-4NRHG5FO.js → billing-3XQYSAKP.js} +15 -16
- package/dist/{browser-CFI3GKFB.js → browser-P52FDITF.js} +16 -4
- package/dist/{bundleWithLocalizedFonts-6YHKES5G.js → bundleWithLocalizedFonts-I3KWYN6X.js} +1 -1
- package/dist/{capture-SNHDWW7W.js → capture-2PSBIAL2.js} +3 -3
- package/dist/{capture-4H3W3FNF.js → capture-SMWSGGMG.js} +22 -23
- package/dist/{captureCompositionFrame-BH4UMGJP.js → captureCompositionFrame-WRY5ATM7.js} +16 -17
- package/dist/{catalog-RZOQ54KZ.js → catalog-JIO6RXSR.js} +14 -15
- package/dist/{catch-up-PA4QGVNL.js → catch-up-A73H7VGC.js} +18 -7
- package/dist/{check-J2TCCJL5.js → check-FI7SUTK7.js} +43 -42
- package/dist/{checkAudio-RIFMEOQI.js → checkAudio-73DDBXXJ.js} +13 -14
- package/dist/{checkBrowser-M4YCLLDJ.js → checkBrowser-X5VVYQES.js} +35 -36
- package/dist/{chunk-E3GBPA37.js → chunk-2HRKRRQH.js} +2 -2
- package/dist/{chunk-OR2FAQFS.js → chunk-3FG3YAHZ.js} +1 -1
- package/dist/{chunk-BJUPV6I3.js → chunk-3OIUJOIR.js} +1 -1
- package/dist/{chunk-FSTINYWN.js → chunk-3TLAQU62.js} +1 -1
- package/dist/{chunk-DTJV7ST5.js → chunk-3ZXKEGKV.js} +1 -1
- package/dist/{chunk-ABT7WBZZ.js → chunk-4EL5RKLS.js} +1 -1
- package/dist/{chunk-TOD5PQJF.js → chunk-4EMQHF3T.js} +2 -2
- package/dist/{chunk-6OBCXHIF.js → chunk-4FNJ2QNP.js} +4 -4
- package/dist/{chunk-3QIHS5V3.js → chunk-4NLG5TO6.js} +3 -3
- package/dist/{chunk-63LNVITK.js → chunk-4UXCWPHU.js} +1 -1
- package/dist/{chunk-UPURJC4I.js → chunk-4ZLMVX3O.js} +1 -1
- package/dist/{chunk-IV2R3NET.js → chunk-5PY66UGZ.js} +3 -3
- package/dist/{chunk-ZPJYWAAS.js → chunk-7ETNIXIN.js} +1 -1
- package/dist/{chunk-HNGHIX26.js → chunk-7EUZAQD6.js} +35 -2
- package/dist/{chunk-BEAEO4OV.js → chunk-A2NL7HGF.js} +1 -1
- package/dist/{chunk-JWQHGM3V.js → chunk-A4JU6QUG.js} +1 -1
- package/dist/{chunk-WMRHEI4N.js → chunk-ADJCNH7M.js} +1 -1
- package/dist/{chunk-ENVFGBRD.js → chunk-AXFYCH7S.js} +12 -0
- package/dist/{chunk-RRGH76QX.js → chunk-BABCRBAO.js} +38 -4
- package/dist/{chunk-SVT6FCQX.js → chunk-BUCJXB6D.js} +1 -1
- package/dist/{chunk-3UYQMVJS.js → chunk-C4KYJSSF.js} +9 -9
- package/dist/{chunk-N7D6YUGR.js → chunk-CFOJE3VR.js} +2 -2
- package/dist/{chunk-GKLZMLX3.js → chunk-CXUT4XVT.js} +22 -1
- package/dist/{chunk-2DPQ347C.js → chunk-CZK7A5IB.js} +4 -4
- package/dist/{chunk-3XJM7XZN.js → chunk-D3NWGOXW.js} +30 -0
- package/dist/{chunk-PTIOZJMF.js → chunk-D7C6NOOO.js} +2 -2
- package/dist/{chunk-H3YZRS32.js → chunk-DXIGIMRP.js} +2 -2
- package/dist/{chunk-T655WZ4R.js → chunk-DYPAXBNK.js} +1 -1
- package/dist/{chunk-4FFKOLNM.js → chunk-DZQEPGNY.js} +3 -3
- package/dist/{chunk-RKRJAQFI.js → chunk-F4XUCHQQ.js} +1 -1
- package/dist/{chunk-URGLY5QV.js → chunk-FASKJUYU.js} +98 -35
- package/dist/{chunk-7EN7RIPV.js → chunk-FET6WMTX.js} +2 -2
- package/dist/{chunk-WRBUQRJJ.js → chunk-FOX7LXZ2.js} +1 -1
- package/dist/chunk-FRBQYFUV.js +481 -0
- package/dist/{chunk-XPIP5ZV3.js → chunk-G5UZHDEZ.js} +2 -2
- package/dist/{chunk-AKEZ2BEE.js → chunk-G77Z4GWC.js} +1 -1
- package/dist/{chunk-6AYTP32B.js → chunk-GG7RYSIU.js} +1 -1
- package/dist/{chunk-KXZD37E5.js → chunk-GH6GWAID.js} +1 -1
- package/dist/{chunk-2LZO4FX3.js → chunk-GKOSN3Q6.js} +3 -3
- package/dist/chunk-GREVQ2SM.js +5035 -0
- package/dist/{chunk-J3QW55W5.js → chunk-H6676SHA.js} +1 -1
- package/dist/{chunk-SJUFAZV5.js → chunk-H7N3J7Y3.js} +2 -2
- package/dist/{chunk-RWJFNJUE.js → chunk-HCFBCEJT.js} +1 -1
- package/dist/{chunk-NKK2FRY7.js → chunk-I7WVS7WN.js} +1 -1
- package/dist/{chunk-UIUILBMB.js → chunk-IFY5ACTF.js} +13 -13
- package/dist/{chunk-M3EGX3ID.js → chunk-IQR26ZJD.js} +5 -5
- package/dist/{chunk-XYHAXHOH.js → chunk-IRWQMKV7.js} +1 -1
- package/dist/{chunk-HY5KQ4KT.js → chunk-ITO3VCCW.js} +10 -10
- package/dist/{chunk-XKYXENEP.js → chunk-JNN2CTGU.js} +2 -2
- package/dist/{chunk-6KBDQAZC.js → chunk-JT6LFFYK.js} +1 -1
- package/dist/{chunk-L24NAUBS.js → chunk-KBHBSWEE.js} +64 -19
- package/dist/{chunk-XQD6XWE3.js → chunk-L2SQTHMP.js} +1 -1
- package/dist/{chunk-ZVDYDMQA.js → chunk-L4C4F4O3.js} +3 -3
- package/dist/{chunk-RLXUABCX.js → chunk-LDO7SB4J.js} +12 -5
- package/dist/{chunk-IPXNWK7O.js → chunk-LGSSYJS2.js} +2 -2
- package/dist/{chunk-ATUCYH5L.js → chunk-LIFQONFJ.js} +1 -1
- package/dist/{chunk-NTMMUK6Q.js → chunk-LLUKDUVS.js} +38 -20
- package/dist/{chunk-IDNKBZNX.js → chunk-LMUF3BGR.js} +1 -1
- package/dist/{chunk-5PC5FMF4.js → chunk-LQBZCXMR.js} +3 -3
- package/dist/{chunk-L6YCPDRH.js → chunk-M32FE7JZ.js} +3 -3
- package/dist/{chunk-BYVDFTG6.js → chunk-M7Z2SEQG.js} +2 -2
- package/dist/{chunk-RL3CNZAX.js → chunk-MERPHIUD.js} +2 -2
- package/dist/{chunk-JWORQ5WQ.js → chunk-MFDNMTOP.js} +1 -1
- package/dist/{chunk-CBHNARFI.js → chunk-MNMIIDOX.js} +1 -1
- package/dist/{chunk-PMAGFCRB.js → chunk-NBHVLN5J.js} +7 -7
- package/dist/{chunk-Z2BBCW57.js → chunk-NTNNGWKO.js} +3 -3
- package/dist/{chunk-VXZOWF6M.js → chunk-ONBYVA2L.js} +62 -25
- package/dist/{chunk-G2HKE5CX.js → chunk-OQ6VGBQV.js} +1 -1
- package/dist/{chunk-GNING3UV.js → chunk-OXMEC34G.js} +1 -1
- package/dist/{chunk-VGAKHIDG.js → chunk-OXUX73RX.js} +10 -10
- package/dist/{chunk-A5MTIN4M.js → chunk-P7WDQTQZ.js} +1 -1
- package/dist/chunk-PJNDSYJV.js +525 -0
- package/dist/{chunk-X2TDLUIK.js → chunk-PPOJMJR5.js} +51 -16
- package/dist/{chunk-67JLV22D.js → chunk-Q2LO2ZF6.js} +3 -3
- package/dist/{chunk-CPFG5QSQ.js → chunk-QAES6F2D.js} +7 -7
- package/dist/{chunk-FJXBDFH6.js → chunk-QXVJ33BP.js} +362 -190
- package/dist/{chunk-WAY7TXDD.js → chunk-RLY4LECT.js} +2 -2
- package/dist/{chunk-JDAYOJGJ.js → chunk-RQIR2BOG.js} +1 -1
- package/dist/{chunk-YCXW65RT.js → chunk-RYRSI623.js} +5 -5
- package/dist/{chunk-BUIZAY4L.js → chunk-TERSCNBN.js} +19 -8
- package/dist/{chunk-I4G55F5J.js → chunk-TLNKHH52.js} +1 -1
- package/dist/{chunk-I2L7KR3N.js → chunk-UFMWWEL3.js} +7 -7
- package/dist/{chunk-GZK32KOL.js → chunk-W62DJ5ZK.js} +5 -5
- package/dist/{chunk-TLZCUWHQ.js → chunk-WFEKL42K.js} +266 -61
- package/dist/{chunk-LDFI55LW.js → chunk-WZCSU7ZP.js} +1 -1
- package/dist/{chunk-7HROKMNQ.js → chunk-XC5PF4T4.js} +4 -4
- package/dist/{chunk-2752JKE6.js → chunk-XQUO3BOS.js} +65 -21
- package/dist/{chunk-2AL2DME3.js → chunk-XRNXGF7I.js} +2 -2
- package/dist/{chunk-QEFMUD5U.js → chunk-YALKIB2K.js} +1 -1
- package/dist/{chunk-W6Q7Q7BS.js → chunk-YQV44DRO.js} +77 -2
- package/dist/{chunk-WBXUGXZP.js → chunk-YZKRMBYH.js} +1 -1
- package/dist/{chunk-D33DCBBM.js → chunk-ZEQOP7XA.js} +2 -2
- package/dist/{chunk-YBUZQGMX.js → chunk-ZFYCYUVY.js} +2 -2
- package/dist/{chunk-LFSSI7W3.js → chunk-ZH3SXWCV.js} +42 -15
- package/dist/{chunk-TJUJJYJC.js → chunk-ZNFYQMFN.js} +2 -2
- package/dist/{clean-PMM6YUQ3.js → clean-PILJFGU2.js} +20 -21
- package/dist/cli.js +62 -62
- package/dist/{cloud-D3WTNTF2.js → cloud-D7DFYONW.js} +4 -4
- package/dist/{cloud-OIPASJZZ.js → cloud-HBMQH4EU.js} +4 -4
- package/dist/{cloudrun-3TXJ2QOV.js → cloudrun-JZQMF5DS.js} +6 -7
- package/dist/commands/layout-audit.browser.js +287 -23
- package/dist/{compare-NC7JQXZH.js → compare-5RSAPYJI.js} +32 -33
- package/dist/{compiler-C2HCN5CA.js → compiler-T4BPLRFY.js} +4 -4
- package/dist/{component-M2VJD3QI.js → component-DMHFV7BD.js} +3 -3
- package/dist/{compositions-3QMQV5OS.js → compositions-OW776OLK.js} +14 -15
- package/dist/{curve-S3VZXTYX.js → curve-4GNM7DWM.js} +14 -15
- package/dist/{cuts-O3OKZGPU.js → cuts-M5R2LKDZ.js} +15 -16
- package/dist/{delete-RFDRT4K6.js → delete-MYG77L66.js} +7 -7
- package/dist/{deploy-LIQXICPP.js → deploy-FGHE4FID.js} +1 -1
- package/dist/{describeProject-IUAV4C55.js → describeProject-SLAKVOOS.js} +11 -12
- package/dist/{deterministicFonts-DQDB47K3.js → deterministicFonts-IXXU76SA.js} +1 -1
- package/dist/{diff-F434Y7GL.js → diff-TNHEXG72.js} +35 -36
- package/dist/{dist-KA45Z5SZ.js → dist-23VTYBIX.js} +11 -12
- package/dist/{dist-URQMS2HM.js → dist-5ITUK4AA.js} +6 -4
- package/dist/{dist-6N5S5326.js → dist-PEDQQRFU.js} +17 -17
- package/dist/docs/motion-blur.md +3 -5
- package/dist/{doctor-VAEAFW3N.js → doctor-ILCPSC6S.js} +14 -15
- package/dist/{energy-HQG367CH.js → energy-SCJII6HC.js} +15 -16
- package/dist/{events-R55FOR6B.js → events-D2QORX35.js} +2 -2
- package/dist/{events-M457QJCL.js → events-OHIGKF4W.js} +16 -4
- package/dist/{events-3HQKXGJN.js → events-ZMK5VRA2.js} +17 -18
- package/dist/{extract-KSYOILWX.js → extract-OD3LI3YL.js} +15 -16
- package/dist/{face-IOYVA3KO.js → face-SFQDTQXC.js} +15 -16
- package/dist/{feedback-OLY2Y2HB.js → feedback-N3JK4ULK.js} +18 -19
- package/dist/{ffmpeg-POWBUKIU.js → ffmpeg-E55HQX7V.js} +10 -11
- package/dist/{figma-PYAOGAQ7.js → figma-JYVZPN5L.js} +3 -3
- package/dist/fontLocalizeCli.js +14 -15
- package/dist/{frames-RIUU6JZF.js → frames-BLCIN32Q.js} +16 -17
- package/dist/{generate-TVFTFEHB.js → generate-B7MUYYON.js} +27 -28
- package/dist/{get-ASVUBVPU.js → get-VQWG2NY4.js} +7 -7
- package/dist/{gpuPolicy-QDYHFIDS.js → gpuPolicy-3TMFL6TM.js} +10 -11
- package/dist/{grade-compare-2TVGR2WJ.js → grade-compare-LCS5CBNW.js} +33 -34
- package/dist/{heifImagePrep-ZDQ6FE6L.js → heifImagePrep-VHAJEZGL.js} +11 -12
- package/dist/{help-MZHLMNGB.js → help-GSE5DFSB.js} +1 -1
- package/dist/{history-CCPMGESN.js → history-RSB65UN3.js} +19 -8
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +65 -65
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-5CRW7PXR.js → info-FLLONVY5.js} +16 -17
- package/dist/{init-6U5JDVOC.js → init-EAKY3LFR.js} +30 -31
- package/dist/{ink-BVK6K2CB.js → ink-ZDZVD5CD.js} +15 -16
- package/dist/{inspect-NUGGYSLQ.js → inspect-LFEK6HOL.js} +33 -34
- package/dist/{installer-TBUJ66L6.js → installer-5NJVGV6X.js} +6 -7
- package/dist/{keyframes-N5637YSK.js → keyframes-TZBDB442.js} +16 -8
- package/dist/{lambda-VPSI7MTF.js → lambda-RYX5NXX5.js} +14 -15
- package/dist/{layout-FHJ2SQTW.js → layout-VATFBERH.js} +33 -34
- package/dist/{lint-XPRHASUK.js → lint-QAGBHUXZ.js} +27 -13
- package/dist/{lintProject-6TML32JZ.js → lintProject-BC5ISNKQ.js} +2 -2
- package/dist/{list-TST4Z4GR.js → list-VQZOLGEO.js} +7 -7
- package/dist/{localPage-NR4NBUTZ.js → localPage-ZEJ7ZKIE.js} +10 -11
- package/dist/{login-64KOPWVK.js → login-7BL2N6JG.js} +6 -6
- package/dist/{logout-EQ2HJDL4.js → logout-EKDVIU6Y.js} +2 -2
- package/dist/{look-VBHITYXG.js → look-OKDV2W4W.js} +15 -16
- package/dist/{manager-OAK67I5F.js → manager-QPEMMSLW.js} +11 -12
- package/dist/{measure-NNQ6XXH2.js → measure-WJ6TR545.js} +11 -11
- package/dist/{media-treatment-M2X3Q5NV.js → media-treatment-QYQVLCYP.js} +16 -17
- package/dist/{media-use-ZGJJL6KV.js → media-use-OWKQQSPJ.js} +4 -4
- package/dist/{models-Y24YJJ6P.js → models-FZ4HL5BX.js} +14 -15
- package/dist/{motionShot-KMU2SMX6.js → motionShot-IHZ544WM.js} +19 -20
- package/dist/{normalize-audio-27XH53UL.js → normalize-audio-77ZTAPPL.js} +11 -12
- package/dist/{open-6MLQR2BC.js → open-Q7AAAYVN.js} +70 -20
- package/dist/{parakeetRunner-BMK7KY7W.js → parakeetRunner-TAMKXXNN.js} +15 -16
- package/dist/{pipeline-AILSBZUB.js → pipeline-MK7LCHQD.js} +13 -14
- package/dist/{play-VTM2B4CS.js → play-WBLWBDBS.js} +22 -23
- package/dist/{preflight-IRQCF5ZW.js → preflight-O2EH2LOC.js} +11 -12
- package/dist/{present-JQH4CETR.js → present-3GW46ZYF.js} +18 -19
- package/dist/{preview-KGMCKLBI.js → preview-MPAHNXEJ.js} +57 -504
- package/dist/{probe-IP6W7U4A.js → probe-4F2PK26B.js} +15 -16
- package/dist/{producer-PRYLGX6W.js → producer-T462QJC7.js} +1 -1
- package/dist/{projectConfig-6WPGQGI3.js → projectConfig-T3WVF6H4.js} +8 -9
- package/dist/{publication-25E6ZMLB.js → publication-DX3VDYCI.js} +4 -5
- package/dist/{publish-6QT26AMU.js → publish-VNMKJMAK.js} +15 -16
- package/dist/{refresh-ARZZRKMP.js → refresh-ZHLUUENK.js} +2 -2
- package/dist/{remove-background-CVQQZNQQ.js → remove-background-7LE4IIOE.js} +14 -15
- package/dist/{render-3VHULZTP.js → render-5PTZ5VLW.js} +7 -8
- package/dist/{render-PUXPIIGJ.js → render-JKUR7OI2.js} +76 -39
- package/dist/{render-VMHF2RVD.js → render-RPHNBD4F.js} +42 -39
- package/dist/{render-batch-UKWKZUJM.js → render-batch-X2QMZUYH.js} +7 -8
- package/dist/renderSetupWorker.js +11 -8
- package/dist/{resolver-KEMGGVU7.js → resolver-AXDCEJ77.js} +6 -7
- package/dist/{reverse-4BCCUHPA.js → reverse-DQSOSC5W.js} +1 -1
- package/dist/{run-WZP6HXIH.js → run-IQLZHH6D.js} +5 -5
- package/dist/{screenshotCapture-VGOH65YU.js → screenshotCapture-EAATIOT3.js} +11 -12
- package/dist/{sherpa-AQJGVMWJ.js → sherpa-NPPB3DTN.js} +14 -15
- package/dist/skills/hyperframes/references/motion.md +1 -1
- package/dist/skills/hyperframes/references/storyboard.md +1 -1
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/skills/hyperframes-cli/references/preview-render.md +1 -1
- package/dist/skills/media-use/audio/scripts/audio.mjs +56 -26
- package/dist/skills/media-use/audio/scripts/lib/media-record.mjs +3 -3
- package/dist/skills/media-use/audio/scripts/lib/media-record.test.mjs +16 -1
- package/dist/skills/media-use/audio/scripts/lib/recording.mjs +53 -0
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.mjs +17 -0
- package/dist/skills/media-use/audio/scripts/lib/voice-credit.test.mjs +21 -0
- package/dist/skills/media-use/audio/scripts/recording.test.mjs +139 -0
- package/dist/skills/media-use/references/audio.md +2 -1
- package/dist/skills/media-use/references/heygen.md +9 -9
- package/dist/{skills-VB4OXS7B.js → skills-S2ODBBMC.js} +19 -7
- package/dist/{skillsUpdateCheck-HMGBIR2Z.js → skillsUpdateCheck-AOCZDRXM.js} +3 -3
- package/dist/{snapshot-SXWIDOD3.js → snapshot-SS6WDSZ5.js} +40 -41
- package/dist/{src-IEVHZX7S.js → src-HHRR3UTF.js} +13 -14
- package/dist/{src-RETKK67M.js → src-MYVZPRHS.js} +20 -19
- package/dist/{start-PDD5527T.js → start-OYIXMJKF.js} +24 -25
- package/dist/{staticProjectServer-GJQCWV7Y.js → staticProjectServer-65X4MWEN.js} +21 -22
- package/dist/{status-N6FGW6E2.js → status-JEYVWANY.js} +16 -17
- package/dist/studio/assets/{hyperframes-player-Dszy0WKm.js → hyperframes-player-DqxUNa9H.js} +1 -1
- package/dist/studio/assets/index-Bgfyny02.css +1 -0
- package/dist/studio/assets/{index-CWYuXWlI.js → index-CFUJyYA1.js} +1 -1
- package/dist/studio/assets/{index-BeR5xCi5.js → index-Cq43Ovkf.js} +196 -196
- package/dist/studio/index.html +2 -2
- package/dist/{studio-api-IAELPUY4.js → studio-api-GJGFGQQW.js} +11 -12
- package/dist/{studioServer-XTVVJA3E.js → studioServer-IS27DJNF.js} +66 -59
- package/dist/{sync-SDUSYR4M.js → sync-NLK2RFSR.js} +15 -16
- package/dist/{telemetry-IXOTZW4E.js → telemetry-BMPRZBBX.js} +22 -2
- package/dist/{telemetry-U4VJBESU.js → telemetry-BPPPHER2.js} +16 -4
- package/dist/templates/_shared/AGENTS.md +3 -1
- package/dist/templates/_shared/CLAUDE.md +3 -1
- package/dist/{templates-VFKKDFCR.js → templates-YWBAFFI4.js} +25 -26
- package/dist/{timeline-62HYU4LF.js → timeline-FAFHG2G4.js} +21 -22
- package/dist/{tokens-XJUQMDBP.js → tokens-QCZBFNMS.js} +2 -2
- package/dist/{transcribe-7IPTYLH2.js → transcribe-2P6GMYWR.js} +29 -30
- package/dist/{transcribe-RRGMCQBP.js → transcribe-VL3YKFMY.js} +13 -14
- package/dist/{update-EAL42IMG.js → update-NWDCG6JG.js} +20 -8
- package/dist/{updateCheck-CCDI422O.js → updateCheck-PX4XSKDO.js} +2 -2
- package/dist/{upgrade-A73PJHPY.js → upgrade-VWETDZDT.js} +3 -3
- package/dist/{upload-YQMBLKH5.js → upload-PEY7EYFV.js} +7 -2
- package/dist/{urlDownloader-JZIEE3AD.js → urlDownloader-7TVBPNBG.js} +9 -10
- package/dist/{validate-N6F4N34T.js → validate-HCJAHDTZ.js} +27 -28
- package/dist/{video-6LPKR7VA.js → video-JDUB5IFM.js} +11 -12
- package/dist/{voices-LFPLTLKV.js → voices-YBKCBC6K.js} +30 -29
- package/dist/warmCheck.js +41 -42
- package/package.json +1 -1
- package/dist/chunk-GDQQ4U3L.js +0 -226
- package/dist/chunk-TK7THLRO.js +0 -65
- package/dist/chunk-X7SYA4OP.js +0 -5035
- package/dist/studio/assets/index-CNZk2EFC.css +0 -1
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// }
|
|
27
27
|
//
|
|
28
28
|
// ── audio_meta.json (output, id-keyed) ───────────────────────────────────────
|
|
29
|
-
// { tts_provider, voice_id,
|
|
29
|
+
// { tts_provider, voice_id, voice_credit,
|
|
30
30
|
// bgm: { path, volume, mode, query?, duration_s? } | null,
|
|
31
31
|
// bgm_pending, bgm_provider, bgm_pid, bgm_log, bgm_mode, bgm_target_duration_s, …,
|
|
32
32
|
// voices: [ { id, path, duration_s, words: [{id,text,start,end}] } ],
|
|
@@ -52,6 +52,8 @@ import {
|
|
|
52
52
|
} from "./lib/tts.mjs";
|
|
53
53
|
import { generateBgmDetached, inferBgmPrompt, retrieveBgm } from "./lib/bgm.mjs";
|
|
54
54
|
import { BUNDLED_SFX_DIR, resolveSfx } from "./lib/sfx.mjs";
|
|
55
|
+
import { voiceCredit } from "./lib/voice-credit.mjs";
|
|
56
|
+
import { parseWords, scaleWords, stretchToWav } from "./lib/recording.mjs";
|
|
55
57
|
import { mapWithConcurrency } from "./lib/concurrency.mjs";
|
|
56
58
|
import { openAudioMeta } from "./lib/audio-meta.mjs";
|
|
57
59
|
import { recordInManifest, voicePaths, writtenAssets } from "./lib/media-record.mjs";
|
|
@@ -127,42 +129,63 @@ let voices = prev.voices ?? [];
|
|
|
127
129
|
let ttsProvider = prev.tts_provider ?? null;
|
|
128
130
|
let voiceId = prev.voice_id ?? null;
|
|
129
131
|
if (only.has("tts") && lines.length) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
if (lines.some((l) => !l.audio)) {
|
|
133
|
+
try {
|
|
134
|
+
ttsProvider = pickProvider(
|
|
135
|
+
providerOverride || (request.provider === "auto" ? null : request.provider),
|
|
136
|
+
);
|
|
137
|
+
} catch (e) {
|
|
138
|
+
die(e.message);
|
|
139
|
+
}
|
|
140
|
+
voiceId = await resolveVoiceId({
|
|
141
|
+
provider: ttsProvider,
|
|
142
|
+
userVoice: voiceOverride || request.voice,
|
|
143
|
+
lang,
|
|
144
|
+
});
|
|
145
|
+
} else {
|
|
146
|
+
ttsProvider = "recording"; // every line is the person's own recording: no TTS provider to pick
|
|
147
|
+
voiceId = null;
|
|
136
148
|
}
|
|
137
|
-
voiceId = await resolveVoiceId({
|
|
138
|
-
provider: ttsProvider,
|
|
139
|
-
userVoice: voiceOverride || request.voice,
|
|
140
|
-
lang,
|
|
141
|
-
});
|
|
142
149
|
console.error(`· tts: ${ttsProvider} · voice ${voiceId} · ${lines.length} line(s)`);
|
|
143
150
|
const paths = voicePaths(hyperframesDir, lines, anomalies);
|
|
151
|
+
// A line with `audio` is the person's own recording (path relative to the project), with optional
|
|
152
|
+
// `words`; `speed` applies to it like to a generated voice. Returns synthesizeOne's shape.
|
|
153
|
+
const useRecording = (line, abs) => {
|
|
154
|
+
const made = stretchToWav(resolve(hyperframesDir, String(line.audio)), abs, speed);
|
|
155
|
+
if (!made.ok) return made;
|
|
156
|
+
try {
|
|
157
|
+
const given = parseWords(line.words);
|
|
158
|
+
return { ok: true, words: given && scaleWords(given, speed), source: "recording" };
|
|
159
|
+
} catch (e) {
|
|
160
|
+
return { ok: false, error: e.message };
|
|
161
|
+
}
|
|
162
|
+
};
|
|
144
163
|
const synthLine = async (line) => {
|
|
145
164
|
const id = String(line.id);
|
|
146
165
|
const text = String(line.text ?? "").trim();
|
|
147
|
-
if (!text) {
|
|
166
|
+
if (!text && !line.audio) {
|
|
148
167
|
anomalies.push(`line ${id}: empty text — skipped`);
|
|
149
168
|
return null;
|
|
150
169
|
}
|
|
151
170
|
const rel = paths.get(id);
|
|
152
171
|
const abs = join(hyperframesDir, rel);
|
|
153
|
-
const { ok, words, error } =
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
172
|
+
const { ok, words, error, source } = line.audio
|
|
173
|
+
? useRecording(line, abs)
|
|
174
|
+
: await synthesizeOne({
|
|
175
|
+
provider: ttsProvider,
|
|
176
|
+
text,
|
|
177
|
+
voiceId,
|
|
178
|
+
lang,
|
|
179
|
+
speed,
|
|
180
|
+
model: flag("tts-model", request.tts_model),
|
|
181
|
+
style: flag("style", line.style ?? request.style),
|
|
182
|
+
wavAbs: abs,
|
|
183
|
+
hyperframesDir,
|
|
184
|
+
});
|
|
164
185
|
if (!ok) {
|
|
165
|
-
anomalies.push(
|
|
186
|
+
anomalies.push(
|
|
187
|
+
`line ${id}: ${line.audio ? "recording" : "TTS"} failed — omitted${error ? ` (${error})` : ""}`,
|
|
188
|
+
);
|
|
166
189
|
return null;
|
|
167
190
|
}
|
|
168
191
|
let wordArr = words; // heygen: native; else transcribe
|
|
@@ -172,7 +195,13 @@ if (only.has("tts") && lines.length) {
|
|
|
172
195
|
anomalies.push(`line ${id}: bad voice duration — omitted`);
|
|
173
196
|
return null;
|
|
174
197
|
}
|
|
175
|
-
return {
|
|
198
|
+
return {
|
|
199
|
+
id,
|
|
200
|
+
path: rel,
|
|
201
|
+
duration_s: r3(dur),
|
|
202
|
+
words: withWordIds(wordArr),
|
|
203
|
+
...(source && { source }),
|
|
204
|
+
};
|
|
176
205
|
};
|
|
177
206
|
const results = await mapWithConcurrency(lines, ttsConcurrency, synthLine);
|
|
178
207
|
voices = results.filter(Boolean);
|
|
@@ -287,6 +316,7 @@ if (only.has("sfx")) {
|
|
|
287
316
|
const meta = {
|
|
288
317
|
tts_provider: ttsProvider,
|
|
289
318
|
voice_id: voiceId,
|
|
319
|
+
voice_credit: voiceCredit(voices, ttsProvider),
|
|
290
320
|
bgm,
|
|
291
321
|
...bgmFields,
|
|
292
322
|
voices,
|
|
@@ -35,7 +35,7 @@ export function agentWritePath(
|
|
|
35
35
|
export function voicePaths(hyperframesDir, lines, anomalies) {
|
|
36
36
|
const taken = new Set();
|
|
37
37
|
const paths = new Map();
|
|
38
|
-
for (const line of lines.filter((l) => String(l.text ?? "").trim())) {
|
|
38
|
+
for (const line of lines.filter((l) => String(l.text ?? "").trim() || l.audio)) {
|
|
39
39
|
const rel = agentWritePath(hyperframesDir, `assets/voice/${line.id}.wav`, { anomalies, taken });
|
|
40
40
|
taken.add(rel);
|
|
41
41
|
paths.set(String(line.id), rel);
|
|
@@ -60,9 +60,9 @@ export function writtenAssets({ only, lines, voices, ttsProvider, bgm, bgmFields
|
|
|
60
60
|
path: voice.path,
|
|
61
61
|
type: "voice",
|
|
62
62
|
source: "generated",
|
|
63
|
-
intent: textById.get(voice.id),
|
|
63
|
+
intent: textById.get(voice.id) || "your own recording",
|
|
64
64
|
duration: voice.duration_s,
|
|
65
|
-
provider: ttsProvider,
|
|
65
|
+
provider: voice.source ?? ttsProvider,
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -3,7 +3,7 @@ import { test } from "node:test";
|
|
|
3
3
|
import { mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
4
4
|
import { join } from "node:path";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
|
-
import { findByPrompt, readManifest } from "../../../scripts/lib/manifest.mjs";
|
|
6
|
+
import { AGENT_SOURCES, findByPrompt, readManifest } from "../../../scripts/lib/manifest.mjs";
|
|
7
7
|
import { agentWritePath, recordInManifest, voicePaths, writtenAssets } from "./media-record.mjs";
|
|
8
8
|
|
|
9
9
|
const noBgm = { bgm: null, bgmFields: { bgm_pending: false } };
|
|
@@ -222,3 +222,18 @@ test("a record never takes the id of a download still in flight", (t) => {
|
|
|
222
222
|
["bgm_002"],
|
|
223
223
|
);
|
|
224
224
|
});
|
|
225
|
+
|
|
226
|
+
// An engine-written copy stays an agent source, or every rerun would write a numbered copy beside it
|
|
227
|
+
// (AGENT_SOURCES, manifest.mjs); what says it is the person's own voice is the provider and intent.
|
|
228
|
+
test("a recording line is recorded as your own recording, still an engine-written file", () => {
|
|
229
|
+
const [asset] = writtenAssets({
|
|
230
|
+
only: new Set(["tts"]),
|
|
231
|
+
lines: [{ id: "01", audio: "take.m4a" }],
|
|
232
|
+
voices: [{ id: "01", path: "assets/voice/01.wav", duration_s: 2, source: "recording" }],
|
|
233
|
+
ttsProvider: "recording",
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
assert.equal(asset.provider, "recording");
|
|
237
|
+
assert.equal(asset.intent, "your own recording");
|
|
238
|
+
assert.ok(AGENT_SOURCES.includes(asset.source));
|
|
239
|
+
});
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// recording.mjs — the person's own voice recording as a voice line: converted to the engine's wav,
|
|
2
|
+
// time-stretched by `speed` with the pitch kept, with word timings scaled to match.
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
4
|
+
import { existsSync, mkdirSync } from "node:fs";
|
|
5
|
+
import { dirname } from "node:path";
|
|
6
|
+
|
|
7
|
+
// ffmpeg's atempo takes 0.5..2 per stage; chain stages for the rest of the 0.1..3 speed range.
|
|
8
|
+
export function atempoChain(speed) {
|
|
9
|
+
const stages = [];
|
|
10
|
+
let left = speed;
|
|
11
|
+
while (left > 2) {
|
|
12
|
+
stages.push(2);
|
|
13
|
+
left /= 2;
|
|
14
|
+
}
|
|
15
|
+
while (left < 0.5) {
|
|
16
|
+
stages.push(0.5);
|
|
17
|
+
left /= 0.5;
|
|
18
|
+
}
|
|
19
|
+
if (Math.abs(left - 1) > 1e-9 || stages.length === 0) stages.push(left);
|
|
20
|
+
return stages.map((s) => `atempo=${Number(s.toFixed(6))}`).join(",");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** src -> 44.1k mono wav at wavAbs, played `speed` times faster. Returns { ok, error? }. */
|
|
24
|
+
export function stretchToWav(src, wavAbs, speed = 1) {
|
|
25
|
+
if (!existsSync(src)) return { ok: false, error: `recording not found: ${src}` };
|
|
26
|
+
mkdirSync(dirname(wavAbs), { recursive: true });
|
|
27
|
+
const filter = speed === 1 ? [] : ["-af", atempoChain(speed)];
|
|
28
|
+
const r = spawnSync(
|
|
29
|
+
"ffmpeg",
|
|
30
|
+
["-y", "-loglevel", "error", "-i", src, ...filter, "-ar", "44100", "-ac", "1", wavAbs],
|
|
31
|
+
{ encoding: "utf8" },
|
|
32
|
+
);
|
|
33
|
+
if (r.error || r.status !== 0 || !existsSync(wavAbs)) {
|
|
34
|
+
return { ok: false, error: `ffmpeg could not convert ${src}: ${r.error?.message ?? r.stderr}` };
|
|
35
|
+
}
|
|
36
|
+
return { ok: true };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Caller-supplied word timings ({text|word, start, end}) as [{text,start,end}], or null when absent. */
|
|
40
|
+
export function parseWords(words) {
|
|
41
|
+
if (!Array.isArray(words) || words.length === 0) return null;
|
|
42
|
+
return words.map((w, i) => {
|
|
43
|
+
const text = w?.text ?? w?.word;
|
|
44
|
+
if (typeof text !== "string" || !Number.isFinite(w.start) || !Number.isFinite(w.end)) {
|
|
45
|
+
throw new Error(`words[${i}] needs text (or word), start and end in seconds`);
|
|
46
|
+
}
|
|
47
|
+
return { text, start: w.start, end: w.end };
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** Words of a recording played `speed` times faster land at start/speed. */
|
|
52
|
+
export const scaleWords = (words, speed) =>
|
|
53
|
+
words.map((w) => ({ ...w, start: w.start / speed, end: w.end / speed }));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// voice-credit.mjs — the credits line for a run's voices, naming where each voice really came from.
|
|
2
|
+
const VENDORS = {
|
|
3
|
+
heygen: "HeyGen",
|
|
4
|
+
elevenlabs: "ElevenLabs",
|
|
5
|
+
gemini: "Google Gemini",
|
|
6
|
+
kokoro: "Kokoro (open-source, run locally)",
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
/** "Voice: ..." for the voices an audio run made or took in, or null when it has none. */
|
|
10
|
+
export function voiceCredit(voices, ttsProvider) {
|
|
11
|
+
const sources = new Set(voices.map((v) => v.source ?? ttsProvider).filter(Boolean));
|
|
12
|
+
if (sources.size === 0) return null;
|
|
13
|
+
const parts = [...sources].map((s) =>
|
|
14
|
+
s === "recording" ? "your own recording" : `AI-generated by ${VENDORS[s] ?? s}`,
|
|
15
|
+
);
|
|
16
|
+
return `Voice: ${parts.join("; ")}`;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { test } from "node:test";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import { voiceCredit } from "./voice-credit.mjs";
|
|
4
|
+
|
|
5
|
+
test("a generated voice is credited to the vendor that made it, not always HeyGen", () => {
|
|
6
|
+
assert.equal(voiceCredit([{ id: "01" }], "elevenlabs"), "Voice: AI-generated by ElevenLabs");
|
|
7
|
+
assert.equal(voiceCredit([{ id: "01" }], "gemini"), "Voice: AI-generated by Google Gemini");
|
|
8
|
+
assert.equal(voiceCredit([{ id: "01" }], "heygen"), "Voice: AI-generated by HeyGen");
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
test("a recording is credited as the person's own, and a mix names both", () => {
|
|
12
|
+
assert.equal(voiceCredit([{ source: "recording" }], "recording"), "Voice: your own recording");
|
|
13
|
+
assert.equal(
|
|
14
|
+
voiceCredit([{ source: "recording" }, { id: "02" }], "kokoro"),
|
|
15
|
+
"Voice: your own recording; AI-generated by Kokoro (open-source, run locally)",
|
|
16
|
+
);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
test("no voices, no credit", () => {
|
|
20
|
+
assert.equal(voiceCredit([], null), null);
|
|
21
|
+
});
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { test } from "node:test";
|
|
2
|
+
import assert from "node:assert/strict";
|
|
3
|
+
import { spawnSync } from "node:child_process";
|
|
4
|
+
import { mkdtempSync, readFileSync, writeFileSync, rmSync } from "node:fs";
|
|
5
|
+
import { join, dirname } from "node:path";
|
|
6
|
+
import { tmpdir } from "node:os";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { atempoChain, parseWords, scaleWords } from "./lib/recording.mjs";
|
|
9
|
+
|
|
10
|
+
const AUDIO = join(dirname(fileURLToPath(import.meta.url)), "audio.mjs");
|
|
11
|
+
|
|
12
|
+
test("atempoChain splits speeds outside ffmpeg's 0.5..2 stage range", () => {
|
|
13
|
+
assert.equal(atempoChain(1.5), "atempo=1.5");
|
|
14
|
+
assert.equal(atempoChain(3), "atempo=2,atempo=1.5");
|
|
15
|
+
assert.equal(atempoChain(0.25), "atempo=0.5,atempo=0.5");
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test("parseWords takes text or word and rejects a missing time", () => {
|
|
19
|
+
assert.deepEqual(parseWords([{ word: "hi", start: 0, end: 1 }]), [
|
|
20
|
+
{ text: "hi", start: 0, end: 1 },
|
|
21
|
+
]);
|
|
22
|
+
assert.equal(parseWords(undefined), null);
|
|
23
|
+
assert.throws(() => parseWords([{ text: "hi", start: 0 }]), /words\[0\]/);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
test("scaleWords moves words by 1/speed", () => {
|
|
27
|
+
assert.deepEqual(scaleWords([{ text: "a", start: 1, end: 2 }], 2), [
|
|
28
|
+
{ text: "a", start: 0.5, end: 1 },
|
|
29
|
+
]);
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
test("a recording line with malformed words is omitted with the reason, not a crash", () => {
|
|
33
|
+
const dir = mkdtempSync(join(tmpdir(), "hf-rec-"));
|
|
34
|
+
try {
|
|
35
|
+
const make = spawnSync(
|
|
36
|
+
"ffmpeg",
|
|
37
|
+
["-y", "-loglevel", "error", "-f", "lavfi", "-i", "sine=duration=1", join(dir, "take.wav")],
|
|
38
|
+
{ encoding: "utf8" },
|
|
39
|
+
);
|
|
40
|
+
assert.equal(make.status, 0, make.stderr);
|
|
41
|
+
writeFileSync(
|
|
42
|
+
join(dir, "audio_request.json"),
|
|
43
|
+
JSON.stringify({
|
|
44
|
+
lines: [{ id: "01", audio: "take.wav", words: [{ text: "x", start: 0 }] }],
|
|
45
|
+
}),
|
|
46
|
+
);
|
|
47
|
+
const run = spawnSync(
|
|
48
|
+
process.execPath,
|
|
49
|
+
[
|
|
50
|
+
AUDIO,
|
|
51
|
+
"--request",
|
|
52
|
+
join(dir, "audio_request.json"),
|
|
53
|
+
"--hyperframes",
|
|
54
|
+
dir,
|
|
55
|
+
"--out",
|
|
56
|
+
join(dir, "m.json"),
|
|
57
|
+
"--only",
|
|
58
|
+
"tts",
|
|
59
|
+
],
|
|
60
|
+
{ encoding: "utf8", env: { ...process.env, HOME: dir } },
|
|
61
|
+
);
|
|
62
|
+
assert.equal(run.status, 0, run.stderr);
|
|
63
|
+
assert.match(run.stdout, /line 01: recording failed — omitted \(words\[0\] needs text/);
|
|
64
|
+
assert.deepEqual(JSON.parse(readFileSync(join(dir, "m.json"), "utf8")).voices, []);
|
|
65
|
+
} finally {
|
|
66
|
+
rmSync(dir, { recursive: true, force: true });
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// A 1 s gap then a 1 s tone is a "word" at 1..2 s. At speed 2 the tone must start at 0.5 s in the
|
|
71
|
+
// stretched file, which is where the scaled word says it is.
|
|
72
|
+
test("a recording at speed 2: the file is stretched and the words still land on the audio", () => {
|
|
73
|
+
const dir = mkdtempSync(join(tmpdir(), "hf-rec-"));
|
|
74
|
+
try {
|
|
75
|
+
const make = spawnSync(
|
|
76
|
+
"ffmpeg",
|
|
77
|
+
[
|
|
78
|
+
"-y",
|
|
79
|
+
"-loglevel",
|
|
80
|
+
"error",
|
|
81
|
+
"-f",
|
|
82
|
+
"lavfi",
|
|
83
|
+
"-i",
|
|
84
|
+
"anullsrc=r=44100:cl=mono",
|
|
85
|
+
"-f",
|
|
86
|
+
"lavfi",
|
|
87
|
+
"-i",
|
|
88
|
+
"sine=frequency=440:duration=1:sample_rate=44100",
|
|
89
|
+
"-filter_complex",
|
|
90
|
+
"[0]atrim=duration=1[s];[s][1]concat=n=2:v=0:a=1",
|
|
91
|
+
join(dir, "take.wav"),
|
|
92
|
+
],
|
|
93
|
+
{ encoding: "utf8" },
|
|
94
|
+
);
|
|
95
|
+
assert.equal(make.status, 0, make.stderr);
|
|
96
|
+
writeFileSync(
|
|
97
|
+
join(dir, "audio_request.json"),
|
|
98
|
+
JSON.stringify({
|
|
99
|
+
speed: 2,
|
|
100
|
+
lines: [{ id: "01", audio: "take.wav", words: [{ text: "tone", start: 1, end: 2 }] }],
|
|
101
|
+
}),
|
|
102
|
+
);
|
|
103
|
+
const run = spawnSync(
|
|
104
|
+
process.execPath,
|
|
105
|
+
[
|
|
106
|
+
AUDIO,
|
|
107
|
+
"--request",
|
|
108
|
+
join(dir, "audio_request.json"),
|
|
109
|
+
"--hyperframes",
|
|
110
|
+
dir,
|
|
111
|
+
"--out",
|
|
112
|
+
join(dir, "audio_meta.json"),
|
|
113
|
+
"--only",
|
|
114
|
+
"tts",
|
|
115
|
+
],
|
|
116
|
+
{ encoding: "utf8", env: { ...process.env, HOME: dir } },
|
|
117
|
+
);
|
|
118
|
+
assert.equal(run.status, 0, run.stderr + run.stdout);
|
|
119
|
+
const meta = JSON.parse(readFileSync(join(dir, "audio_meta.json"), "utf8"));
|
|
120
|
+
const voice = meta.voices[0];
|
|
121
|
+
assert.equal(meta.tts_provider, "recording");
|
|
122
|
+
assert.equal(voice.source, "recording");
|
|
123
|
+
assert.equal(meta.voice_credit, "Voice: your own recording");
|
|
124
|
+
assert.ok(Math.abs(voice.duration_s - 1) < 0.05, `duration ${voice.duration_s}`);
|
|
125
|
+
assert.deepEqual([voice.words[0].start, voice.words[0].end], [0.5, 1]);
|
|
126
|
+
const probe = spawnSync(
|
|
127
|
+
"ffmpeg",
|
|
128
|
+
["-i", join(dir, voice.path), "-af", "silencedetect=noise=-40dB:d=0.2", "-f", "null", "-"],
|
|
129
|
+
{ encoding: "utf8" },
|
|
130
|
+
);
|
|
131
|
+
const silenceEnd = Number(/silence_end: ([\d.]+)/.exec(probe.stderr)?.[1]);
|
|
132
|
+
assert.ok(
|
|
133
|
+
Math.abs(silenceEnd - voice.words[0].start) < 0.08,
|
|
134
|
+
`tone starts at ${silenceEnd}s, word says ${voice.words[0].start}s`,
|
|
135
|
+
);
|
|
136
|
+
} finally {
|
|
137
|
+
rmSync(dir, { recursive: true, force: true });
|
|
138
|
+
}
|
|
139
|
+
});
|
|
@@ -10,8 +10,9 @@ node <SKILL_DIR>/audio/scripts/audio.mjs --request ./audio_request.json --out ./
|
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
- **Request** `{ provider?, voice?, lang?, speed?, tts_model?, style?, lines: [{ id, text, style?, sfx?: [names] }], bgm: { mode?, query?, prompt? } }`: `id` joins each line back to your model; `bgm.mode` = `retrieve | generate | none` (omit for auto). `--only tts,bgm,sfx` runs a subset and merges into an existing `--out`.
|
|
13
|
+
- **Your own recording**: a line with `audio` (a path in the project) instead of `text` is used as the voice: `{ id, audio: "take.m4a", words?: [{ text, start, end }] }`. It is converted to `assets/voice/<id>.wav`, `speed` stretches it with the pitch kept and scales `words` the same (without `words` the recording is transcribed). Its `audio_meta.json` voice has `source: "recording"`; with only recording lines `tts_provider` is `"recording"` and no provider or HeyGen sign-in is needed.
|
|
13
14
|
- **Gemini narration** is opt-in with `provider: "gemini"` and an API key or service-account credentials. `tts_model` defaults to `gemini-3.8-flash-tts`; 3.8 Flash-Lite, 3.1 Flash Preview, and 2.5 Pro/Flash Preview TTS are also supported. `style` directs delivery; a line's style overrides the request's style. CLI overrides: `--tts-model`, `--style`. See `audio/references/tts.md` for a complete request. The existing automatic provider order is unchanged.
|
|
14
|
-
- **Output** `audio_meta.json` (id-keyed): `voices[].{path,duration_s,words[]}` (word timestamps for captions), `sfx[]`, `bgm`, `total_duration_s`.
|
|
15
|
+
- **Output** `audio_meta.json` (id-keyed): `voice_credit` (the credits line for the voices, naming where they really came from: your recording or the vendor; use it as is), `voices[].{path,duration_s,words[]}` (word timestamps for captions), `sfx[]`, `bgm`, `total_duration_s`.
|
|
15
16
|
- **HeyGen free-usage path**: HeyGen CLI auth unlocks TTS plus music retrieval; SFX come from Openverse with no account (`audio/references/sfx.md`). Local/provider-specific generators are explicit alternatives where installed; run `npx hyperframes media-use resolve --doctor` before assuming retrieval or TTS will work.
|
|
16
17
|
- If BGM took the generate path (`bgm_pending: true`), run `audio/scripts/wait-bgm.mjs` before final render.
|
|
17
18
|
|
|
@@ -46,15 +46,15 @@ npx hyperframes media-use generate --type music --prompt "warm lo-fi, soft keys"
|
|
|
46
46
|
|
|
47
47
|
The file lands at `--out` and the media ledger records it as generated, with the route, model, job, prompt and the files it was made from. Pictures and shots carry no text or logos: ask for clean plates and draw words in HyperFrames.
|
|
48
48
|
|
|
49
|
-
| Type | Model
|
|
50
|
-
| ------- |
|
|
51
|
-
| image | nano-banana-2 (default), or gpt-image-2.5 with `--model` | $0.067 an image;
|
|
52
|
-
| video | heygen-video-1, 768p
|
|
53
|
-
| lipsync | HeyGen lipsync, speed
|
|
54
|
-
| avatar | talking photo
|
|
55
|
-
| cutout | HeyGen background removal
|
|
56
|
-
| music | lyria-3-pro
|
|
57
|
-
| voice | the voice's engine
|
|
49
|
+
| Type | Model | Price |
|
|
50
|
+
| ------- | --------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
51
|
+
| image | nano-banana-2 (default), or nano-banana-2.1, gpt-image-2.5, gpt-image-2.6 or gpt-image-2.6-flare with `--model` | $0.067 an image; nano-banana-2.1 $0.034 plus $0.0017 a reference; gpt-image $0.036–0.053 by aspect, plus about $0.0125 for every reference |
|
|
52
|
+
| video | heygen-video-1, 768p | $0.02 a second from a prompt or first frame; $0.05 a second with a reference picture, voice or guide clip, and the guide's seconds count too (1080p costs about twice) |
|
|
53
|
+
| lipsync | HeyGen lipsync, speed | 7 credits a second of the video on a plan |
|
|
54
|
+
| avatar | talking photo | $4.83 a minute of speech |
|
|
55
|
+
| cutout | HeyGen background removal | not priced ahead |
|
|
56
|
+
| music | lyria-3-pro | $0.08 a track |
|
|
57
|
+
| voice | the voice's engine | charged per character, not priced ahead |
|
|
58
58
|
|
|
59
59
|
`--plan`'s `usd` is what an API key is charged (HeyGen rounds up to units of $1/60); its `credits` is what a HyperFrames plan charges, on the plan's own rates: a video shot's seconds and guide seconds, plus each picture past the first two. Without `--voice`, generate lists voice ids to pick from on the sign-in alone; a cloned voice from `heygen voice clone create` (`operations.md`).
|
|
60
60
|
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
skillsManagedExternally,
|
|
10
10
|
skills_default,
|
|
11
11
|
updateSkills
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XC5PF4T4.js";
|
|
13
13
|
import "./chunk-EXA6R6SW.js";
|
|
14
14
|
import "./chunk-LISUH6KH.js";
|
|
15
15
|
import "./chunk-6BEFEWFB.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-7EUZAQD6.js";
|
|
17
|
+
import "./chunk-P7WDQTQZ.js";
|
|
18
18
|
import "./chunk-PXVQOMKL.js";
|
|
19
19
|
import "./chunk-MCDNAIFF.js";
|
|
20
20
|
import "./chunk-LP7B3JLC.js";
|
|
@@ -22,12 +22,24 @@ import "./chunk-DL4OD7IA.js";
|
|
|
22
22
|
import "./chunk-S3S4TGEH.js";
|
|
23
23
|
import "./chunk-54HJ63Q2.js";
|
|
24
24
|
import "./chunk-HOCC4J5C.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-YQV44DRO.js";
|
|
26
26
|
import "./chunk-FXMKHHPO.js";
|
|
27
|
+
import "./chunk-GREVQ2SM.js";
|
|
28
|
+
import "./chunk-VC76R6W2.js";
|
|
29
|
+
import "./chunk-OFQWTKPW.js";
|
|
30
|
+
import "./chunk-RQVDTPGD.js";
|
|
27
31
|
import "./chunk-LAGZGKKN.js";
|
|
28
32
|
import "./chunk-FBN2M2HK.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-OHQRQE7F.js";
|
|
34
|
+
import "./chunk-CUCP7FKH.js";
|
|
35
|
+
import "./chunk-FR7YBU3H.js";
|
|
36
|
+
import "./chunk-DPVXBVLL.js";
|
|
37
|
+
import "./chunk-GWTIFRF5.js";
|
|
38
|
+
import "./chunk-2RY2LWAA.js";
|
|
39
|
+
import "./chunk-WC4MTXGN.js";
|
|
40
|
+
import "./chunk-EPQC3FGZ.js";
|
|
41
|
+
import "./chunk-H7N3J7Y3.js";
|
|
42
|
+
import "./chunk-DYPAXBNK.js";
|
|
31
43
|
import "./chunk-BR2JQQC5.js";
|
|
32
44
|
import "./chunk-CMQZP52Y.js";
|
|
33
45
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -36,7 +48,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
36
48
|
import "./chunk-66W5IWLO.js";
|
|
37
49
|
import "./chunk-FYZFURBN.js";
|
|
38
50
|
import "./chunk-QBXDU24O.js";
|
|
39
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-XRNXGF7I.js";
|
|
40
52
|
import "./chunk-E63BDV4Z.js";
|
|
41
53
|
import "./chunk-G7VEYUZ2.js";
|
|
42
54
|
import "./chunk-XT6MXC7A.js";
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
recordSkillsCheck,
|
|
11
11
|
refreshSkillsCache,
|
|
12
12
|
skillsCheckDue
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-H7N3J7Y3.js";
|
|
14
|
+
import "./chunk-DYPAXBNK.js";
|
|
15
15
|
import "./chunk-BR2JQQC5.js";
|
|
16
16
|
import "./chunk-CMQZP52Y.js";
|
|
17
17
|
import "./chunk-ISN5GRYI.js";
|
|
@@ -20,7 +20,7 @@ import "./chunk-ADVVQX4I.js";
|
|
|
20
20
|
import "./chunk-66W5IWLO.js";
|
|
21
21
|
import "./chunk-FYZFURBN.js";
|
|
22
22
|
import "./chunk-QBXDU24O.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XRNXGF7I.js";
|
|
24
24
|
import "./chunk-E63BDV4Z.js";
|
|
25
25
|
import "./chunk-G7VEYUZ2.js";
|
|
26
26
|
import "./chunk-XT6MXC7A.js";
|