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
//! Voice Library CLI arguments
use clap::{Args, Subcommand};
/// Voice Library arguments
#[derive(Args)]
pub struct VoiceLibraryArgs {
#[command(subcommand)]
pub command: VoiceLibraryCommands,
}
#[derive(Subcommand)]
pub enum VoiceLibraryCommands {
/// List shared voices in the library
List {
/// Page size
#[arg(short, long)]
page_size: Option<u32>,
/// Category filter (professional, high_quality, cloned, premade, generated)
#[arg(short, long)]
category: Option<String>,
/// Gender filter (male, female)
#[arg(short, long)]
gender: Option<String>,
/// Age filter (young, middle_aged, old)
#[arg(long)]
age: Option<String>,
/// Language filter
#[arg(short, long)]
language: Option<String>,
/// Accent filter
#[arg(long)]
accent: Option<String>,
/// Use cases filter
#[arg(long)]
use_cases: Option<String>,
/// Descriptives filter
#[arg(long)]
descriptives: Option<String>,
/// Search query
#[arg(short, long)]
search: Option<String>,
/// Show only featured voices
#[arg(long)]
featured: bool,
},
/// List saved voices (voices added to collections)
Saved {
/// Page size
#[arg(short, long)]
page_size: Option<u32>,
},
/// Add a shared voice to your library
Add {
/// Public user ID of the voice owner
#[arg(short, long)]
public_user_id: String,
/// Voice ID
#[arg(long)]
voice_id: String,
/// Name for the voice in your library
#[arg(short, long)]
name: String,
},
/// List voice collections
Collections {
/// Page size
#[arg(short, long)]
page_size: Option<u32>,
},
/// Get voices in a collection
CollectionVoices {
/// Collection ID
collection_id: String,
},
}