Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ partial void ProcessCreateAudioNativeResponseContent(
ref string content);

/// <summary>
/// Creates Audionative Enabled Project.<br/>
/// Creates AudioNative enabled project, optionally starts conversion and returns project id and embeddable html snippet.
/// Creates Audio Native Enabled Project.<br/>
/// Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet.
/// </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.
Expand Down Expand Up @@ -281,8 +281,8 @@ partial void ProcessCreateAudioNativeResponseContent(
}

/// <summary>
/// Creates Audionative Enabled Project.<br/>
/// Creates AudioNative enabled project, optionally starts conversion and returns project id and embeddable html snippet.
/// Creates Audio Native Enabled Project.<br/>
/// Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet.
/// </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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ partial void ProcessGetAudioNativeByProjectIdSettingsResponseContent(
ref string content);

/// <summary>
/// Audionative Settings<br/>
/// Get Audio Native Project Settings<br/>
/// Get player settings for the specific project.
/// </summary>
/// <param name="projectId">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ partial void ProcessCreateConvaiAgentsCreateResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ElevenLabs.CreateAgentResponseModel> CreateConvaiAgentsCreateAsync(
global::ElevenLabs.ConversationalConfig conversationConfig,
global::ElevenLabs.ConversationalConfigAPIModel conversationConfig,
bool? useToolIds = default,
string? xiApiKey = default,
global::ElevenLabs.AgentPlatformSettingsRequestModel? platformSettings = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,12 @@ partial void ProcessCreateDubbingResponseContent(
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.UseProfanityFilter}"),
name: "use_profanity_filter");
}
if (request.DubbingStudio != default)
{
__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.DubbingStudio}"),
name: "dubbing_studio");
}
__httpRequest.Content = __httpRequestContent;

Expand Down Expand Up @@ -334,6 +340,10 @@ partial void ProcessCreateDubbingResponseContent(
/// <param name="useProfanityFilter">
/// [BETA] Whether transcripts should have profanities censored with the words '[censored]'
/// </param>
/// <param name="dubbingStudio">
/// Whether to prepare dub for edits in dubbing studio or edits as a dubbing resource.<br/>
/// Default Value: false
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::ElevenLabs.DoDubbingResponseModel> CreateDubbingAsync(
Expand All @@ -351,6 +361,7 @@ partial void ProcessCreateDubbingResponseContent(
bool? highestResolution = default,
bool? dropBackgroundAudio = default,
bool? useProfanityFilter = default,
bool? dubbingStudio = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::ElevenLabs.BodyDubAVideoOrAnAudioFileV1DubbingPost
Expand All @@ -368,6 +379,7 @@ partial void ProcessCreateDubbingResponseContent(
HighestResolution = highestResolution,
DropBackgroundAudio = dropBackgroundAudio,
UseProfanityFilter = useProfanityFilter,
DubbingStudio = dubbingStudio,
};

return await CreateDubbingAsync(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,52 +157,52 @@ partial void ProcessGetDubbingByDubbingIdAudioByLanguageCodeResponseContent(
h => h.Value),
};
}
// Validation Error
if ((int)__response.StatusCode == 422)
// Dubbing not ready
if ((int)__response.StatusCode == 425)
{
string? __content_422 = null;
global::ElevenLabs.HTTPValidationError? __value_422 = null;
string? __content_425 = null;
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
__content_425 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
else
{
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
__value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
var __contentStream_425 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
}

throw new global::ElevenLabs.ApiException<global::ElevenLabs.HTTPValidationError>(
message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
throw new global::ElevenLabs.ApiException(
message: __content_425 ?? __response.ReasonPhrase ?? string.Empty,
statusCode: __response.StatusCode)
{
ResponseBody = __content_422,
ResponseObject = __value_422,
ResponseBody = __content_425,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
}
// Dubbing not ready
if ((int)__response.StatusCode == 425)
// Validation Error
if ((int)__response.StatusCode == 422)
{
string? __content_425 = null;
string? __content_422 = null;
global::ElevenLabs.HTTPValidationError? __value_422 = null;
if (ReadResponseAsString)
{
__content_425 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
var __contentStream_425 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
__value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
}

throw new global::ElevenLabs.ApiException(
message: __content_425 ?? __response.ReasonPhrase ?? string.Empty,
throw new global::ElevenLabs.ApiException<global::ElevenLabs.HTTPValidationError>(
message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
statusCode: __response.StatusCode)
{
ResponseBody = __content_425,
ResponseBody = __content_422,
ResponseObject = __value_422,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,52 +169,52 @@ partial void ProcessGetDubbingByDubbingIdTranscriptByLanguageCodeResponseContent
h => h.Value),
};
}
// Validation Error
if ((int)__response.StatusCode == 422)
// Dubbing not ready
if ((int)__response.StatusCode == 425)
{
string? __content_422 = null;
global::ElevenLabs.HTTPValidationError? __value_422 = null;
string? __content_425 = null;
if (ReadResponseAsString)
{
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
__content_425 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
}
else
{
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
__value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
var __contentStream_425 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
}

throw new global::ElevenLabs.ApiException<global::ElevenLabs.HTTPValidationError>(
message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
throw new global::ElevenLabs.ApiException(
message: __content_425 ?? __response.ReasonPhrase ?? string.Empty,
statusCode: __response.StatusCode)
{
ResponseBody = __content_422,
ResponseObject = __value_422,
ResponseBody = __content_425,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value),
};
}
// Dubbing not ready
if ((int)__response.StatusCode == 425)
// Validation Error
if ((int)__response.StatusCode == 422)
{
string? __content_425 = null;
string? __content_422 = null;
global::ElevenLabs.HTTPValidationError? __value_422 = null;
if (ReadResponseAsString)
{
__content_425 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
__value_422 = global::ElevenLabs.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
else
{
var __contentStream_425 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
__value_422 = await global::ElevenLabs.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
}

throw new global::ElevenLabs.ApiException(
message: __content_425 ?? __response.ReasonPhrase ?? string.Empty,
throw new global::ElevenLabs.ApiException<global::ElevenLabs.HTTPValidationError>(
message: __content_422 ?? __response.ReasonPhrase ?? string.Empty,
statusCode: __response.StatusCode)
{
ResponseBody = __content_425,
ResponseBody = __content_422,
ResponseObject = __value_422,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace ElevenLabs
public partial interface IAudioNativeClient
{
/// <summary>
/// Creates Audionative Enabled Project.<br/>
/// Creates AudioNative enabled project, optionally starts conversion and returns project id and embeddable html snippet.
/// Creates Audio Native Enabled Project.<br/>
/// Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet.
/// </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.
Expand All @@ -20,8 +20,8 @@ public partial interface IAudioNativeClient
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Creates Audionative Enabled Project.<br/>
/// Creates AudioNative enabled project, optionally starts conversion and returns project id and embeddable html snippet.
/// Creates Audio Native Enabled Project.<br/>
/// Creates Audio Native enabled project, optionally starts conversion and returns project ID and embeddable HTML snippet.
/// </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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace ElevenLabs
public partial interface IAudioNativeClient
{
/// <summary>
/// Audionative Settings<br/>
/// Get Audio Native Project Settings<br/>
/// Get player settings for the specific project.
/// </summary>
/// <param name="projectId">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public partial interface IConversationalAIClient
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::ElevenLabs.CreateAgentResponseModel> CreateConvaiAgentsCreateAsync(
global::ElevenLabs.ConversationalConfig conversationConfig,
global::ElevenLabs.ConversationalConfigAPIModel conversationConfig,
bool? useToolIds = default,
string? xiApiKey = default,
global::ElevenLabs.AgentPlatformSettingsRequestModel? platformSettings = default,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public partial interface IDubbingClient
/// <param name="useProfanityFilter">
/// [BETA] Whether transcripts should have profanities censored with the words '[censored]'
/// </param>
/// <param name="dubbingStudio">
/// Whether to prepare dub for edits in dubbing studio or edits as a dubbing resource.<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.DoDubbingResponseModel> CreateDubbingAsync(
Expand All @@ -87,6 +91,7 @@ public partial interface IDubbingClient
bool? highestResolution = default,
bool? dropBackgroundAudio = default,
bool? useProfanityFilter = default,
bool? dubbingStudio = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public partial interface IPronunciationDictionaryClient
/// Example: Contains pronunciation's of our character names
/// </param>
/// <param name="workspaceAccess">
/// Should be one of 'editor' or 'viewer'. If not provided, defaults to no access.<br/>
/// Should be one of 'admin', 'editor' or 'viewer'. If not provided, defaults to no access.<br/>
/// Example: viewer
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace ElevenLabs
public partial interface IPronunciationDictionaryClient
{
/// <summary>
/// Get Pls File With A Pronunciation Dictionary Version Rules<br/>
/// Get PLS file with a pronunciation dictionary version rules
/// Get A Pls File With A Pronunciation Dictionary Version Rules<br/>
/// Get a PLS file with a pronunciation dictionary version rules
/// </summary>
/// <param name="dictionaryId">
/// The id of the pronunciation dictionary<br/>
Expand All @@ -21,7 +21,7 @@ public partial interface IPronunciationDictionaryClient
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::ElevenLabs.ApiException"></exception>
global::System.Threading.Tasks.Task GetPronunciationDictionariesByDictionaryIdByVersionIdDownloadAsync(
global::System.Threading.Tasks.Task<byte[]> GetPronunciationDictionariesByDictionaryIdByVersionIdDownloadAsync(
string dictionaryId,
string versionId,
string? xiApiKey = default,
Expand Down
Loading