@inworld/cli 1.3.0 → 1.3.1
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 +35 -0
- package/dist/cli/inworld-mcp.js +56506 -55724
- package/dist/index.js +2000 -1049
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,3 +15,38 @@ After installation, you can use the CLI from anywhere in your system:
|
|
|
15
15
|
```bash
|
|
16
16
|
inworld --help
|
|
17
17
|
```
|
|
18
|
+
|
|
19
|
+
## Audiobook performance
|
|
20
|
+
|
|
21
|
+
`audiobook generate --concurrency N` runs at most N chapter sessions (CLI limit
|
|
22
|
+
20, not an account quota). Check your account's effective quota and other TTS
|
|
23
|
+
traffic before increasing it. Chapters start longest-first but retain their
|
|
24
|
+
original output order; segments within a chapter share one sequential context.
|
|
25
|
+
Retries restart the whole chapter and can repeat paid synthesis. Completed
|
|
26
|
+
chapter MP3s are published atomically so failed encoding cannot create a
|
|
27
|
+
resumable partial file.
|
|
28
|
+
|
|
29
|
+
PCM is written after each segment rather than held for the whole chapter. A
|
|
30
|
+
segment is capped at 32 MiB of decoded audio (concatenation can temporarily
|
|
31
|
+
double that buffer), with an 8 MiB WebSocket frame limit. Connections/context
|
|
32
|
+
creation time out after 30 seconds, synthesis after 120 seconds without audio
|
|
33
|
+
or 10 minutes total per segment. A failed session is terminated before retry;
|
|
34
|
+
voice/model, segment size, encoding and chapter-context semantics are unchanged.
|
|
35
|
+
|
|
36
|
+
When launched as a Node child with IPC, the CLI emits best-effort
|
|
37
|
+
`audiobook-diagnostic` version 1 events: fixed phase/outcome/error categories and
|
|
38
|
+
numeric duration, chapter/segment index, attempt and audio bytes. No book text,
|
|
39
|
+
credentials or server message is included. Diagnostics drop under IPC backlog
|
|
40
|
+
(at most 32 pending); they never block or fail a render. Normal CLI invocation
|
|
41
|
+
needs no IPC. A consumer must whitelist fields before logging them.
|
|
42
|
+
|
|
43
|
+
Offline verification (no credentials or paid synthesis):
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
npm run build
|
|
47
|
+
npm test -w @inworld/cli -- tests/commands/audiobook tests/services/tts_websocket.test.ts
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The generation tests use a fake TTS session and encoder, including 13 chapters
|
|
51
|
+
at concurrency 8. They verify scheduling, original assembly order, bounded
|
|
52
|
+
concurrency and failed-output cleanup, not production throughput or audio quality.
|