voxflow 1.15.0 → 1.15.2
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/README.md +34 -0
- package/bin/voxflow.js +27 -0
- package/dist/index.js +1 -1
- package/dist/remotion-bundle/02a2fb2eb80bc7bf.woff2 +0 -0
- package/dist/remotion-bundle/052ca5351e5e06ba.woff2 +0 -0
- package/dist/remotion-bundle/05853dd28f4019cb.woff2 +0 -0
- package/dist/remotion-bundle/072ead3737f7c0d0.woff2 +0 -0
- package/dist/remotion-bundle/07d4248613c86a2e.woff2 +0 -0
- package/dist/remotion-bundle/0884a5c2d1d2d99b.woff2 +0 -0
- package/dist/remotion-bundle/0b0e185b2752095e.woff2 +0 -0
- package/dist/remotion-bundle/0e66c11bde067d91.woff2 +0 -0
- package/dist/remotion-bundle/0f7794cfba2c5d21.woff2 +0 -0
- package/dist/remotion-bundle/0fdbae5a4365783a.woff2 +0 -0
- package/dist/remotion-bundle/112.bundle.js +11 -0
- package/dist/remotion-bundle/112.bundle.js.map +1 -0
- package/dist/remotion-bundle/113.bundle.js +11 -0
- package/dist/remotion-bundle/113.bundle.js.map +1 -0
- package/dist/remotion-bundle/119cae0c4c16f7ed.woff2 +0 -0
- package/dist/remotion-bundle/14725f649fd1e78c.woff2 +0 -0
- package/dist/remotion-bundle/14abe9e3f95f7888.woff2 +0 -0
- package/dist/remotion-bundle/163.bundle.js +14678 -0
- package/dist/remotion-bundle/163.bundle.js.map +1 -0
- package/dist/remotion-bundle/1808c54072bf6d14.woff2 +0 -0
- package/dist/remotion-bundle/18948bec3e3012fe.woff2 +0 -0
- package/dist/remotion-bundle/1a661c60d0fc84fc.woff2 +0 -0
- package/dist/remotion-bundle/1af94941e1bc7e1e.woff2 +0 -0
- package/dist/remotion-bundle/1bee0219595f606c.woff2 +0 -0
- package/dist/remotion-bundle/1bfd5da7ce9d4ec4.woff2 +0 -0
- package/dist/remotion-bundle/1c158d56f1884f3f.woff2 +0 -0
- package/dist/remotion-bundle/1cf5e88e667610eb.woff2 +0 -0
- package/dist/remotion-bundle/1d431bd10f53c481.woff2 +0 -0
- package/dist/remotion-bundle/1d701a81a7670db2.woff2 +0 -0
- package/dist/remotion-bundle/1da0fecad4240f16.woff2 +0 -0
- package/dist/remotion-bundle/1ed14d3d0c5c63fe.woff2 +0 -0
- package/dist/remotion-bundle/1edfecf40e586f53.woff2 +0 -0
- package/dist/remotion-bundle/1f479711bc34b054.woff +0 -0
- package/dist/remotion-bundle/1f86e54a0ff5fcd1.woff2 +0 -0
- package/dist/remotion-bundle/2043ea87d9aabd11.woff2 +0 -0
- package/dist/remotion-bundle/20563c39ee8a0e40.woff2 +0 -0
- package/dist/remotion-bundle/20c231590fd12c44.woff2 +0 -0
- package/dist/remotion-bundle/20ce61713f754c07.woff2 +0 -0
- package/dist/remotion-bundle/21eb9306fce24bb1.woff2 +0 -0
- package/dist/remotion-bundle/244bf71c0cc851af.woff2 +0 -0
- package/dist/remotion-bundle/274d4cfc02bffbcb.woff2 +0 -0
- package/dist/remotion-bundle/275.bundle.js +21 -0
- package/dist/remotion-bundle/275.bundle.js.map +1 -0
- package/dist/remotion-bundle/2958f540b39513dc.woff2 +0 -0
- package/dist/remotion-bundle/2a168b98fd97722e.woff2 +0 -0
- package/dist/remotion-bundle/2d1f6373937ab55f.woff2 +0 -0
- package/dist/remotion-bundle/2d213ae47ff6daa9.woff2 +0 -0
- package/dist/remotion-bundle/2e4b1f04fcd05047.woff2 +0 -0
- package/dist/remotion-bundle/304170d98f4c4563.woff2 +0 -0
- package/dist/remotion-bundle/30d02e136e7a5642.woff2 +0 -0
- package/dist/remotion-bundle/3135562b52a714cd.woff2 +0 -0
- package/dist/remotion-bundle/313713af2c8144e9.woff2 +0 -0
- package/dist/remotion-bundle/325fa4108d2285b9.woff2 +0 -0
- package/dist/remotion-bundle/338e927ed3345e0c.woff2 +0 -0
- package/dist/remotion-bundle/35fc6b190365bc17.woff2 +0 -0
- package/dist/remotion-bundle/37a51f1122d4efc5.woff2 +0 -0
- package/dist/remotion-bundle/39a4d63e02736f5e.woff2 +0 -0
- package/dist/remotion-bundle/3a00e0d62dfc4171.woff2 +0 -0
- package/dist/remotion-bundle/3a6955e6561affe1.woff2 +0 -0
- package/dist/remotion-bundle/3c573945aef49b89.woff2 +0 -0
- package/dist/remotion-bundle/3cdbfbfa23b516a5.woff2 +0 -0
- package/dist/remotion-bundle/3e42f85a9e64ca8a.woff2 +0 -0
- package/dist/remotion-bundle/3e83eaf1ec859415.woff2 +0 -0
- package/dist/remotion-bundle/3f3c8c90de1250ee.woff2 +0 -0
- package/dist/remotion-bundle/434.bundle.js +205 -0
- package/dist/remotion-bundle/434.bundle.js.map +1 -0
- package/dist/remotion-bundle/44ffc6ca4d781692.woff2 +0 -0
- package/dist/remotion-bundle/4670d9c4580b09eb.woff2 +0 -0
- package/dist/remotion-bundle/479756881b302824.woff2 +0 -0
- package/dist/remotion-bundle/481b82134bfa9c82.woff2 +0 -0
- package/dist/remotion-bundle/48d27029626f4328.woff2 +0 -0
- package/dist/remotion-bundle/49b7b2a30329c511.woff2 +0 -0
- package/dist/remotion-bundle/4c8b25a1a9337045.woff2 +0 -0
- package/dist/remotion-bundle/4cba14788ca9259b.woff2 +0 -0
- package/dist/remotion-bundle/4cd6c589c004a6a7.woff2 +0 -0
- package/dist/remotion-bundle/4cd8d79c1021608d.woff2 +0 -0
- package/dist/remotion-bundle/4d8fa99b3f00f9f0.woff2 +0 -0
- package/dist/remotion-bundle/4e7805a643f86d53.woff2 +0 -0
- package/dist/remotion-bundle/4ff91be454542e3f.woff2 +0 -0
- package/dist/remotion-bundle/504cbcba1f63591b.woff2 +0 -0
- package/dist/remotion-bundle/5202d792e5791d6c.woff2 +0 -0
- package/dist/remotion-bundle/534db5ad4770cc1d.woff2 +0 -0
- package/dist/remotion-bundle/53b9568eb85f866b.woff2 +0 -0
- package/dist/remotion-bundle/543ad386ca171de9.woff2 +0 -0
- package/dist/remotion-bundle/54798e55bbf7976e.woff2 +0 -0
- package/dist/remotion-bundle/580.bundle.js +11 -0
- package/dist/remotion-bundle/580.bundle.js.map +1 -0
- package/dist/remotion-bundle/58d174d1193af6d1.woff2 +0 -0
- package/dist/remotion-bundle/591d29ff3ff53c80.woff2 +0 -0
- package/dist/remotion-bundle/5c28c4f4824383c6.woff2 +0 -0
- package/dist/remotion-bundle/5da9740d2ce894c8.woff2 +0 -0
- package/dist/remotion-bundle/6197735364642360.woff2 +0 -0
- package/dist/remotion-bundle/6265a4335724080f.woff2 +0 -0
- package/dist/remotion-bundle/633f5e4f6394daa7.woff2 +0 -0
- package/dist/remotion-bundle/637d95ace6a69c49.woff2 +0 -0
- package/dist/remotion-bundle/648e04a04dacff8f.woff2 +0 -0
- package/dist/remotion-bundle/64a6e83045a008b2.woff2 +0 -0
- package/dist/remotion-bundle/651.bundle.js +11 -0
- package/dist/remotion-bundle/651.bundle.js.map +1 -0
- package/dist/remotion-bundle/65e2a988c070facc.woff2 +0 -0
- package/dist/remotion-bundle/66a2f6ce5cc69105.woff2 +0 -0
- package/dist/remotion-bundle/690.bundle.js +3479 -0
- package/dist/remotion-bundle/690.bundle.js.map +1 -0
- package/dist/remotion-bundle/690ff55252ca715d.woff2 +0 -0
- package/dist/remotion-bundle/6a01a1cff49314fc.woff2 +0 -0
- package/dist/remotion-bundle/6cbc32670982986c.woff2 +0 -0
- package/dist/remotion-bundle/6d3cc42ae547f454.woff2 +0 -0
- package/dist/remotion-bundle/6d8f4cfa1ddc0830.woff2 +0 -0
- package/dist/remotion-bundle/6e4d7c6ae65e2dc3.woff2 +0 -0
- package/dist/remotion-bundle/6e86418bbcefb2e8.woff2 +0 -0
- package/dist/remotion-bundle/6ee02884b29cf7fb.woff2 +0 -0
- package/dist/remotion-bundle/6f436a74c9e3252c.woff2 +0 -0
- package/dist/remotion-bundle/78c8022f1657618b.woff2 +0 -0
- package/dist/remotion-bundle/7c5444169792bca4.woff2 +0 -0
- package/dist/remotion-bundle/7c86bddd9d997212.woff2 +0 -0
- package/dist/remotion-bundle/7e1284684767f584.woff2 +0 -0
- package/dist/remotion-bundle/7e81c17522d182b2.woff2 +0 -0
- package/dist/remotion-bundle/7eb87be198f7858c.woff2 +0 -0
- package/dist/remotion-bundle/8060c928f948aab5.woff2 +0 -0
- package/dist/remotion-bundle/80bc9dfbea2b35ae.woff2 +0 -0
- package/dist/remotion-bundle/811b83f69963bb48.woff2 +0 -0
- package/dist/remotion-bundle/813.bundle.js +117511 -0
- package/dist/remotion-bundle/813.bundle.js.map +1 -0
- package/dist/remotion-bundle/84df492e349f82e9.woff2 +0 -0
- package/dist/remotion-bundle/8501bfd73eb36f2b.woff2 +0 -0
- package/dist/remotion-bundle/854236a8376093fe.woff2 +0 -0
- package/dist/remotion-bundle/8571d74529082753.woff2 +0 -0
- package/dist/remotion-bundle/860bf44f8e6f4b5d.woff2 +0 -0
- package/dist/remotion-bundle/879.bundle.js +64 -0
- package/dist/remotion-bundle/879.bundle.js.map +1 -0
- package/dist/remotion-bundle/887dd482f848d56f.woff2 +0 -0
- package/dist/remotion-bundle/89b2132e85fbbb5a.woff2 +0 -0
- package/dist/remotion-bundle/8ba60d6c306010c2.woff2 +0 -0
- package/dist/remotion-bundle/8c7c4dadea897806.woff2 +0 -0
- package/dist/remotion-bundle/8c943f9999706f61.woff2 +0 -0
- package/dist/remotion-bundle/8f2a718c90575cc9.woff2 +0 -0
- package/dist/remotion-bundle/906b6edb3e1772c9.woff2 +0 -0
- package/dist/remotion-bundle/930ff9daccdf14eb.woff2 +0 -0
- package/dist/remotion-bundle/934db2f1c403c4d0.woff2 +0 -0
- package/dist/remotion-bundle/938.bundle.js +451 -0
- package/dist/remotion-bundle/938.bundle.js.map +1 -0
- package/dist/remotion-bundle/967.bundle.js +4462 -0
- package/dist/remotion-bundle/967.bundle.js.map +1 -0
- package/dist/remotion-bundle/9684a1093d3c02ce.woff2 +0 -0
- package/dist/remotion-bundle/973dcd0faa6116cc.woff2 +0 -0
- package/dist/remotion-bundle/9745400694e76cd8.woff2 +0 -0
- package/dist/remotion-bundle/999ef957bed3bdca.woff2 +0 -0
- package/dist/remotion-bundle/99a3d67c8b0f43e3.woff2 +0 -0
- package/dist/remotion-bundle/a0586c3e03127283.woff2 +0 -0
- package/dist/remotion-bundle/a0eb654fdae46269.woff2 +0 -0
- package/dist/remotion-bundle/a20e35d3b08f7994.woff2 +0 -0
- package/dist/remotion-bundle/a2dcaced7c8c25ab.woff2 +0 -0
- package/dist/remotion-bundle/a79255a972a2681a.woff2 +0 -0
- package/dist/remotion-bundle/a804b352cb9fec1a.woff2 +0 -0
- package/dist/remotion-bundle/aae7117164e1eabc.woff2 +0 -0
- package/dist/remotion-bundle/affd121385d0442d.woff2 +0 -0
- package/dist/remotion-bundle/b19a6083987ee0d7.woff2 +0 -0
- package/dist/remotion-bundle/b1b2bd04d8637981.woff2 +0 -0
- package/dist/remotion-bundle/b2c07f341486be87.woff2 +0 -0
- package/dist/remotion-bundle/b33d8f82e575c4ce.woff2 +0 -0
- package/dist/remotion-bundle/b366c0bed35ef491.woff2 +0 -0
- package/dist/remotion-bundle/b41e857ec1b85642.woff2 +0 -0
- package/dist/remotion-bundle/b420bb34ccf23e7f.woff2 +0 -0
- package/dist/remotion-bundle/b4f7bf4efb0c0ccf.woff2 +0 -0
- package/dist/remotion-bundle/b60fe5eca03cff93.woff2 +0 -0
- package/dist/remotion-bundle/b6bd31a336e64bce.woff2 +0 -0
- package/dist/remotion-bundle/b6d2befba3dfefeb.woff2 +0 -0
- package/dist/remotion-bundle/b75f39ab06c43bf4.woff2 +0 -0
- package/dist/remotion-bundle/b77880e8c413d4fd.woff2 +0 -0
- package/dist/remotion-bundle/b7e38ec441e4a77a.woff2 +0 -0
- package/dist/remotion-bundle/b83baa383ff0bf2b.woff2 +0 -0
- package/dist/remotion-bundle/b9ad7b6c0a11450a.woff2 +0 -0
- package/dist/remotion-bundle/baf84486e8ae3aaf.woff2 +0 -0
- package/dist/remotion-bundle/bc047b1f6869cffa.woff2 +0 -0
- package/dist/remotion-bundle/bf4f3ac6e93f33aa.woff2 +0 -0
- package/dist/remotion-bundle/bf6835ffec5897a2.woff2 +0 -0
- package/dist/remotion-bundle/bf8885f581eb1724.woff2 +0 -0
- package/dist/remotion-bundle/bundle.js +83376 -0
- package/dist/remotion-bundle/bundle.js.map +1 -0
- package/dist/remotion-bundle/c03f046bccd789d0.woff2 +0 -0
- package/dist/remotion-bundle/c0bb1f8962b73bc3.woff2 +0 -0
- package/dist/remotion-bundle/c1003f9a7db6e1cf.woff2 +0 -0
- package/dist/remotion-bundle/c15d83fb1e199515.woff2 +0 -0
- package/dist/remotion-bundle/c28e7e5d310f73ef.woff2 +0 -0
- package/dist/remotion-bundle/c2b840274db78aea.woff2 +0 -0
- package/dist/remotion-bundle/c3000e3299d4e45f.woff2 +0 -0
- package/dist/remotion-bundle/c83ce886e5288510.woff2 +0 -0
- package/dist/remotion-bundle/c87a5a64d4ac0918.woff2 +0 -0
- package/dist/remotion-bundle/c8a7e0d049e965fa.woff2 +0 -0
- package/dist/remotion-bundle/c949a35d3a3b1faf.woff2 +0 -0
- package/dist/remotion-bundle/c9618c9b9ac2bc78.woff2 +0 -0
- package/dist/remotion-bundle/ca3add3b84152d5b.woff2 +0 -0
- package/dist/remotion-bundle/cad9dd036408d707.woff2 +0 -0
- package/dist/remotion-bundle/cbb24916619df439.woff2 +0 -0
- package/dist/remotion-bundle/cc054f0b5514e177.woff2 +0 -0
- package/dist/remotion-bundle/ccc248ed9312bc71.woff2 +0 -0
- package/dist/remotion-bundle/cd9d623aa07af925.woff2 +0 -0
- package/dist/remotion-bundle/ce2ba7a321bd1247.woff2 +0 -0
- package/dist/remotion-bundle/cf72455f79a29b14.woff2 +0 -0
- package/dist/remotion-bundle/d267cbfefab452ac.woff2 +0 -0
- package/dist/remotion-bundle/d435cff46a64955f.woff +0 -0
- package/dist/remotion-bundle/d494d07f67e363f6.woff2 +0 -0
- package/dist/remotion-bundle/d7aa0cc1fa47bf38.woff2 +0 -0
- package/dist/remotion-bundle/d7c5ca93d885160a.woff2 +0 -0
- package/dist/remotion-bundle/d855d3e252db74e2.woff2 +0 -0
- package/dist/remotion-bundle/d8f13d47f02f82c2.woff2 +0 -0
- package/dist/remotion-bundle/d9567cce2ee11019.woff2 +0 -0
- package/dist/remotion-bundle/db8d4456fc75dd86.woff +0 -0
- package/dist/remotion-bundle/dc274628378c47ee.woff2 +0 -0
- package/dist/remotion-bundle/dc3e06947bb69903.woff2 +0 -0
- package/dist/remotion-bundle/dd67040ac3b6d523.woff2 +0 -0
- package/dist/remotion-bundle/e0b04bd488f953f4.woff2 +0 -0
- package/dist/remotion-bundle/e2a572ff95089370.woff2 +0 -0
- package/dist/remotion-bundle/e2e18a86b1c2b0cc.woff2 +0 -0
- package/dist/remotion-bundle/e3a78ee2fc9c6931.woff2 +0 -0
- package/dist/remotion-bundle/e654c9d547605a9f.woff2 +0 -0
- package/dist/remotion-bundle/e67a3a64c129927c.woff2 +0 -0
- package/dist/remotion-bundle/e6be28b4203cd6ce.woff2 +0 -0
- package/dist/remotion-bundle/e841907ad9b0a191.woff +0 -0
- package/dist/remotion-bundle/e889d1541c69fffa.woff2 +0 -0
- package/dist/remotion-bundle/e88ef8c76373a9e2.woff2 +0 -0
- package/dist/remotion-bundle/e9c72f4bc37defef.woff2 +0 -0
- package/dist/remotion-bundle/e9e35f863403a255.woff2 +0 -0
- package/dist/remotion-bundle/eb23b37b009375da.woff2 +0 -0
- package/dist/remotion-bundle/ee1342b741625721.woff2 +0 -0
- package/dist/remotion-bundle/f07da88543a57ec9.woff2 +0 -0
- package/dist/remotion-bundle/f522982115306f8a.woff2 +0 -0
- package/dist/remotion-bundle/f8449bd864e6d8bc.woff2 +0 -0
- package/dist/remotion-bundle/f906dd5bd95ff9ab.woff2 +0 -0
- package/dist/remotion-bundle/f9e9e9413e3c38bb.woff2 +0 -0
- package/dist/remotion-bundle/fa5a5b16280994a8.woff2 +0 -0
- package/dist/remotion-bundle/favicon.ico +0 -0
- package/dist/remotion-bundle/fb19c0517725599b.woff2 +0 -0
- package/dist/remotion-bundle/fcaf24232f684b9b.woff2 +0 -0
- package/dist/remotion-bundle/fe09e084a3eea8cf.woff2 +0 -0
- package/dist/remotion-bundle/ff38d5317df7345a.woff2 +0 -0
- package/dist/remotion-bundle/ffe7ea1ea08f455a.woff2 +0 -0
- package/dist/remotion-bundle/index.html +49 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaomei/communication/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoxin/career/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/female-kefu-xiaoyue/parenting/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/male-kefu-xiaoxu/time-trap/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/cognition/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/growth/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/parenting/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-A6b7WpG3/soothing/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-female-R2s4N9qJ/cognition/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-Bk7vD3xP/decision/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-W1tH9jVc/manager/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide/v-male-s5NqE0rZ/founder/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/career-advice/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/founder-lesson/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/incident-review/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/learning-loop/4.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/meeting-closure/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/product-update/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/research-reading/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/0.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/1.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/2.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/3.mp3 +0 -0
- package/dist/remotion-bundle/public/paper-slide-experiments/sales-enablement/4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/ai-life/card-5.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-5.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/coffee-science/card-6.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-5.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/reading-secrets/card-6.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-0.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-1.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-2.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-3.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-4.mp3 +0 -0
- package/dist/remotion-bundle/public/voiceover/remote-work/card-5.mp3 +0 -0
- package/dist/remotion-bundle/source-map-helper.wasm +0 -0
- package/lib/cli.js +270 -0
- package/lib/commands/_registry.js +48 -0
- package/lib/commands/add.js +242 -0
- package/lib/commands/asr/azure-transcribe.js +336 -0
- package/lib/commands/asr/cloud-transcribe.js +384 -0
- package/lib/commands/asr/helpers.js +76 -0
- package/lib/commands/asr/index.js +236 -0
- package/lib/commands/asr/local-transcribe.js +125 -0
- package/lib/commands/asr-jobs.js +257 -0
- package/lib/commands/asr.js +11 -0
- package/lib/commands/auth-cmds.js +358 -0
- package/lib/commands/dub.js +542 -0
- package/lib/commands/explain.js +512 -0
- package/lib/commands/feedback.js +152 -0
- package/lib/commands/image.js +207 -0
- package/lib/commands/mcp-key.js +166 -0
- package/lib/commands/narrate.js +639 -0
- package/lib/commands/picstory-templates.js +276 -0
- package/lib/commands/picstory.js +547 -0
- package/lib/commands/podcast/dialogue.js +109 -0
- package/lib/commands/podcast/generate.js +127 -0
- package/lib/commands/podcast/index.js +561 -0
- package/lib/commands/podcast/synthesize.js +188 -0
- package/lib/commands/podcast.js +11 -0
- package/lib/commands/present.js +519 -0
- package/lib/commands/publish.js +415 -0
- package/lib/commands/skills.js +473 -0
- package/lib/commands/slice-render.js +282 -0
- package/lib/commands/slice-stage.js +264 -0
- package/lib/commands/slice.js +346 -0
- package/lib/commands/slides/constants.js +108 -0
- package/lib/commands/slides/html-renderer.js +338 -0
- package/lib/commands/slides/index.js +345 -0
- package/lib/commands/slides.js +11 -0
- package/lib/commands/story.js +302 -0
- package/lib/commands/summarize.js +532 -0
- package/lib/commands/synthesize.js +261 -0
- package/lib/commands/translate.js +593 -0
- package/lib/commands/upgrade.js +249 -0
- package/lib/commands/video-translate.js +577 -0
- package/lib/commands/voices.js +292 -0
- package/lib/core/agent-env.js +104 -0
- package/lib/core/args.js +107 -0
- package/lib/core/asr-client.js +448 -0
- package/lib/core/asr-jobs-client.js +126 -0
- package/lib/core/asr-jobs-store.js +105 -0
- package/lib/core/asr-r2-upload.js +181 -0
- package/lib/core/asr-upload.js +132 -0
- package/lib/core/audio-extract.js +150 -0
- package/lib/core/audio.js +219 -0
- package/lib/core/auth.js +880 -0
- package/lib/core/config.js +197 -0
- package/lib/core/feedback.js +64 -0
- package/lib/core/ffmpeg.js +476 -0
- package/lib/core/http.js +188 -0
- package/lib/core/image-client.js +55 -0
- package/lib/core/intent-params.js +11 -0
- package/lib/core/llm-client.js +76 -0
- package/lib/core/logger.js +208 -0
- package/lib/core/mic-recorder.js +182 -0
- package/lib/core/pause-markers.js +94 -0
- package/lib/core/podcast-pacing.js +118 -0
- package/lib/core/spinner.js +33 -0
- package/lib/core/srt.js +394 -0
- package/lib/core/telemetry.js +100 -0
- package/lib/core/timeline.js +92 -0
- package/lib/core/tts-synthesizer.js +70 -0
- package/lib/core/update-check.js +185 -0
- package/lib/core/url-download.js +148 -0
- package/lib/core/whisper-local.js +279 -0
- package/lib/internal/deck-validator.js +488 -0
- package/lib/internal/slice-themes.json +370 -0
- package/lib/stage-core/cloud-render.js +170 -0
- package/lib/stage-core/deck-format.js +133 -0
- package/lib/stage-core/edit-prompt.js +104 -0
- package/lib/stage-core/event-bus.js +31 -0
- package/lib/stage-core/port.js +46 -0
- package/lib/stage-core/server.js +352 -0
- package/lib/stage-core/snapshot-store.js +198 -0
- package/lib/stage-core/watcher.js +106 -0
- package/lib/stage-ui/slice/template.js +1672 -0
- package/package.json +9 -4
- package/skills/.claude-plugin/marketplace.json +22 -0
- package/skills/.claude-plugin/plugin.json +25 -0
- package/skills/LICENSE +21 -0
- package/skills/README.md +120 -0
- package/skills/hub/SKILL.md +317 -0
- package/skills/podcast/SKILL.md +146 -0
- package/skills/slice/SKILL.md +205 -0
- package/skills/slice/agents/openai.yaml +4 -0
- package/skills/slice/references/deck-schema.md +183 -0
- package/skills/slice/references/example-decks.md +108 -0
- package/skills/slice/references/themes.md +172 -0
- package/skills/transcribe/SKILL.md +473 -0
- package/skills/video/SKILL.md +261 -0
- package/skills/voxflow-slice/SKILL.md +271 -0
- package/skills/voxflow-slice/examples/article.md +13 -0
- package/skills/voxflow-slice/examples/expected-deck.json +39 -0
- package/skills/voxflow-slice/examples/validate.mjs +46 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ASR command — Local Whisper pipeline.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
'use strict';
|
|
6
|
+
|
|
7
|
+
const fs = require('fs');
|
|
8
|
+
const path = require('path');
|
|
9
|
+
const { ASR_DEFAULTS } = require('../../core/config');
|
|
10
|
+
const { getMediaInfo, extractAudioForAsr } = require('../../core/audio-extract');
|
|
11
|
+
const { transcribeLocal } = require('../../core/whisper-local');
|
|
12
|
+
const { formatSrt, formatPlainText, formatJson } = require('../../core/srt');
|
|
13
|
+
const { FORMAT_EXTENSIONS, formatDuration, formatSize } = require('./helpers');
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Run ASR using local Whisper engine.
|
|
17
|
+
*/
|
|
18
|
+
async function asrLocal(opts) {
|
|
19
|
+
const {
|
|
20
|
+
input,
|
|
21
|
+
format = ASR_DEFAULTS.format,
|
|
22
|
+
output: userOutput,
|
|
23
|
+
model = 'base',
|
|
24
|
+
lang = ASR_DEFAULTS.lang,
|
|
25
|
+
} = opts;
|
|
26
|
+
|
|
27
|
+
console.log('\n=== VoxFlow ASR (Local Whisper) ===');
|
|
28
|
+
|
|
29
|
+
// Validate: local engine requires --input (no URL or mic)
|
|
30
|
+
if (!input) {
|
|
31
|
+
throw new Error(
|
|
32
|
+
'Local whisper engine requires --input <file>.\n' +
|
|
33
|
+
'URL and microphone input are cloud-only features.\n' +
|
|
34
|
+
'Use: voxflow asr --input <file> --engine local'
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const localFile = path.resolve(input);
|
|
39
|
+
if (!fs.existsSync(localFile)) {
|
|
40
|
+
throw new Error(`Input file not found: ${localFile}`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Probe media info
|
|
44
|
+
const info = await getMediaInfo(localFile);
|
|
45
|
+
console.log(`Input: ${path.basename(localFile)}`);
|
|
46
|
+
console.log(`Duration: ${formatDuration(info.durationMs)}`);
|
|
47
|
+
console.log(`Engine: whisper (local)`);
|
|
48
|
+
console.log(`Model: ${model}`);
|
|
49
|
+
|
|
50
|
+
// Extract audio to 16kHz WAV
|
|
51
|
+
console.log(`\n[1/2] Extracting audio (16kHz mono WAV)...`);
|
|
52
|
+
const extracted = await extractAudioForAsr(localFile);
|
|
53
|
+
console.log(` OK (${formatSize(fs.statSync(extracted.wavPath).size)})`);
|
|
54
|
+
|
|
55
|
+
// Transcribe with local whisper
|
|
56
|
+
console.log(`[2/2] Whisper local recognition...`);
|
|
57
|
+
const startTime = Date.now();
|
|
58
|
+
const captions = await transcribeLocal(extracted.wavPath, { model, lang });
|
|
59
|
+
const elapsed = ((Date.now() - startTime) / 1000).toFixed(1);
|
|
60
|
+
console.log(` OK (${elapsed}s, ${captions.length} segments)`);
|
|
61
|
+
|
|
62
|
+
// Clean up temp WAV
|
|
63
|
+
try { fs.unlinkSync(extracted.wavPath); } catch { /* ignore */ }
|
|
64
|
+
|
|
65
|
+
// Format output
|
|
66
|
+
let outputContent;
|
|
67
|
+
switch (format) {
|
|
68
|
+
case 'srt':
|
|
69
|
+
outputContent = formatSrt(captions);
|
|
70
|
+
break;
|
|
71
|
+
case 'txt':
|
|
72
|
+
outputContent = formatPlainText(captions);
|
|
73
|
+
break;
|
|
74
|
+
case 'json':
|
|
75
|
+
outputContent = formatJson(captions);
|
|
76
|
+
break;
|
|
77
|
+
default:
|
|
78
|
+
throw new Error(`Unknown format: ${format}. Use: srt, txt, json`);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Determine output path
|
|
82
|
+
const ext = FORMAT_EXTENSIONS[format] || '.txt';
|
|
83
|
+
let outputPath;
|
|
84
|
+
if (userOutput) {
|
|
85
|
+
outputPath = path.resolve(userOutput);
|
|
86
|
+
} else {
|
|
87
|
+
const fname = path.basename(input, path.extname(input)) + ext;
|
|
88
|
+
outputPath = path.resolve(path.dirname(input), fname);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
fs.writeFileSync(outputPath, outputContent, 'utf8');
|
|
92
|
+
|
|
93
|
+
// Summary
|
|
94
|
+
console.log(`\n=== Done ===`);
|
|
95
|
+
console.log(`Output: ${outputPath}`);
|
|
96
|
+
console.log(`Captions: ${captions.length}`);
|
|
97
|
+
console.log(`Duration: ${formatDuration(info.durationMs)}`);
|
|
98
|
+
console.log(`Engine: whisper (local, no quota used)`);
|
|
99
|
+
|
|
100
|
+
// Preview
|
|
101
|
+
if (captions.length > 0 && format !== 'json') {
|
|
102
|
+
console.log(`\n--- Preview ---`);
|
|
103
|
+
const preview = captions.slice(0, 3);
|
|
104
|
+
for (const cap of preview) {
|
|
105
|
+
const ts = formatDuration(cap.startMs);
|
|
106
|
+
const textSnippet = cap.text.length > 60
|
|
107
|
+
? cap.text.slice(0, 57) + '...'
|
|
108
|
+
: cap.text;
|
|
109
|
+
console.log(` ${ts} ${textSnippet}`);
|
|
110
|
+
}
|
|
111
|
+
if (captions.length > 3) {
|
|
112
|
+
console.log(` ... (${captions.length - 3} more)`);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
outputPath,
|
|
118
|
+
mode: 'local',
|
|
119
|
+
duration: info.durationMs / 1000,
|
|
120
|
+
captionCount: captions.length,
|
|
121
|
+
quotaUsed: 0,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
module.exports = { asrLocal };
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VoxFlow CLI — `asr-jobs` subcommand surface.
|
|
3
|
+
*
|
|
4
|
+
* Browse, inspect, cancel, and download long-running Azure ASR jobs.
|
|
5
|
+
* The transcription itself is started by `voxflow asr --engine azure`;
|
|
6
|
+
* this command is the "dashboard" — it talks to /api/asr/jobs/* and the
|
|
7
|
+
* ~/.config/voxflow/jobs/ pointer store and lets users pick up jobs they
|
|
8
|
+
* started in any other terminal session.
|
|
9
|
+
*
|
|
10
|
+
* Subcommands:
|
|
11
|
+
* list List recent jobs (server-side, paginated)
|
|
12
|
+
* show <jobId> Show one job (full transcript if succeeded)
|
|
13
|
+
* cancel <jobId> Cancel a running job (refunds quota)
|
|
14
|
+
* download <jobId> [--output] [--format] Re-emit the transcript locally
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
const fs = require('fs');
|
|
18
|
+
const path = require('path');
|
|
19
|
+
const { API_BASE } = require('../core/config');
|
|
20
|
+
const { getToken, getTokenInfo } = require('../core/auth');
|
|
21
|
+
const { parseFlag, parseIntFlag, runWithRetry } = require('../core/args');
|
|
22
|
+
const azureClient = require('../core/asr-jobs-client');
|
|
23
|
+
const azureStore = require('../core/asr-jobs-store');
|
|
24
|
+
const { formatSrt, formatPlainText, formatJson } = require('../core/srt');
|
|
25
|
+
|
|
26
|
+
const FORMAT_EXT = { srt: '.srt', txt: '.txt', json: '.json' };
|
|
27
|
+
|
|
28
|
+
// ─── Subcommand: list ────────────────────────────────────────────────────
|
|
29
|
+
async function listJobs({ apiBase, token, limit, jsonOut }) {
|
|
30
|
+
const remote = await azureClient.listJobs(apiBase, token, { limit });
|
|
31
|
+
if (jsonOut) {
|
|
32
|
+
process.stdout.write(`${JSON.stringify(remote, null, 2)}\n`);
|
|
33
|
+
return { count: remote.length };
|
|
34
|
+
}
|
|
35
|
+
if (remote.length === 0) {
|
|
36
|
+
console.log('No ASR jobs found.');
|
|
37
|
+
return { count: 0 };
|
|
38
|
+
}
|
|
39
|
+
console.log(`\n=== ASR Jobs (${remote.length}) ===\n`);
|
|
40
|
+
console.log(' ID Status Duration Created Filename');
|
|
41
|
+
console.log(' ──────────────────────────────────── ───────── ───────── ───────────────────── ────────');
|
|
42
|
+
for (const j of remote) {
|
|
43
|
+
const id = (j.id || '').padEnd(38);
|
|
44
|
+
const status = String(j.status || '?').padEnd(9);
|
|
45
|
+
const dur = j.result_duration_sec
|
|
46
|
+
? `${Math.round(j.result_duration_sec)}s`
|
|
47
|
+
: (j.source_duration_sec ? `~${j.source_duration_sec}s` : '?');
|
|
48
|
+
const created = (j.created_at || '').slice(0, 19).replace('T', ' ').padEnd(21);
|
|
49
|
+
const file = j.source_filename || '';
|
|
50
|
+
console.log(` ${id} ${status} ${dur.padEnd(9)} ${created} ${file}`);
|
|
51
|
+
}
|
|
52
|
+
return { count: remote.length };
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// ─── Subcommand: show ────────────────────────────────────────────────────
|
|
56
|
+
async function showJob({ apiBase, token, jobId, jsonOut }) {
|
|
57
|
+
const job = await azureClient.getJob(apiBase, token, jobId);
|
|
58
|
+
if (jsonOut) {
|
|
59
|
+
process.stdout.write(`${JSON.stringify(job, null, 2)}\n`);
|
|
60
|
+
return job;
|
|
61
|
+
}
|
|
62
|
+
console.log(`\n=== ASR Job ${job.id} ===`);
|
|
63
|
+
console.log(`Status: ${job.status}${job.progress != null ? ` (${job.progress}%)` : ''}`);
|
|
64
|
+
console.log(`Provider: ${job.provider}`);
|
|
65
|
+
console.log(`Source: ${job.source_filename || '(unknown)'}${job.source_size ? ` (${formatSize(job.source_size)})` : ''}`);
|
|
66
|
+
console.log(`Language: ${job.result_language || job.language || '?'}`);
|
|
67
|
+
console.log(`Duration: ${job.result_duration_sec ? Math.round(job.result_duration_sec) + 's' : (job.source_duration_sec ? '~' + job.source_duration_sec + 's' : '?')}`);
|
|
68
|
+
console.log(`Quota: ${job.quota_charged}`);
|
|
69
|
+
console.log(`Created: ${job.created_at}`);
|
|
70
|
+
if (job.completed_at) console.log(`Completed: ${job.completed_at}`);
|
|
71
|
+
if (job.error_code) console.log(`Error: ${job.error_code} — ${job.error_message || ''}`);
|
|
72
|
+
if (job.status === 'succeeded' && job.result_json?.text) {
|
|
73
|
+
const preview = job.result_json.text.slice(0, 500);
|
|
74
|
+
console.log(`\n--- Transcript (${(job.result_segments_count || 0)} segments) ---`);
|
|
75
|
+
console.log(preview + (job.result_json.text.length > 500 ? '...' : ''));
|
|
76
|
+
console.log(`\nRun \`voxflow asr-jobs download ${job.id}\` to write the full transcript.`);
|
|
77
|
+
}
|
|
78
|
+
return job;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// ─── Subcommand: cancel ──────────────────────────────────────────────────
|
|
82
|
+
async function cancelJob({ apiBase, token, jobId }) {
|
|
83
|
+
const job = await azureClient.cancelJob(apiBase, token, jobId);
|
|
84
|
+
if (job.status === 'cancelled') {
|
|
85
|
+
console.log(`Cancelled job ${job.id}. Quota refunded: ${job.quota_charged}.`);
|
|
86
|
+
} else {
|
|
87
|
+
console.log(`Job ${job.id} is already ${job.status} (no-op).`);
|
|
88
|
+
}
|
|
89
|
+
azureStore.deleteJob(jobId);
|
|
90
|
+
return job;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// ─── Subcommand: download ────────────────────────────────────────────────
|
|
94
|
+
async function downloadJob({ apiBase, token, jobId, format, outputPath }) {
|
|
95
|
+
const job = await azureClient.getJob(apiBase, token, jobId);
|
|
96
|
+
if (job.status !== 'succeeded') {
|
|
97
|
+
throw new Error(`Job is ${job.status}, no transcript available yet. Status:\n voxflow asr-jobs show ${jobId}`);
|
|
98
|
+
}
|
|
99
|
+
const segments = job.result_json?.segments || [];
|
|
100
|
+
const captions = segments.map((s, i) => ({
|
|
101
|
+
id: i + 1,
|
|
102
|
+
startMs: Math.round((s.start || 0) * 1000),
|
|
103
|
+
endMs: Math.round((s.end || 0) * 1000),
|
|
104
|
+
text: s.text || '',
|
|
105
|
+
speakerId: s.speaker || null
|
|
106
|
+
}));
|
|
107
|
+
let content;
|
|
108
|
+
switch (format) {
|
|
109
|
+
case 'srt': content = formatSrt(captions); break;
|
|
110
|
+
case 'txt': content = formatPlainText(captions, { includeSpeakers: true }); break;
|
|
111
|
+
case 'json': content = formatJson(captions); break;
|
|
112
|
+
default: throw new Error(`Unknown format: ${format}`);
|
|
113
|
+
}
|
|
114
|
+
const ext = FORMAT_EXT[format] || '.txt';
|
|
115
|
+
// Build filename string before path.resolve — passing a template literal
|
|
116
|
+
// directly triggers ncc's asset-rewrite guard (see scripts/check-no-asset-rewrite.js).
|
|
117
|
+
const defaultFilename = 'asr-' + jobId + ext;
|
|
118
|
+
const target = outputPath
|
|
119
|
+
? path.resolve(outputPath)
|
|
120
|
+
: path.resolve(defaultFilename);
|
|
121
|
+
fs.writeFileSync(target, content, 'utf8');
|
|
122
|
+
console.log(`Wrote ${captions.length} segments to ${target}`);
|
|
123
|
+
return { outputPath: target, captionCount: captions.length };
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// ─── Helpers ─────────────────────────────────────────────────────────────
|
|
127
|
+
function formatSize(bytes) {
|
|
128
|
+
if (!Number.isFinite(bytes)) return '?';
|
|
129
|
+
if (bytes < 1024) return `${bytes} B`;
|
|
130
|
+
if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;
|
|
131
|
+
return `${(bytes / 1024 / 1024).toFixed(1)} MB`;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// ─── Entry point ─────────────────────────────────────────────────────────
|
|
135
|
+
async function handle(args) {
|
|
136
|
+
const subcommand = args[0];
|
|
137
|
+
if (!subcommand || subcommand.startsWith('-')) {
|
|
138
|
+
printHelp();
|
|
139
|
+
process.exit(subcommand ? 0 : 1);
|
|
140
|
+
}
|
|
141
|
+
if (!['list', 'show', 'cancel', 'download'].includes(subcommand)) {
|
|
142
|
+
console.error(`Error: unknown subcommand "${subcommand}". Use one of: list | show | cancel | download`);
|
|
143
|
+
process.exit(1);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
const rest = args.slice(1);
|
|
147
|
+
const apiBase = parseFlag(rest, '--api') || API_BASE;
|
|
148
|
+
const explicitToken = parseFlag(rest, '--token');
|
|
149
|
+
const jsonOut = rest.includes('--json');
|
|
150
|
+
const limit = parseIntFlag(rest, '--limit') || 20;
|
|
151
|
+
const format = parseFlag(rest, '--format') || 'srt';
|
|
152
|
+
const outputPath = parseFlag(rest, '--output', '-o');
|
|
153
|
+
if (format && !['srt', 'txt', 'json'].includes(format)) {
|
|
154
|
+
console.error(`Error: --format must be one of: srt, txt, json (got: "${format}")`);
|
|
155
|
+
process.exit(1);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// First non-flag positional after the subcommand is the jobId (for show/cancel/download).
|
|
159
|
+
const positional = rest.filter((a) => !a.startsWith('-'));
|
|
160
|
+
// Skip values that follow consumed flags by reusing parseFlag — easier: positionals
|
|
161
|
+
// are the args that aren't flags AND aren't immediately after a known flag with value.
|
|
162
|
+
const jobId = pickJobId(rest);
|
|
163
|
+
|
|
164
|
+
const token = explicitToken || await getToken({ api: apiBase });
|
|
165
|
+
const info = getTokenInfo();
|
|
166
|
+
if (info && !jsonOut) console.log(`\x1b[32mLogged in as ${info.email}\x1b[0m`);
|
|
167
|
+
|
|
168
|
+
// opts is what runWithRetry mutates on 401 — it overwrites opts.token with
|
|
169
|
+
// a freshly-refreshed JWT before retrying the inner fn once.
|
|
170
|
+
const opts = { apiBase, token, jobId, limit, jsonOut, format, outputPath };
|
|
171
|
+
|
|
172
|
+
async function dispatch(o) {
|
|
173
|
+
if (subcommand === 'list') {
|
|
174
|
+
return await listJobs({ apiBase: o.apiBase, token: o.token, limit: o.limit, jsonOut: o.jsonOut });
|
|
175
|
+
}
|
|
176
|
+
if (!o.jobId) {
|
|
177
|
+
console.error(`Error: <jobId> is required for ${subcommand}.\nUsage: voxflow asr-jobs ${subcommand} <jobId>`);
|
|
178
|
+
process.exit(1);
|
|
179
|
+
}
|
|
180
|
+
if (subcommand === 'show') return await showJob({ apiBase: o.apiBase, token: o.token, jobId: o.jobId, jsonOut: o.jsonOut });
|
|
181
|
+
if (subcommand === 'cancel') return await cancelJob({ apiBase: o.apiBase, token: o.token, jobId: o.jobId });
|
|
182
|
+
if (subcommand === 'download') return await downloadJob({ apiBase: o.apiBase, token: o.token, jobId: o.jobId, format: o.format, outputPath: o.outputPath });
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
try {
|
|
187
|
+
return await runWithRetry(dispatch, opts, apiBase, explicitToken);
|
|
188
|
+
} catch (err) {
|
|
189
|
+
console.error(`Error: ${err.message}`);
|
|
190
|
+
process.exit(1);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// Unreachable — silences lint for "code path without return"
|
|
194
|
+
return positional;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Walk argv and return the first positional that doesn't follow a value-taking flag.
|
|
198
|
+
function pickJobId(args) {
|
|
199
|
+
const valueFlags = new Set(['--api', '--token', '--limit', '--format', '--output', '-o']);
|
|
200
|
+
let skip = false;
|
|
201
|
+
for (const a of args) {
|
|
202
|
+
if (skip) { skip = false; continue; }
|
|
203
|
+
if (valueFlags.has(a)) { skip = true; continue; }
|
|
204
|
+
if (a.startsWith('-')) continue;
|
|
205
|
+
return a;
|
|
206
|
+
}
|
|
207
|
+
return null;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function printHelp() {
|
|
211
|
+
console.log(`Usage: voxflow asr-jobs <subcommand> [options]
|
|
212
|
+
|
|
213
|
+
Subcommands:
|
|
214
|
+
list List recent ASR jobs (server-side)
|
|
215
|
+
show <jobId> Show one job (with transcript preview)
|
|
216
|
+
cancel <jobId> Cancel a running job (refunds quota)
|
|
217
|
+
download <jobId> Write the transcript to a file
|
|
218
|
+
|
|
219
|
+
Options:
|
|
220
|
+
--api <url> API base URL (default: ${API_BASE})
|
|
221
|
+
--token <jwt> Bypass token cache for one-off calls
|
|
222
|
+
--limit <n> (list) Number of jobs to fetch (default 20)
|
|
223
|
+
--format srt|txt|json (download) Output format (default srt)
|
|
224
|
+
--output, -o <path> (download) Output file path
|
|
225
|
+
--json (list/show) Emit raw JSON to stdout
|
|
226
|
+
|
|
227
|
+
Examples:
|
|
228
|
+
voxflow asr-jobs list
|
|
229
|
+
voxflow asr-jobs show 6f3c2798-87bf-4367-bb4c-08b872e12bef
|
|
230
|
+
voxflow asr-jobs download 6f3c2798-… --format srt -o meeting.srt
|
|
231
|
+
voxflow asr-jobs cancel 6f3c2798-…`);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
const meta = {
|
|
235
|
+
'asr-jobs': {
|
|
236
|
+
usage: '<list|show|cancel|download> [opts]',
|
|
237
|
+
description: 'Browse, inspect, cancel, and download long-running Azure ASR jobs',
|
|
238
|
+
options: [
|
|
239
|
+
`list List recent jobs`,
|
|
240
|
+
`show <jobId> Show one job (with preview)`,
|
|
241
|
+
`cancel <jobId> Cancel a running job`,
|
|
242
|
+
`download <jobId> Write the transcript locally`,
|
|
243
|
+
`--limit <n> (list) default 20`,
|
|
244
|
+
`--format srt|txt|json (download) default srt`,
|
|
245
|
+
`--output, -o <path> (download) target file path`,
|
|
246
|
+
`--json (list/show) raw JSON output`
|
|
247
|
+
],
|
|
248
|
+
examples: [
|
|
249
|
+
'voxflow asr-jobs list',
|
|
250
|
+
'voxflow asr-jobs show 6f3c2798-87bf-4367-bb4c-08b872e12bef',
|
|
251
|
+
'voxflow asr-jobs download 6f3c2798-… --format srt -o meeting.srt',
|
|
252
|
+
'voxflow asr-jobs cancel 6f3c2798-…'
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
module.exports = { handle, meta, listJobs, showJob, cancelJob, downloadJob };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VoxFlow CLI — ASR (Automatic Speech Recognition) command
|
|
3
|
+
*
|
|
4
|
+
* Thin dispatcher — delegates to engine-specific submodules in ./asr/.
|
|
5
|
+
* See asr/index.js for the orchestrator, asr/cloud-transcribe.js,
|
|
6
|
+
* asr/azure-transcribe.js, asr/local-transcribe.js for pipelines.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
module.exports = require('./asr/index');
|