sunox 0.0.14

Generate AI music from your terminal via direct Suno web workflows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
use super::{CoverModel, ModelVersion, RemasterModel, VocalGender};

#[derive(clap::Args)]
pub struct CreateArgs {
    /// Description of the song you want
    pub prompt: Option<String>,

    /// Song title
    #[arg(short, long)]
    pub title: Option<String>,

    /// Style tags (optional, guides the generation)
    #[arg(long)]
    pub tags: Option<String>,

    /// Exclude styles (comma-separated): "metal, heavy"
    #[arg(long)]
    pub exclude: Option<String>,

    /// Lyrics text (with [Verse], [Chorus] tags). When provided, create uses
    /// custom lyrics mode instead of description mode.
    #[arg(short, long, conflicts_with = "lyrics_file")]
    pub lyrics: Option<String>,

    /// Read lyrics from file
    #[arg(long)]
    pub lyrics_file: Option<String>,

    /// Model version
    #[arg(short, long)]
    pub model: Option<ModelVersion>,

    /// Vocal gender
    #[arg(long)]
    pub vocal: Option<VocalGender>,

    /// Weirdness level (0-100)
    #[arg(long)]
    pub weirdness: Option<f64>,

    /// Style influence strength (0-100)
    #[arg(long)]
    pub style_influence: Option<f64>,

    /// Enhance style tags through Suno's web prompt upsample flow before submit.
    #[arg(long)]
    pub enhance_tags: bool,

    /// Generate instrumental only
    #[arg(long)]
    pub instrumental: bool,

    /// Challenge token (overrides the built-in solver)
    #[arg(long)]
    pub token: Option<String>,

    /// Force the built-in browser challenge solver before submitting.
    #[arg(long, conflicts_with = "no_captcha")]
    pub captcha: bool,

    /// Do not force the built-in challenge solver; challenge preflight still runs.
    #[arg(long)]
    pub no_captcha: bool,

    /// Voice persona ID (generates with your custom voice)
    #[arg(long)]
    pub persona: Option<String>,
}

#[derive(clap::Args)]
pub struct GenerateArgs {
    /// Song title
    #[arg(short, long)]
    pub title: Option<String>,

    /// Style tags (comma-separated): "pop, synths, upbeat"
    #[arg(long)]
    pub tags: Option<String>,

    /// Exclude styles (comma-separated): "metal, heavy"
    #[arg(long)]
    pub exclude: Option<String>,

    /// Lyrics text (with [Verse], [Chorus] tags)
    #[arg(short, long, conflicts_with = "lyrics_file")]
    pub lyrics: Option<String>,

    /// Read lyrics from file
    #[arg(long)]
    pub lyrics_file: Option<String>,

    /// Model version
    #[arg(short, long)]
    pub model: Option<ModelVersion>,

    /// Vocal gender
    #[arg(long)]
    pub vocal: Option<VocalGender>,

    /// Weirdness level (0-100)
    #[arg(long)]
    pub weirdness: Option<f64>,

    /// Style influence strength (0-100)
    #[arg(long)]
    pub style_influence: Option<f64>,

    /// Enhance style tags through Suno's web prompt upsample flow before submit.
    #[arg(long)]
    pub enhance_tags: bool,

    /// Generate instrumental only (no vocals)
    #[arg(long)]
    pub instrumental: bool,

    /// Challenge token (overrides the built-in solver)
    #[arg(long)]
    pub token: Option<String>,

    /// Force the built-in browser challenge solver before submitting.
    #[arg(long, conflicts_with = "no_captcha")]
    pub captcha: bool,

    /// Do not force the built-in challenge solver; challenge preflight still runs.
    #[arg(long)]
    pub no_captcha: bool,

    /// Voice persona ID (generates with your custom voice)
    #[arg(long)]
    pub persona: Option<String>,
}

#[derive(clap::Args)]
pub struct DescribeArgs {
    /// Song title
    #[arg(short, long)]
    pub title: Option<String>,

    /// Description of the song you want
    #[arg(short, long)]
    pub prompt: String,

    /// Style tags (optional, guides the generation)
    #[arg(long)]
    pub tags: Option<String>,

    /// Model version
    #[arg(short, long)]
    pub model: Option<ModelVersion>,

    /// Vocal gender
    #[arg(long)]
    pub vocal: Option<VocalGender>,

    /// Weirdness level (0-100)
    #[arg(long)]
    pub weirdness: Option<f64>,

    /// Style influence strength (0-100)
    #[arg(long)]
    pub style_influence: Option<f64>,

    /// Enhance style tags through Suno's web prompt upsample flow before submit.
    #[arg(long)]
    pub enhance_tags: bool,

    /// Generate instrumental only
    #[arg(long)]
    pub instrumental: bool,

    /// Challenge token (overrides the built-in solver)
    #[arg(long)]
    pub token: Option<String>,

    /// Force the built-in browser challenge solver before submitting.
    #[arg(long, conflicts_with = "no_captcha")]
    pub captcha: bool,

    /// Skip the built-in challenge solver. This is the default unless
    /// `--captcha` is supplied.
    #[arg(long)]
    pub no_captcha: bool,

    /// Voice persona ID (generates with your custom voice)
    #[arg(long)]
    pub persona: Option<String>,
}

#[derive(clap::Args)]
pub struct LyricsArgs {
    /// What the song should be about
    #[arg(short, long)]
    pub prompt: String,
}

#[derive(clap::Args)]
pub struct ExtendArgs {
    /// Clip ID to extend
    pub clip_id: String,

    /// Timestamp in seconds to continue from
    #[arg(long)]
    pub at: f64,

    /// New lyrics for the extension
    #[arg(long)]
    pub lyrics: Option<String>,

    /// Title for the continued clip. Defaults to the source clip title.
    #[arg(long)]
    pub title: Option<String>,

    /// Style tags
    #[arg(long)]
    pub tags: Option<String>,

    /// Exclude styles. Defaults to the source clip's exclude tags when available.
    #[arg(long)]
    pub exclude: Option<String>,

    /// Force instrumental continuation. Defaults to the source clip setting.
    #[arg(long, conflicts_with = "no_instrumental")]
    pub instrumental: bool,

    /// Force vocal continuation instead of inheriting the source clip setting.
    #[arg(long)]
    pub no_instrumental: bool,

    /// Challenge token (overrides the built-in solver)
    #[arg(long)]
    pub token: Option<String>,

    /// Force the built-in browser challenge solver before submitting.
    #[arg(long, conflicts_with = "no_captcha")]
    pub captcha: bool,

    /// Do not force the built-in challenge solver; challenge preflight still runs.
    #[arg(long)]
    pub no_captcha: bool,
}

#[derive(clap::Args)]
pub struct ConcatArgs {
    /// Clip ID to concatenate into a full song
    pub clip_id: String,
}

#[derive(clap::Args)]
pub struct CoverArgs {
    /// Clip ID to create a cover of
    pub clip_id: String,

    /// Style tags for the cover
    #[arg(long)]
    pub tags: Option<String>,

    /// Model version for the cover
    #[arg(short, long)]
    pub model: Option<CoverModel>,

    /// Challenge token (overrides the built-in solver)
    #[arg(long)]
    pub token: Option<String>,

    /// Force the built-in browser challenge solver before submitting.
    #[arg(long, conflicts_with = "no_captcha")]
    pub captcha: bool,

    /// Do not force the built-in challenge solver; challenge preflight still runs.
    #[arg(long)]
    pub no_captcha: bool,
}

#[derive(clap::Args)]
pub struct InspireArgs {
    /// Source clip ID to use as inspiration
    pub clip_id: String,

    /// Title for the generated song
    #[arg(long)]
    pub title: String,

    /// Starting style tags; Suno expands these through its prompt upsample flow
    #[arg(long)]
    pub tags: String,

    /// Styles to exclude
    #[arg(long)]
    pub exclude: Option<String>,

    /// Lyrics text
    #[arg(
        long,
        conflicts_with = "lyrics_file",
        required_unless_present = "lyrics_file"
    )]
    pub lyrics: Option<String>,

    /// Read lyrics from file
    #[arg(long, required_unless_present = "lyrics")]
    pub lyrics_file: Option<String>,

    /// Weirdness level captured by the inspiration flow (0-100)
    #[arg(long, default_value_t = 40.0)]
    pub weirdness: f64,

    /// Challenge token (overrides the built-in solver)
    #[arg(long)]
    pub token: Option<String>,

    /// Force the built-in browser challenge solver before submitting
    #[arg(long, conflicts_with = "no_captcha")]
    pub captcha: bool,

    /// Do not force the built-in challenge solver; challenge preflight still runs
    #[arg(long)]
    pub no_captcha: bool,
}

#[derive(clap::Args)]
pub struct RemasterArgs {
    /// Clip ID to remaster
    pub clip_id: String,

    /// Remaster model version
    #[arg(long, default_value = "v5.5")]
    pub model: RemasterModel,
}

#[derive(clap::Args)]
pub struct StemsArgs {
    /// Clip ID to extract stems from
    pub clip_id: String,

    /// Challenge token (overrides the built-in solver)
    #[arg(long)]
    pub token: Option<String>,

    /// Force the built-in browser challenge solver before submitting.
    #[arg(long, conflicts_with = "no_captcha")]
    pub captcha: bool,

    /// Do not force the built-in challenge solver; challenge preflight still runs.
    #[arg(long)]
    pub no_captcha: bool,
}

#[derive(clap::Args)]
pub struct SpeedArgs {
    /// Clip ID to adjust
    pub clip_id: String,

    /// Playback speed multiplier, for example 0.94 or 1.25
    #[arg(long)]
    pub multiplier: f64,

    /// Keep pitch while changing speed
    #[arg(long = "no-keep-pitch", default_value_t = true, action = clap::ArgAction::SetFalse)]
    pub keep_pitch: bool,

    /// Title for the generated speed-adjusted clip
    #[arg(long)]
    pub title: Option<String>,
}

#[derive(clap::Args)]
pub struct ReverseArgs {
    /// Clip ID to reverse
    pub clip_id: String,

    /// Title for the generated reversed clip
    #[arg(long)]
    pub title: Option<String>,
}

#[derive(clap::Args)]
pub struct CropArgs {
    /// Clip ID to crop
    pub clip_id: String,

    /// Start time in seconds
    #[arg(long)]
    pub start: f64,

    /// End time in seconds
    #[arg(long)]
    pub end: f64,

    /// Remove the selected section instead of keeping only the selected section
    #[arg(long)]
    pub remove_section: bool,

    /// Title for the generated edited clip
    #[arg(long)]
    pub title: Option<String>,
}

#[derive(clap::Args)]
pub struct FadeArgs {
    /// Clip ID to fade
    pub clip_id: String,

    /// Fade in until this timestamp, in seconds
    #[arg(long = "in")]
    pub fade_in: Option<f64>,

    /// Fade out starting at this timestamp, in seconds
    #[arg(long = "out")]
    pub fade_out: Option<f64>,

    /// Title for the generated faded clip
    #[arg(long)]
    pub title: Option<String>,
}