@t3lnet/sceneforge 1.0.7 → 1.0.9
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 +27 -0
- package/dist/index.cjs +419 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +137 -0
- package/dist/index.d.ts +137 -0
- package/dist/index.js +419 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,8 +32,17 @@ await runDemoFromFile("./examples/create-dxf-quote.yaml", {
|
|
|
32
32
|
The CLI is included in this package. After install you can run `sceneforge` via `npx` or your package manager:
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
|
+
# Record a demo
|
|
35
36
|
npx sceneforge record --definition examples/create-dxf-quote.yaml --base-url http://localhost:5173
|
|
37
|
+
|
|
38
|
+
# Run full pipeline
|
|
36
39
|
npx sceneforge pipeline --definition examples/create-dxf-quote.yaml --base-url http://localhost:5173 --clean
|
|
40
|
+
|
|
41
|
+
# Generate voiceover (with caching enabled by default)
|
|
42
|
+
npx sceneforge voiceover --demo my-demo
|
|
43
|
+
|
|
44
|
+
# Manage voice cache
|
|
45
|
+
npx sceneforge voice-cache stats
|
|
37
46
|
```
|
|
38
47
|
|
|
39
48
|
## Extension (optional)
|
|
@@ -46,9 +55,27 @@ bun run build:extension
|
|
|
46
55
|
|
|
47
56
|
Then load the `dist/` folder in `chrome://extensions`.
|
|
48
57
|
|
|
58
|
+
## Voice Cache
|
|
59
|
+
|
|
60
|
+
SceneForge automatically caches synthesized voice audio to reduce ElevenLabs API costs. When the same text is synthesized with the same voice and settings, the cached audio is reused instead of making a new API call.
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Cache is enabled by default. To disable:
|
|
64
|
+
npx sceneforge voiceover --demo my-demo --no-cache
|
|
65
|
+
|
|
66
|
+
# Manage the cache:
|
|
67
|
+
npx sceneforge voice-cache stats # View statistics
|
|
68
|
+
npx sceneforge voice-cache list # List cached entries
|
|
69
|
+
npx sceneforge voice-cache clear # Clear the cache
|
|
70
|
+
npx sceneforge voice-cache prune --days 7 # Remove old entries
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Cache is stored in `.voice-cache/` in your project root.
|
|
74
|
+
|
|
49
75
|
## Notes
|
|
50
76
|
|
|
51
77
|
- Voiceover generation uses ElevenLabs and requires `ELEVENLABS_API_KEY` + `ELEVENLABS_VOICE_ID`.
|
|
78
|
+
- Voice cache reduces API costs by reusing previously synthesized audio.
|
|
52
79
|
- Video pipeline steps require FFmpeg installed locally.
|
|
53
80
|
|
|
54
81
|
## Repository
|