feat: add kokoro-tts CLI tool for text-to-speech streaming

This commit is contained in:
mitchell 2026-04-22 04:02:54 -04:00
parent 75a87218b0
commit 9c2c31be96
3 changed files with 231 additions and 1 deletions

View file

@ -4,16 +4,20 @@
"type": "module",
"private": true,
"bin": {
"aicl": "out/index.js"
"aicl": "out/index.js",
"aitts": "out/kokoro.js"
},
"scripts": {
"dev": "bun run index.ts",
"prod": "bun run out/index.js",
"check": "bunx --bun @biomejs/biome check --write && bun run tc",
"build:js": "bun run check && bun run build:bundle && bun run shebang",
"build:tts": "bun run check && bun run build:kokoro && bun run shebang:tts",
"build:bundle": "bun build --target=bun --production --sourcemap --outdir=out index.ts",
"build:kokoro": "bun build --target=bun --production --sourcemap --outdir=out kokoro.ts",
"build:bin": "bun build --compile --outfile=out/aicl index.ts",
"shebang": "sed -i '1i#!\\/usr\\/bin\\/env bun' out/index.js",
"shebang:tts": "sed -i '1i#!\\/usr\\/bin\\/env bun' out/kokoro.js",
"tc": "tsc --noEmit --incremental"
},
"devDependencies": {
@ -29,6 +33,7 @@
"ansi-styles": "^6.2.3",
"chalk": "^5.6.2",
"cli-table3": "^0.6.5",
"kokoro-js": "^1.2.1",
"shiki": "^4.0.2",
"terminal-link": "^5.0.0"
}