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
5 changes: 5 additions & 0 deletions src/libs/Soniox/Generated/Soniox.ISonioxClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,10 @@ public partial interface ISonioxClient : global::System.IDisposable
/// </summary>
public UsageLogsClient UsageLogs { get; }

/// <summary>
///
/// </summary>
public VoicesClient Voices { get; }

}
}
101 changes: 101 additions & 0 deletions src/libs/Soniox/Generated/Soniox.IVoicesClient.CreateVoice.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
#nullable enable

namespace Soniox
{
public partial interface IVoicesClient
{
/// <summary>
/// Create voice<br/>
/// Uploads a reference audio clip and creates a new voice.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.Voice> CreateVoiceAsync(

global::Soniox.CreateVoiceRequest request,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create voice<br/>
/// Uploads a reference audio clip and creates a new voice.
/// </summary>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.AutoSDKHttpResponse<global::Soniox.Voice>> CreateVoiceAsResponseAsync(

global::Soniox.CreateVoiceRequest request,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create voice<br/>
/// Uploads a reference audio clip and creates a new voice.
/// </summary>
/// <param name="name">
/// A name for the voice, unique within your project.
/// </param>
/// <param name="file">
/// The reference audio clip for the voice.
/// </param>
/// <param name="filename">
/// The reference audio clip for the voice.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.Voice> CreateVoiceAsync(
string name,
byte[] file,
string filename,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);

/// <summary>
/// Create voice<br/>
/// Uploads a reference audio clip and creates a new voice.
/// </summary>
/// <param name="name">
/// A name for the voice, unique within your project.
/// </param>
/// <param name="file">
/// The reference audio clip for the voice.
/// </param>
/// <param name="filename">
/// The reference audio clip for the voice.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.Voice> CreateVoiceAsync(
string name,
global::System.IO.Stream file,
string filename,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Create voice<br/>
/// Uploads a reference audio clip and creates a new voice.
/// </summary>
/// <param name="name">
/// A name for the voice, unique within your project.
/// </param>
/// <param name="file">
/// The reference audio clip for the voice.
/// </param>
/// <param name="filename">
/// The reference audio clip for the voice.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.AutoSDKHttpResponse<global::Soniox.Voice>> CreateVoiceAsResponseAsync(
string name,
global::System.IO.Stream file,
string filename,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
32 changes: 32 additions & 0 deletions src/libs/Soniox/Generated/Soniox.IVoicesClient.DeleteVoice.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#nullable enable

namespace Soniox
{
public partial interface IVoicesClient
{
/// <summary>
/// Delete voice<br/>
/// Permanently deletes the specified voice and its embeddings.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task DeleteVoiceAsync(
global::System.Guid voiceId,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Delete voice<br/>
/// Permanently deletes the specified voice and its embeddings.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.AutoSDKHttpResponse> DeleteVoiceAsResponseAsync(
global::System.Guid voiceId,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
32 changes: 32 additions & 0 deletions src/libs/Soniox/Generated/Soniox.IVoicesClient.GetVoice.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#nullable enable

namespace Soniox
{
public partial interface IVoicesClient
{
/// <summary>
/// Get voice<br/>
/// Retrieve metadata for a voice.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.Voice> GetVoiceAsync(
global::System.Guid voiceId,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get voice<br/>
/// Retrieve metadata for a voice.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.AutoSDKHttpResponse<global::Soniox.Voice>> GetVoiceAsResponseAsync(
global::System.Guid voiceId,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
46 changes: 46 additions & 0 deletions src/libs/Soniox/Generated/Soniox.IVoicesClient.GetVoices.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#nullable enable

namespace Soniox
{
public partial interface IVoicesClient
{
/// <summary>
/// Get voices<br/>
/// Retrieves the list of voices in your project.
/// </summary>
/// <param name="limit">
/// Maximum number of voices to return.<br/>
/// Default Value: 1000
/// </param>
/// <param name="cursor">
/// Pagination cursor for the next page of results.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.GetVoicesResponse> GetVoicesAsync(
int? limit = default,
string? cursor = default,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get voices<br/>
/// Retrieves the list of voices in your project.
/// </summary>
/// <param name="limit">
/// Maximum number of voices to return.<br/>
/// Default Value: 1000
/// </param>
/// <param name="cursor">
/// Pagination cursor for the next page of results.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.AutoSDKHttpResponse<global::Soniox.GetVoicesResponse>> GetVoicesAsResponseAsync(
int? limit = default,
string? cursor = default,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
28 changes: 28 additions & 0 deletions src/libs/Soniox/Generated/Soniox.IVoicesClient.GetVoicesCount.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#nullable enable

namespace Soniox
{
public partial interface IVoicesClient
{
/// <summary>
/// Get voices count<br/>
/// Returns the total number of voices in your project.
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.GetVoicesCountResponse> GetVoicesCountAsync(
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Get voices count<br/>
/// Returns the total number of voices in your project.
/// </summary>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.AutoSDKHttpResponse<global::Soniox.GetVoicesCountResponse>> GetVoicesCountAsResponseAsync(
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
54 changes: 54 additions & 0 deletions src/libs/Soniox/Generated/Soniox.IVoicesClient.RecomputeVoice.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#nullable enable

namespace Soniox
{
public partial interface IVoicesClient
{
/// <summary>
/// Recompute voice<br/>
/// Prepares the voice for use with available models it is not ready for yet. Use this after a new model is released to make an existing voice usable with it. Models the voice is already prepared for are left unchanged.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.Voice> RecomputeVoiceAsync(
global::System.Guid voiceId,

global::Soniox.RecomputeVoicePayload request,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Recompute voice<br/>
/// Prepares the voice for use with available models it is not ready for yet. Use this after a new model is released to make an existing voice usable with it. Models the voice is already prepared for are left unchanged.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="request"></param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::Soniox.ApiException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.AutoSDKHttpResponse<global::Soniox.Voice>> RecomputeVoiceAsResponseAsync(
global::System.Guid voiceId,

global::Soniox.RecomputeVoicePayload request,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
/// <summary>
/// Recompute voice<br/>
/// Prepares the voice for use with available models it is not ready for yet. Use this after a new model is released to make an existing voice usable with it. Models the voice is already prepared for are left unchanged.
/// </summary>
/// <param name="voiceId"></param>
/// <param name="model">
/// The model to prepare this voice for. If omitted, the voice is prepared for every available model it is not ready for yet.
/// </param>
/// <param name="requestOptions">Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.</param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
global::System.Threading.Tasks.Task<global::Soniox.Voice> RecomputeVoiceAsync(
global::System.Guid voiceId,
string? model = default,
global::Soniox.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
48 changes: 48 additions & 0 deletions src/libs/Soniox/Generated/Soniox.IVoicesClient.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

#nullable enable

namespace Soniox
{
/// <summary>
/// If no httpClient is provided, a new one will be created.<br/>
/// If no baseUri is provided, the default baseUri from OpenAPI spec will be used.
/// </summary>
public partial interface IVoicesClient : global::System.IDisposable
{
/// <summary>
/// The HttpClient instance.
/// </summary>
public global::System.Net.Http.HttpClient HttpClient { get; }

/// <summary>
/// The base URL for the API.
/// </summary>
public System.Uri? BaseUri { get; }

/// <summary>
/// The authorizations to use for the requests.
/// </summary>
public global::System.Collections.Generic.List<global::Soniox.EndPointAuthorization> Authorizations { get; }

/// <summary>
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
/// When false, successful responses are deserialized directly from the response stream for better performance.
/// Error responses are always read as strings regardless of this setting,
/// ensuring <see cref="ApiException.ResponseBody"/> is populated.
/// </summary>
public bool ReadResponseAsString { get; set; }
/// <summary>
/// Client-wide request defaults such as headers, query parameters, retries, and timeout.
/// </summary>
public global::Soniox.AutoSDKClientOptions Options { get; }


/// <summary>
///
/// </summary>
global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; }


}
}
Loading