@pollinations/cli 0.1.34 → 0.1.35
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/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var init_package = __esm({
|
|
|
14
14
|
"package.json"() {
|
|
15
15
|
package_default = {
|
|
16
16
|
name: "@pollinations/cli",
|
|
17
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.35",
|
|
18
18
|
description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
|
|
19
19
|
type: "module",
|
|
20
20
|
bin: {
|
|
@@ -1041,7 +1041,6 @@ async function generateSimple(text, opts) {
|
|
|
1041
1041
|
if (opts.voice) params.set("voice", opts.voice);
|
|
1042
1042
|
if (opts.format !== "mp3") params.set("response_format", opts.format);
|
|
1043
1043
|
if (opts.model) params.set("model", opts.model);
|
|
1044
|
-
if (opts.speed) params.set("speed", opts.speed);
|
|
1045
1044
|
if (opts.duration) params.set("duration", opts.duration);
|
|
1046
1045
|
if (opts.instrumental) params.set("instrumental", "true");
|
|
1047
1046
|
if (opts.seed) params.set("seed", opts.seed);
|
|
@@ -1084,7 +1083,7 @@ Examples:
|
|
|
1084
1083
|
echo "the sky today" | polli gen audio --voice callum --play
|
|
1085
1084
|
polli gen audio --model elevenmusic --duration 30 "lofi beats" --output song.mp3
|
|
1086
1085
|
`
|
|
1087
|
-
).argument("[text]", "Text to speak (or pipe via stdin)").option("--voice <voice>", "Voice name (default: the model's own)").option("--format <fmt>", "mp3/opus/aac/flac/wav", "mp3").option("--model <model>", "Audio model").option("--
|
|
1086
|
+
).argument("[text]", "Text to speak (or pipe via stdin)").option("--voice <voice>", "Voice name (default: the model's own)").option("--format <fmt>", "mp3/opus/aac/flac/wav", "mp3").option("--model <model>", "Audio model").option("--duration <n>", "Music duration in seconds (elevenmusic)").option("--instrumental", "Instrumental only (elevenmusic)").option("--seed <n>", "Seed for deterministic output").option("--output <path>", "Save to file").option("--play", "Play the audio after saving (platform player)").option(
|
|
1088
1087
|
"--timestamps",
|
|
1089
1088
|
"Also save character-level timing as JSON next to the audio"
|
|
1090
1089
|
).action(async (textArg, opts) => {
|