@isaacthoman/pulpo 0.129.1 → 0.131.0
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 +62 -1
- package/dist/index.js +3466 -1068
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,8 +45,60 @@ for the completed text, `--json` for one final result, or `--jsonl` for the
|
|
|
45
45
|
replayable response event stream. Model testing requires a user session created
|
|
46
46
|
by `pulpo auth login`; management tokens cannot access user chat endpoints.
|
|
47
47
|
|
|
48
|
+
Speech models have a separate catalog from chat models. Create an editable preset
|
|
49
|
+
using an existing provider connection (this only prints JSON; it does not create
|
|
50
|
+
the model or contact the provider):
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
pulpo provider list
|
|
54
|
+
pulpo speech-model preset read-aloud --provider "$PROVIDER_ID" > speech.json
|
|
55
|
+
# Edit speech.json, including enabled, voices, capabilities, limits, and billing.
|
|
56
|
+
pulpo speech-model create --file speech.json
|
|
57
|
+
pulpo speech-model list
|
|
58
|
+
pulpo --json speech-model get read-aloud > speech.json
|
|
59
|
+
# Edit the exported model, keeping its ID unchanged.
|
|
60
|
+
pulpo speech-model update read-aloud --file speech.json
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Create and update accept a **complete model document**, including display name,
|
|
64
|
+
provider connection ID, upstream model ID, enabled status, ordering, voice
|
|
65
|
+
IDs/labels and default voice, instruction/speed capabilities and range, character
|
|
66
|
+
and token limits, MP3/WAV response format, SSE support, and billing configuration.
|
|
67
|
+
Update replaces the configuration; use `get` first to preserve existing values.
|
|
68
|
+
The preset starts disabled with billing off. Set `billUsers` and choose
|
|
69
|
+
`billingUnit: "tokens"`, `"characters"`, or `"duration"`. Rates are integer USD
|
|
70
|
+
microdollars: `inputPriceMicros`/`outputPriceMicros` per million respective tokens,
|
|
71
|
+
`characterPriceMicros` per 1,000 Unicode characters, or `minutePriceMicros` per
|
|
72
|
+
audio minute. Token billing requires SSE usage support. Credentials remain in
|
|
73
|
+
the referenced provider connection.
|
|
74
|
+
|
|
75
|
+
Manage each voice's optional sample independently:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
pulpo speech-model preview upload read-aloud coral ./coral.wav
|
|
79
|
+
pulpo speech-model preview download read-aloud coral --output ./coral-preview.wav
|
|
80
|
+
pulpo --yes speech-model preview delete read-aloud coral
|
|
81
|
+
pulpo --yes speech-model delete read-aloud
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Uploading again replaces that voice's clip. MP3 and WAV files must be nonempty,
|
|
85
|
+
at most 5 MiB, and no longer than 30 seconds; the server validates the audio.
|
|
86
|
+
Deleting a preview leaves its voice configured. Model updates retain clips for
|
|
87
|
+
unchanged voice IDs and remove clips for deleted voices. Model deletion removes
|
|
88
|
+
its clips. Listening to an uploaded sample does not generate speech or incur
|
|
89
|
+
generation charges.
|
|
90
|
+
|
|
91
|
+
Speech catalog and preview commands use `/api/management/v1/speech-models` and
|
|
92
|
+
require a current administrator with `catalog:read` for reads/downloads or
|
|
93
|
+
`catalog:write` for mutations. Older servers without the `speechModels`
|
|
94
|
+
capability report that an upgrade is required. User preferences continue to use
|
|
95
|
+
`pulpo settings get account.speech`, `pulpo settings set account.speech.modelId
|
|
96
|
+
read-aloud`, and settings export/apply; configure per-model `voice`, `instructions`,
|
|
97
|
+
and `speed` in `account.speech.models` with account read/write scopes. No database
|
|
98
|
+
migration is needed for these CLI commands.
|
|
99
|
+
|
|
48
100
|
The major command groups are `context`, `auth`, `token`, `instance`, `settings`,
|
|
49
|
-
`provider`, `lab`, `icon`, `model`, `user`, `usage`, `audit`, `workspace`, `banner`,
|
|
101
|
+
`provider`, `lab`, `icon`, `model`, `speech-model`, `user`, `usage`, `audit`, `workspace`, `banner`,
|
|
50
102
|
`job`, `export`, and `backup`. There is intentionally no restore command.
|
|
51
103
|
|
|
52
104
|
Human-readable tables are the default. `--json` reserves stdout for stable JSON;
|
|
@@ -80,3 +132,12 @@ role. Tokens are shown only once when created and only work below
|
|
|
80
132
|
Deleting a model permanently reassigns its historical chats and usage to the
|
|
81
133
|
hidden `unknown model` placeholder while retaining recorded token and cost
|
|
82
134
|
totals. Active or queued model work must finish before deletion can proceed.
|
|
135
|
+
|
|
136
|
+
### Voxtral, cloned voices, and watermarks
|
|
137
|
+
|
|
138
|
+
Use `speech-model preset --adapter mistral` for the Voxtral preset. The
|
|
139
|
+
`provider-voices`, `provider-sample`, `clone`, `watermark`, `test-voice`, and
|
|
140
|
+
`cleanup` subcommands manage provider discovery, private reference uploads,
|
|
141
|
+
repair, looping watermark settings, synthesized previews, and retryable cleanup.
|
|
142
|
+
See [the speech administration guide](../../docs/speech.md) for complete commands,
|
|
143
|
+
upload limits, billing behavior, and FFmpeg setup.
|