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 @@ -112,6 +112,12 @@ internal static partial class OpenAPIV1CreateTtsCommandApiCommand
{
Description = @"Early stopping threshold for batch processing.",
};

private static Option<global::System.Collections.Generic.IList<string>?> Features { get; } = new(
name: @"--features")
{
Description = @"Optional request-scoped TTS feature flags forwarded verbatim to the inference backend. Use [""quality-guard""] to enable the quality guard for this synthesis request. Feature availability is determined by the inference backend.",
};
private static readonly ProsodyControlOptionSet ProsodyOptions = ProsodyControlOptionSet.Create(@"prosody");
private static Option<string?> Input { get; } = new(@"--input")
{
Expand Down Expand Up @@ -150,7 +156,8 @@ public static Command Create()
command.Options.Add(RepetitionPenalty);
command.Options.Add(MinChunkLength);
command.Options.Add(ConditionOnPreviousChunks);
command.Options.Add(EarlyStopThreshold); command.Options.Add(ProsodyOptions.Speed);
command.Options.Add(EarlyStopThreshold);
command.Options.Add(Features); command.Options.Add(ProsodyOptions.Speed);
command.Options.Add(ProsodyOptions.Volume);
command.Options.Add(ProsodyOptions.NormalizeLoudness);
command.Options.Add(Input);
Expand Down Expand Up @@ -196,6 +203,7 @@ await CliRuntime.RunAsync(async () =>
var minChunkLength = CliRuntime.WasSpecified(parseResult, MinChunkLength) ? parseResult.GetValue(MinChunkLength) : (__requestBase is { } __MinChunkLengthBaseValue ? __MinChunkLengthBaseValue.MinChunkLength : default);
var conditionOnPreviousChunks = CliRuntime.WasSpecified(parseResult, ConditionOnPreviousChunks) ? parseResult.GetValue(ConditionOnPreviousChunks) : (__requestBase is { } __ConditionOnPreviousChunksBaseValue ? __ConditionOnPreviousChunksBaseValue.ConditionOnPreviousChunks : default);
var earlyStopThreshold = CliRuntime.WasSpecified(parseResult, EarlyStopThreshold) ? parseResult.GetValue(EarlyStopThreshold) : (__requestBase is { } __EarlyStopThresholdBaseValue ? __EarlyStopThresholdBaseValue.EarlyStopThreshold : default);
var features = CliRuntime.WasSpecified(parseResult, Features) ? parseResult.GetValue(Features) : (__requestBase is { } __FeaturesBaseValue ? __FeaturesBaseValue.Features : default);

var __ProsodyBase = __requestBase is { } __ProsodyBaseValue ? __ProsodyBaseValue.Prosody : default; var prosodySpeed = CliRuntime.WasSpecified(parseResult, ProsodyOptions.Speed) ? parseResult.GetValue(ProsodyOptions.Speed) : (__ProsodyBase is { } __ProsodyspeedBaseValue ? __ProsodyspeedBaseValue.Speed : default);
var prosodyVolume = CliRuntime.WasSpecified(parseResult, ProsodyOptions.Volume) ? parseResult.GetValue(ProsodyOptions.Volume) : (__ProsodyBase is { } __ProsodyvolumeBaseValue ? __ProsodyvolumeBaseValue.Volume : default);
Expand Down Expand Up @@ -233,6 +241,7 @@ await client.OpenAPIV1.CreateTtsAsync(
minChunkLength: minChunkLength,
conditionOnPreviousChunks: conditionOnPreviousChunks,
earlyStopThreshold: earlyStopThreshold,
features: features,
prosody: prosody,
cancellationToken: cancellationToken).ConfigureAwait(false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ internal static partial class OpenAPIV1CreateTtsStreamWithTimestampCommandApiCom
{
Description = @"Early stopping threshold for batch processing.",
};

private static Option<global::System.Collections.Generic.IList<string>?> Features { get; } = new(
name: @"--features")
{
Description = @"Optional request-scoped TTS feature flags forwarded verbatim to the inference backend. Use [""quality-guard""] to enable the quality guard for this synthesis request. Feature availability is determined by the inference backend.",
};
private static readonly ProsodyControlOptionSet ProsodyOptions = ProsodyControlOptionSet.Create(@"prosody");
private static Option<string?> Input { get; } = new(@"--input")
{
Expand Down Expand Up @@ -150,7 +156,8 @@ public static Command Create()
command.Options.Add(RepetitionPenalty);
command.Options.Add(MinChunkLength);
command.Options.Add(ConditionOnPreviousChunks);
command.Options.Add(EarlyStopThreshold); command.Options.Add(ProsodyOptions.Speed);
command.Options.Add(EarlyStopThreshold);
command.Options.Add(Features); command.Options.Add(ProsodyOptions.Speed);
command.Options.Add(ProsodyOptions.Volume);
command.Options.Add(ProsodyOptions.NormalizeLoudness);
command.Options.Add(Input);
Expand Down Expand Up @@ -196,6 +203,7 @@ await CliRuntime.RunAsync(async () =>
var minChunkLength = CliRuntime.WasSpecified(parseResult, MinChunkLength) ? parseResult.GetValue(MinChunkLength) : (__requestBase is { } __MinChunkLengthBaseValue ? __MinChunkLengthBaseValue.MinChunkLength : default);
var conditionOnPreviousChunks = CliRuntime.WasSpecified(parseResult, ConditionOnPreviousChunks) ? parseResult.GetValue(ConditionOnPreviousChunks) : (__requestBase is { } __ConditionOnPreviousChunksBaseValue ? __ConditionOnPreviousChunksBaseValue.ConditionOnPreviousChunks : default);
var earlyStopThreshold = CliRuntime.WasSpecified(parseResult, EarlyStopThreshold) ? parseResult.GetValue(EarlyStopThreshold) : (__requestBase is { } __EarlyStopThresholdBaseValue ? __EarlyStopThresholdBaseValue.EarlyStopThreshold : default);
var features = CliRuntime.WasSpecified(parseResult, Features) ? parseResult.GetValue(Features) : (__requestBase is { } __FeaturesBaseValue ? __FeaturesBaseValue.Features : default);

var __ProsodyBase = __requestBase is { } __ProsodyBaseValue ? __ProsodyBaseValue.Prosody : default; var prosodySpeed = CliRuntime.WasSpecified(parseResult, ProsodyOptions.Speed) ? parseResult.GetValue(ProsodyOptions.Speed) : (__ProsodyBase is { } __ProsodyspeedBaseValue ? __ProsodyspeedBaseValue.Speed : default);
var prosodyVolume = CliRuntime.WasSpecified(parseResult, ProsodyOptions.Volume) ? parseResult.GetValue(ProsodyOptions.Volume) : (__ProsodyBase is { } __ProsodyvolumeBaseValue ? __ProsodyvolumeBaseValue.Volume : default);
Expand Down Expand Up @@ -233,6 +241,7 @@ await CliRuntime.RunAsync(async () =>
minChunkLength: minChunkLength,
conditionOnPreviousChunks: conditionOnPreviousChunks,
earlyStopThreshold: earlyStopThreshold,
features: features,
prosody: prosody,
cancellationToken: cancellationToken);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ public partial interface IOpenAPIV1Client
/// Early stopping threshold for batch processing.<br/>
/// Default Value: 1
/// </param>
/// <param name="features">
/// Optional request-scoped TTS feature flags forwarded verbatim to the inference backend. Use ["quality-guard"] to enable the quality guard for this synthesis request. Feature availability is determined by the inference backend.<br/>
/// Default Value: []
/// </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>
Expand All @@ -193,6 +197,7 @@ public partial interface IOpenAPIV1Client
int? minChunkLength = default,
bool? conditionOnPreviousChunks = default,
double? earlyStopThreshold = default,
global::System.Collections.Generic.IList<string>? features = default,
global::FishAudio.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ public partial interface IOpenAPIV1Client
/// Early stopping threshold for batch processing.<br/>
/// Default Value: 1
/// </param>
/// <param name="features">
/// Optional request-scoped TTS feature flags forwarded verbatim to the inference backend. Use ["quality-guard"] to enable the quality guard for this synthesis request. Feature availability is determined by the inference backend.<br/>
/// Default Value: []
/// </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>
Expand All @@ -137,6 +141,7 @@ public partial interface IOpenAPIV1Client
int? minChunkLength = default,
bool? conditionOnPreviousChunks = default,
double? earlyStopThreshold = default,
global::System.Collections.Generic.IList<string>? features = default,
global::FishAudio.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ public sealed partial class GetWalletPackageResponse
[global::System.Text.Json.Serialization.JsonPropertyName("last_synced_at")]
public global::System.DateTime? LastSyncedAt { get; set; }

/// <summary>
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("subscription_currency")]
public string? SubscriptionCurrency { get; set; }

/// <summary>
/// Default Value: 0
/// </summary>
Expand Down Expand Up @@ -157,6 +163,9 @@ public sealed partial class GetWalletPackageResponse
/// <param name="lastSyncedAt">
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
/// <param name="subscriptionCurrency">
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </param>
/// <param name="extraBalance">
/// Default Value: 0
/// </param>
Expand All @@ -182,6 +191,7 @@ public GetWalletPackageResponse(
global::System.DateTime? cancelAt,
object? scheduledChange,
global::System.DateTime? lastSyncedAt,
string? subscriptionCurrency,
int? extraBalance,
bool? hasUsedTrial)
{
Expand All @@ -200,6 +210,7 @@ public GetWalletPackageResponse(
this.CancelAt = cancelAt;
this.ScheduledChange = scheduledChange;
this.LastSyncedAt = lastSyncedAt;
this.SubscriptionCurrency = subscriptionCurrency;
this.ExtraBalance = extraBalance;
this.HasUsedTrial = hasUsedTrial;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
#nullable enable

namespace FishAudio
{
public sealed partial class GetWalletPackageResponseSubscriptionCurrency
{
/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerContext.
/// </summary>
public string ToJson(
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Serialize(
this,
this.GetType(),
jsonSerializerContext);
}

/// <summary>
/// Serializes the current instance to a JSON string using the generated default JsonSerializerContext.
/// </summary>
public string ToJson()
{
return ToJson(global::FishAudio.SourceGenerationContext.Default);
}

/// <summary>
/// Serializes the current instance to a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public string ToJson(
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
if (jsonSerializerOptions is null)
{
return ToJson(global::FishAudio.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.Serialize(
this,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerContext.
/// </summary>
public static global::FishAudio.GetWalletPackageResponseSubscriptionCurrency? FromJson(
string json,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return global::System.Text.Json.JsonSerializer.Deserialize(
json,
typeof(global::FishAudio.GetWalletPackageResponseSubscriptionCurrency),
jsonSerializerContext) as global::FishAudio.GetWalletPackageResponseSubscriptionCurrency;
}

/// <summary>
/// Deserializes a JSON string using the generated default JsonSerializerContext.
/// </summary>
public static global::FishAudio.GetWalletPackageResponseSubscriptionCurrency? FromJson(
string json)
{
return FromJson(
json,
global::FishAudio.SourceGenerationContext.Default);
}

/// <summary>
/// Deserializes a JSON string using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::FishAudio.GetWalletPackageResponseSubscriptionCurrency? FromJson(
string json,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
if (jsonSerializerOptions is null)
{
return FromJson(
json,
global::FishAudio.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.Deserialize<global::FishAudio.GetWalletPackageResponseSubscriptionCurrency>(
json,
jsonSerializerOptions);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerContext.
/// </summary>
public static async global::System.Threading.Tasks.ValueTask<global::FishAudio.GetWalletPackageResponseSubscriptionCurrency?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
{
return (await global::System.Text.Json.JsonSerializer.DeserializeAsync(
jsonStream,
typeof(global::FishAudio.GetWalletPackageResponseSubscriptionCurrency),
jsonSerializerContext).ConfigureAwait(false)) as global::FishAudio.GetWalletPackageResponseSubscriptionCurrency;
}

/// <summary>
/// Deserializes a JSON stream using the generated default JsonSerializerContext.
/// </summary>
public static global::System.Threading.Tasks.ValueTask<global::FishAudio.GetWalletPackageResponseSubscriptionCurrency?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream)
{
return FromJsonStreamAsync(
jsonStream,
global::FishAudio.SourceGenerationContext.Default);
}

/// <summary>
/// Deserializes a JSON stream using the provided JsonSerializerOptions.
/// </summary>
#if NET8_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
[global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")]
#endif
public static global::System.Threading.Tasks.ValueTask<global::FishAudio.GetWalletPackageResponseSubscriptionCurrency?> FromJsonStreamAsync(
global::System.IO.Stream jsonStream,
global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null)
{
if (jsonSerializerOptions is null)
{
return FromJsonStreamAsync(
jsonStream,
global::FishAudio.SourceGenerationContext.Default);
}

return global::System.Text.Json.JsonSerializer.DeserializeAsync<global::FishAudio.GetWalletPackageResponseSubscriptionCurrency?>(
jsonStream,
jsonSerializerOptions);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

#nullable enable

namespace FishAudio
{
/// <summary>
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464
/// </summary>
public sealed partial class GetWalletPackageResponseSubscriptionCurrency
{

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

}
}
Loading