Skip to content

Commit e1a3e66

Browse files
committed
test: Updated ElevenLabs spec
1 parent 2146571 commit e1a3e66

File tree

1,866 files changed

+143775
-17399
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,866 files changed

+143775
-17399
lines changed

specs/elevenlabs.json

Lines changed: 24560 additions & 13252 deletions
Large diffs are not rendered by default.

src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.Api.g.verified.cs

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace G
66
{
77
/// <summary>
8-
/// This is the documentation for the ElevenLabs API. You can use this API to use our service programmatically, this is done by using your xi-api-key. &lt;br/&gt; You can view your xi-api-key using the 'Profile' tab on https://elevenlabs.io. Our API is experimental so all endpoints are subject to change.<br/>
8+
/// This is the documentation for the ElevenLabs API. You can use this API to use our service programmatically, this is done by using your API key. You can find your API key in the dashboard at https://elevenlabs.io/app/settings/api-keys.<br/>
99
/// If no httpClient is provided, a new one will be created.<br/>
1010
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
1111
/// </summary>
@@ -57,7 +57,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
5757
};
5858

5959
/// <summary>
60-
/// Transcribe your audio files with detailed speaker annotations and precise timestamps using our cutting-edge model. Speech-to-text is currently in alpha and available to a select group of users. We plan to roll it out more broadly soon.
60+
/// Transcribe your audio files with detailed speaker annotations and precise timestamps using our cutting-edge model.
6161
/// </summary>
6262
public SpeechToTextClient SpeechToText => new SpeechToTextClient(HttpClient, authorizations: Authorizations)
6363
{
@@ -84,7 +84,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
8484
};
8585

8686
/// <summary>
87-
/// Access to voices created either by you or us.
87+
/// Access to voices created either by you or ElevenLabs.
8888
/// </summary>
8989
public VoicesClient Voices => new VoicesClient(HttpClient, authorizations: Authorizations)
9090
{
@@ -111,9 +111,9 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
111111
};
112112

113113
/// <summary>
114-
/// Access, create and convert Projects programmatically, only specifically whitelisted accounts can access the Projects API. If you need access please contact our sales team.
114+
/// Access, create and convert Studio Projects programmatically, only specifically whitelisted accounts can access the Projects API. If you need access please contact our sales team.
115115
/// </summary>
116-
public ProjectsClient Projects => new ProjectsClient(HttpClient, authorizations: Authorizations)
116+
public StudiosClient Studios => new StudiosClient(HttpClient, authorizations: Authorizations)
117117
{
118118
ReadResponseAsString = ReadResponseAsString,
119119
JsonSerializerOptions = JsonSerializerOptions,
@@ -137,6 +137,15 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
137137
JsonSerializerOptions = JsonSerializerOptions,
138138
};
139139

140+
/// <summary>
141+
///
142+
/// </summary>
143+
public TextToDialogueClient TextToDialogue => new TextToDialogueClient(HttpClient, authorizations: Authorizations)
144+
{
145+
ReadResponseAsString = ReadResponseAsString,
146+
JsonSerializerOptions = JsonSerializerOptions,
147+
};
148+
140149
/// <summary>
141150
///
142151
/// </summary>
@@ -173,6 +182,15 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
173182
JsonSerializerOptions = JsonSerializerOptions,
174183
};
175184

185+
/// <summary>
186+
///
187+
/// </summary>
188+
public ProjectsClient Projects => new ProjectsClient(HttpClient, authorizations: Authorizations)
189+
{
190+
ReadResponseAsString = ReadResponseAsString,
191+
JsonSerializerOptions = JsonSerializerOptions,
192+
};
193+
176194
/// <summary>
177195
///
178196
/// </summary>
@@ -200,6 +218,15 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
200218
JsonSerializerOptions = JsonSerializerOptions,
201219
};
202220

221+
/// <summary>
222+
///
223+
/// </summary>
224+
public EnterpriseClient Enterprise => new EnterpriseClient(HttpClient, authorizations: Authorizations)
225+
{
226+
ReadResponseAsString = ReadResponseAsString,
227+
JsonSerializerOptions = JsonSerializerOptions,
228+
};
229+
203230
/// <summary>
204231
///
205232
/// </summary>
@@ -245,6 +272,15 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
245272
JsonSerializerOptions = JsonSerializerOptions,
246273
};
247274

275+
/// <summary>
276+
///
277+
/// </summary>
278+
public PvcVoicesClient PvcVoices => new PvcVoicesClient(HttpClient, authorizations: Authorizations)
279+
{
280+
ReadResponseAsString = ReadResponseAsString,
281+
JsonSerializerOptions = JsonSerializerOptions,
282+
};
283+
248284
/// <summary>
249285
/// Creates a new instance of the Api.
250286
/// If no httpClient is provided, a new one will be created.

src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ partial void ProcessCreateAudioIsolationResponse(
7171
content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty<byte>()),
7272
name: "audio",
7373
fileName: request.Audioname ?? string.Empty);
74+
if (request.FileFormat != default)
75+
{
76+
__httpRequestContent.Add(
77+
content: new global::System.Net.Http.StringContent($"{request.FileFormat?.ToValueString()}"),
78+
name: "file_format");
79+
}
7480
__httpRequest.Content = __httpRequestContent;
7581

7682
PrepareRequest(
@@ -197,18 +203,25 @@ partial void ProcessCreateAudioIsolationResponse(
197203
/// <param name="audioname">
198204
/// The audio file from which vocals/speech will be isolated from.
199205
/// </param>
206+
/// <param name="fileFormat">
207+
/// The format of input audio. Options are 'pcm_s16le_16' or 'other' For `pcm_s16le_16`, the input audio must be 16-bit PCM at a 16kHz sample rate, single channel (mono), and little-endian byte order. Latency will be lower than with passing an encoded waveform.<br/>
208+
/// Default Value: other<br/>
209+
/// Example: pcm_s16le_16
210+
/// </param>
200211
/// <param name="cancellationToken">The token to cancel the operation with</param>
201212
/// <exception cref="global::System.InvalidOperationException"></exception>
202213
public async global::System.Threading.Tasks.Task CreateAudioIsolationAsync(
203214
byte[] audio,
204215
string audioname,
205216
string? xiApiKey = default,
217+
global::G.BodyAudioIsolationV1AudioIsolationPostFileFormat? fileFormat = default,
206218
global::System.Threading.CancellationToken cancellationToken = default)
207219
{
208220
var __request = new global::G.BodyAudioIsolationV1AudioIsolationPost
209221
{
210222
Audio = audio,
211223
Audioname = audioname,
224+
FileFormat = fileFormat,
212225
};
213226

214227
await CreateAudioIsolationAsync(

src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ partial void ProcessCreateAudioIsolationStreamResponse(
7171
content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty<byte>()),
7272
name: "audio",
7373
fileName: request.Audioname ?? string.Empty);
74+
if (request.FileFormat != default)
75+
{
76+
__httpRequestContent.Add(
77+
content: new global::System.Net.Http.StringContent($"{request.FileFormat?.ToValueString()}"),
78+
name: "file_format");
79+
}
7480
__httpRequest.Content = __httpRequestContent;
7581

7682
PrepareRequest(
@@ -197,18 +203,25 @@ partial void ProcessCreateAudioIsolationStreamResponse(
197203
/// <param name="audioname">
198204
/// The audio file from which vocals/speech will be isolated from.
199205
/// </param>
206+
/// <param name="fileFormat">
207+
/// The format of input audio. Options are 'pcm_s16le_16' or 'other' For `pcm_s16le_16`, the input audio must be 16-bit PCM at a 16kHz sample rate, single channel (mono), and little-endian byte order. Latency will be lower than with passing an encoded waveform.<br/>
208+
/// Default Value: other<br/>
209+
/// Example: pcm_s16le_16
210+
/// </param>
200211
/// <param name="cancellationToken">The token to cancel the operation with</param>
201212
/// <exception cref="global::System.InvalidOperationException"></exception>
202213
public async global::System.Threading.Tasks.Task CreateAudioIsolationStreamAsync(
203214
byte[] audio,
204215
string audioname,
205216
string? xiApiKey = default,
217+
global::G.BodyAudioIsolationStreamV1AudioIsolationStreamPostFileFormat? fileFormat = default,
206218
global::System.Threading.CancellationToken cancellationToken = default)
207219
{
208220
var __request = new global::G.BodyAudioIsolationStreamV1AudioIsolationStreamPost
209221
{
210222
Audio = audio,
211223
Audioname = audioname,
224+
FileFormat = fileFormat,
212225
};
213226

214227
await CreateAudioIsolationStreamAsync(

src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ partial void ProcessCreateAudioNativeResponseContent(
296296
/// TTS Model ID used in the player. If not provided, default model ID set in the Player settings is used.
297297
/// </param>
298298
/// <param name="file">
299-
/// Either txt or HTML input file containing the article content. HTML should be formatted as follows '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;div&amp;gt;&amp;lt;p&amp;gt;Your content&amp;lt;/p&amp;gt;&amp;lt;h5&amp;gt;More of your content&amp;lt;/h5&amp;gt;&amp;lt;p&amp;gt;Some more of your content&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;'
299+
/// Either txt or HTML input file containing the article content. HTML should be formatted as follows '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;div&amp;gt;&amp;lt;p&amp;gt;Your content&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;More of your content&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;Some more of your content&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;'
300300
/// </param>
301301
/// <param name="filename">
302-
/// Either txt or HTML input file containing the article content. HTML should be formatted as follows '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;div&amp;gt;&amp;lt;p&amp;gt;Your content&amp;lt;/p&amp;gt;&amp;lt;h5&amp;gt;More of your content&amp;lt;/h5&amp;gt;&amp;lt;p&amp;gt;Some more of your content&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;'
302+
/// Either txt or HTML input file containing the article content. HTML should be formatted as follows '&amp;lt;html&amp;gt;&amp;lt;body&amp;gt;&amp;lt;div&amp;gt;&amp;lt;p&amp;gt;Your content&amp;lt;/p&amp;gt;&amp;lt;h3&amp;gt;More of your content&amp;lt;/h3&amp;gt;&amp;lt;p&amp;gt;Some more of your content&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;'
303303
/// </param>
304304
/// <param name="autoConvert">
305305
/// Whether to auto convert the project to audio or not.<br/>

0 commit comments

Comments
 (0)