-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathElevenLabs.IProjectsClient.CreateProjectsAdd.g.cs
More file actions
157 lines (155 loc) · 9.83 KB
/
ElevenLabs.IProjectsClient.CreateProjectsAdd.g.cs
File metadata and controls
157 lines (155 loc) · 9.83 KB
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
#nullable enable
namespace ElevenLabs
{
public partial interface IProjectsClient
{
/// <summary>
/// Add Project<br/>
/// Creates a new project, it can be either initialized as blank, from a document or from a URL.
/// </summary>
/// <param name="xiApiKey">
/// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
/// </param>
/// <param name="request"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ElevenLabs.ApiException"></exception>
global::System.Threading.Tasks.Task<global::ElevenLabs.AddProjectResponseModel> CreateProjectsAddAsync(
global::ElevenLabs.BodyAddProjectV1ProjectsAddPost request,
string? xiApiKey = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Add Project<br/>
/// Creates a new project, it can be either initialized as blank, from a document or from a URL.
/// </summary>
/// <param name="xiApiKey">
/// Your API key. This is required by most endpoints to access our API programatically. You can view your xi-api-key using the 'Profile' tab on the website.
/// </param>
/// <param name="name">
/// The name of the project, used for identification only.
/// </param>
/// <param name="defaultTitleVoiceId">
/// The voice_id that corresponds to the default voice used for new titles.
/// </param>
/// <param name="defaultParagraphVoiceId">
/// The voice_id that corresponds to the default voice used for new paragraphs.
/// </param>
/// <param name="defaultModelId">
/// The model_id of the model to be used for this project, you can query GET https://api.elevenlabs.io/v1/models to list all available models.
/// </param>
/// <param name="fromUrl">
/// An optional URL from which we will extract content to initialize the project. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank.
/// </param>
/// <param name="fromDocument">
/// An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the project with its content. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank.
/// </param>
/// <param name="fromDocumentname">
/// An optional .epub, .pdf, .txt or similar file can be provided. If provided, we will initialize the project with its content. If this is set, 'from_url' must be null. If neither 'from_url' or 'from_document' are provided we will initialize the project as blank.
/// </param>
/// <param name="qualityPreset">
/// Output quality of the generated audio. Must be one of:<br/>
/// standard - standard output format, 128kbps with 44.1kHz sample rate.<br/>
/// high - high quality output format, 192kbps with 44.1kHz sample rate and major improvements on our side. Using this setting increases the credit cost by 20%.<br/>
/// ultra - ultra quality output format, 192kbps with 44.1kHz sample rate and highest improvements on our side. Using this setting increases the credit cost by 50%.<br/>
/// ultra lossless - ultra quality output format, 705.6kbps with 44.1kHz sample rate and highest improvements on our side in a fully lossless format. Using this setting increases the credit cost by 100%.<br/>
/// Default Value: standard
/// </param>
/// <param name="title">
/// An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download.
/// </param>
/// <param name="author">
/// An optional name of the author of the project, this will be added as metadata to the mp3 file on project / chapter download.
/// </param>
/// <param name="description">
/// An optional description of the project.
/// </param>
/// <param name="genres">
/// An optional list of genres associated with the project.
/// </param>
/// <param name="targetAudience">
/// An optional target audience of the project.
/// </param>
/// <param name="language">
/// An optional language of the project. Two-letter language code (ISO 639-1).
/// </param>
/// <param name="contentType">
/// An optional content type of the project.
/// </param>
/// <param name="originalPublicationDate">
/// An optional original publication date of the project, in the format YYYY-MM-DD or YYYY.
/// </param>
/// <param name="matureContent">
/// An optional mature content of the project.<br/>
/// Default Value: false
/// </param>
/// <param name="isbnNumber">
/// An optional ISBN number of the project you want to create, this will be added as metadata to the mp3 file on project / chapter download.
/// </param>
/// <param name="acxVolumeNormalization">
/// [Deprecated] When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements<br/>
/// Default Value: false
/// </param>
/// <param name="volumeNormalization">
/// When the project is downloaded, should the returned audio have postprocessing in order to make it compliant with audiobook normalized volume requirements<br/>
/// Default Value: false
/// </param>
/// <param name="pronunciationDictionaryLocators">
/// A list of pronunciation dictionary locators (pronunciation_dictionary_id, version_id) encoded as a list of JSON strings for pronunciation dictionaries to be applied to the text. A list of json encoded strings is required as adding projects may occur through formData as opposed to jsonBody. To specify multiple dictionaries use multiple --form lines in your curl, such as --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"Vmd4Zor6fplcA7WrINey\",\"version_id\":\"hRPaxjlTdR7wFMhV4w0b\"}"' --form 'pronunciation_dictionary_locators="{\"pronunciation_dictionary_id\":\"JzWtcGQMJ6bnlWwyMo7e\",\"version_id\":\"lbmwxiLu4q6txYxgdZqn\"}"'. Note that multiple dictionaries are not currently supported by our UI which will only show the first.
/// </param>
/// <param name="callbackUrl">
/// A url that will be called by our service when the project is converted with a json containing the status of the conversion
/// </param>
/// <param name="fiction">
/// An optional fiction of the project.
/// </param>
/// <param name="qualityCheckOn">
/// Whether to run quality check on the generated audio and regenerate if needed. Applies to individual block conversion.
/// </param>
/// <param name="applyTextNormalization">
/// This parameter controls text normalization with four modes: 'auto', 'on', 'apply_english' and 'off'.<br/>
/// When set to 'auto', the system will automatically decide whether to apply text normalization <br/>
/// (e.g., spelling out numbers). With 'on', text normalization will always be applied, while <br/>
/// with 'off', it will be skipped. 'apply_english' is the same as 'on' but will assume that text is in English.<br/>
///
/// </param>
/// <param name="autoConvert">
/// Whether to auto convert the project to audio or not.<br/>
/// Default Value: false
/// </param>
/// <param name="autoAssignVoices">
/// [Alpha Feature] Whether automatically assign voices to phrases in the create Project.<br/>
/// Default Value: false
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ElevenLabs.AddProjectResponseModel> CreateProjectsAddAsync(
string name,
string defaultTitleVoiceId,
string defaultParagraphVoiceId,
string defaultModelId,
string? xiApiKey = default,
string? fromUrl = default,
byte[]? fromDocument = default,
string? fromDocumentname = default,
string? qualityPreset = default,
string? title = default,
string? author = default,
string? description = default,
global::System.Collections.Generic.IList<string>? genres = default,
global::ElevenLabs.BodyAddProjectV1ProjectsAddPostTargetAudience? targetAudience = default,
string? language = default,
string? contentType = default,
string? originalPublicationDate = default,
bool? matureContent = default,
string? isbnNumber = default,
bool? acxVolumeNormalization = default,
bool? volumeNormalization = default,
global::System.Collections.Generic.IList<string>? pronunciationDictionaryLocators = default,
string? callbackUrl = default,
global::ElevenLabs.BodyAddProjectV1ProjectsAddPostFiction? fiction = default,
bool? qualityCheckOn = default,
global::ElevenLabs.BodyAddProjectV1ProjectsAddPostApplyTextNormalization? applyTextNormalization = default,
bool? autoConvert = default,
bool? autoAssignVoices = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}