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
use super::{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>,
/// 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 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>,
/// 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,
/// Skip the built-in challenge solver. Useful when you supply --token from
/// an external solver.
#[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>,
/// Generate instrumental only
#[arg(long)]
pub instrumental: bool,
/// 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>,
/// Style tags
#[arg(long)]
pub tags: Option<String>,
}
#[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<ModelVersion>,
}
#[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,
}
#[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>,
}