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
pub use crate::api::download::DownloadFormat;
#[derive(clap::Args)]
pub struct UploadArgs {
/// Local audio file to upload
pub file: String,
/// Suno upload type value
#[arg(long, default_value = "file_upload")]
pub upload_type: String,
/// Mark the uploaded audio as a stem mix
#[arg(long)]
pub stem_mix: bool,
/// Optional clip title to set after initialization
#[arg(short, long)]
pub title: Option<String>,
/// Optional lyrics to set after initialization
#[arg(long, conflicts_with = "lyrics_file")]
pub lyrics: Option<String>,
/// Read optional lyrics from a file
#[arg(long)]
pub lyrics_file: Option<String>,
/// Max wait time for Suno upload processing, in seconds
#[arg(long)]
pub timeout: Option<u64>,
}
#[derive(clap::Args)]
pub struct UploadStatusArgs {
/// Suno audio upload ID
pub upload_id: String,
}
#[derive(clap::Args)]
pub struct DownloadArgs {
/// Clip ID(s) to download
pub ids: Vec<String>,
/// Output directory
#[arg(short, long)]
pub output: Option<String>,
/// Replace an existing downloaded file with the same clip ID and format
#[arg(long)]
pub force: bool,
/// Download video instead of audio
#[arg(long)]
pub video: bool,
/// Audio format to download through Suno's web download endpoints
#[arg(long, value_enum)]
pub format: Option<DownloadFormat>,
}
#[derive(clap::Args)]
pub struct TimedLyricsArgs {
/// Clip ID
pub id: String,
/// Output as LRC format
#[arg(long)]
pub lrc: bool,
}