diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index f746f62..0dd7e41 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -434,58 +434,62 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type102 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type102 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type103 { get; set; } + public byte[]? Type103 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParams? Type104 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type104 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type105 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type105 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptReadyNotification? Type106 { get; set; } + public global::AssemblyAI.TranscriptParams? Type106 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptReadyStatus? Type107 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type107 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWebhookNotification? Type108 { get; set; } + public global::AssemblyAI.TranscriptReadyNotification? Type108 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type109 { get; set; } + public global::AssemblyAI.TranscriptReadyStatus? Type109 { get; set; } /// /// /// - public global::AssemblyAI.WordSearchMatch? Type110 { get; set; } + public global::AssemblyAI.TranscriptWebhookNotification? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::AssemblyAI.UploadedFile? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type112 { get; set; } + public global::AssemblyAI.WordSearchMatch? Type112 { get; set; } /// /// /// - public global::AssemblyAI.WordSearchResponse? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type114 { get; set; } + public global::System.Collections.Generic.IList>? Type114 { get; set; } /// /// /// - public byte[]? Type115 { get; set; } + public global::AssemblyAI.WordSearchResponse? Type115 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type116 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs index 5b7c738..5823a23 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs @@ -143,6 +143,12 @@ public sealed partial class TranscriptOptionalParams [global::System.Text.Json.Serialization.JsonPropertyName("language_detection")] public bool? LanguageDetection { get; set; } + /// + /// Specify options for Automatic Language Detection. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language_detection_options")] + public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? LanguageDetectionOptions { get; set; } + /// /// Enable [Multichannel](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) transcription, can be true or false.
/// Default Value: false @@ -377,6 +383,9 @@ public sealed partial class TranscriptOptionalParams /// Enable [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection), either true or false.
/// Default Value: false /// + /// + /// Specify options for Automatic Language Detection. + /// /// /// Enable [Multichannel](https://www.assemblyai.com/docs/models/speech-recognition#multichannel-transcription) transcription, can be true or false.
/// Default Value: false @@ -475,6 +484,7 @@ public TranscriptOptionalParams( object? languageCode, float? languageConfidenceThreshold, bool? languageDetection, + global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? languageDetectionOptions, bool? multichannel, bool? punctuate, bool? redactPii, @@ -514,6 +524,7 @@ public TranscriptOptionalParams( this.LanguageCode = languageCode; this.LanguageConfidenceThreshold = languageConfidenceThreshold; this.LanguageDetection = languageDetection; + this.LanguageDetectionOptions = languageDetectionOptions; this.Multichannel = multichannel; this.Punctuate = punctuate; this.RedactPii = redactPii; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.Json.g.cs new file mode 100644 index 0000000..c1302e1 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#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) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions), + jsonSerializerContext) as global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#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::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#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 FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs new file mode 100644 index 0000000..ffb7835 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Specify options for Automatic Language Detection. + /// + public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions + { + /// + /// List of languages expected in the audio file. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("expected_languages")] + public byte[]? ExpectedLanguages { get; set; } + + /// + /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score.
+ /// Default Value: auto + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("fallback_language")] + public string? FallbackLanguage { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// List of languages expected in the audio file. + /// + /// + /// If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score.
+ /// Default Value: auto + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptOptionalParamsLanguageDetectionOptions( + byte[]? expectedLanguages, + string? fallbackLanguage) + { + this.ExpectedLanguages = expectedLanguages; + this.FallbackLanguage = fallbackLanguage; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptOptionalParamsLanguageDetectionOptions() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index 3ed1929..815ac68 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1253,6 +1253,26 @@ components: type: boolean default: false + language_detection_options: + x-label: Specify options for Automatic Language Detection. + description: Specify options for Automatic Language Detection. + type: object + additionalProperties: false + properties: + expected_languages: + x-label: Minimum speakers expected + description: List of languages expected in the audio file. + type: array + objects: + x-label: language + type: string + fallback_language: + x-label: Fallback language + description: | + If the detected language of the audio file is not in the list of expected languages, the `fallback_language` is used. Specify `["auto"]` to let our model choose the fallback language from `expected_languages` with the highest confidence score. + type: string + default: "auto" + language_confidence_threshold: x-label: Language confidence threshold description: |