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
//! Audio Native CLI arguments
use clap::{Args, Subcommand};
/// Audio Native arguments
#[derive(Args)]
pub struct AudioNativeArgs {
#[command(subcommand)]
pub command: AudioNativeCommands,
}
#[derive(Subcommand)]
pub enum AudioNativeCommands {
/// List all audio native projects
List {
/// Number of items to show
#[arg(short, long, default_value = "10")]
limit: u32,
/// Page number
#[arg(short, long, default_value = "1")]
page: u32,
},
/// Get details of a specific audio native project
Get {
/// Project ID
project_id: String,
},
/// Create a new audio native project
Create {
/// Project name
#[arg(short, long)]
name: String,
/// Author name
#[arg(long)]
author: Option<String>,
/// Title
#[arg(long)]
title: Option<String>,
/// Image file path
#[arg(long)]
image: Option<String>,
/// Voice ID
#[arg(long)]
voice_id: Option<String>,
/// Model ID
#[arg(long)]
model_id: Option<String>,
/// Content file to convert
#[arg(long)]
file: Option<String>,
/// Use small player
#[arg(long)]
small: bool,
/// Text color (hex)
#[arg(long)]
text_color: Option<String>,
/// Background color (hex)
#[arg(long)]
background_color: Option<String>,
/// Auto convert
#[arg(long)]
auto_convert: bool,
},
}