diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index 0dd7e41..c1df58c 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -398,98 +398,102 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type93 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type93 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type94 { get; set; } + public byte[]? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptUtterance? Type96 { get; set; } + public global::System.Collections.Generic.IList? Type96 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptBoostParam? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptList? Type98 { get; set; } + public global::AssemblyAI.TranscriptUtterance? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::AssemblyAI.TranscriptBoostParam? Type99 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptListItem? Type100 { get; set; } + public global::AssemblyAI.TranscriptList? Type100 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParams? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type102 { get; set; } + public global::AssemblyAI.TranscriptListItem? Type102 { get; set; } /// /// /// - public byte[]? Type103 { get; set; } + public global::AssemblyAI.TranscriptOptionalParams? Type103 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type104 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions? Type104 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type105 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type105 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParams? Type106 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type106 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type107 { get; set; } + public global::AssemblyAI.TranscriptParams? Type107 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptReadyNotification? Type108 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type108 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptReadyStatus? Type109 { get; set; } + public global::AssemblyAI.TranscriptReadyNotification? Type109 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWebhookNotification? Type110 { get; set; } + public global::AssemblyAI.TranscriptReadyStatus? Type110 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type111 { get; set; } + public global::AssemblyAI.TranscriptWebhookNotification? Type111 { get; set; } /// /// /// - public global::AssemblyAI.WordSearchMatch? Type112 { get; set; } + public global::AssemblyAI.UploadedFile? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::AssemblyAI.WordSearchMatch? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type114 { get; set; } + public global::System.Collections.Generic.IList? Type114 { get; set; } /// /// /// - public global::AssemblyAI.WordSearchResponse? Type115 { get; set; } + public global::System.Collections.Generic.IList>? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type116 { get; set; } + public global::AssemblyAI.WordSearchResponse? Type116 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type117 { get; set; } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs index c8d1642..f5fd269 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -212,6 +212,12 @@ public sealed partial class Transcript [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.TranscriptLanguageDetectionOptions? LanguageDetectionOptions { get; set; } + /// /// The language model that was used for the transcript /// @@ -522,6 +528,9 @@ public sealed partial class Transcript /// /// Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) is enabled, either true or false /// + /// + /// Specify options for Automatic Language Detection. + /// /// /// The language model that was used for the transcript /// @@ -655,6 +664,7 @@ public Transcript( global::System.Collections.Generic.IList? keytermsPrompt, global::AssemblyAI.AnyOf? languageCode, bool? languageDetection, + global::AssemblyAI.TranscriptLanguageDetectionOptions? languageDetectionOptions, bool? multichannel, bool? punctuate, bool? redactPiiAudio, @@ -713,6 +723,7 @@ public Transcript( this.KeytermsPrompt = keytermsPrompt; this.LanguageCode = languageCode; this.LanguageDetection = languageDetection; + this.LanguageDetectionOptions = languageDetectionOptions; this.Multichannel = multichannel; this.Punctuate = punctuate; this.RedactPiiAudio = redactPiiAudio; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.Json.g.cs new file mode 100644 index 0000000..00dab05 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptLanguageDetectionOptions + { + /// + /// 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.TranscriptLanguageDetectionOptions? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptLanguageDetectionOptions), + jsonSerializerContext) as global::AssemblyAI.TranscriptLanguageDetectionOptions; + } + + /// + /// 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.TranscriptLanguageDetectionOptions? 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.TranscriptLanguageDetectionOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptLanguageDetectionOptions; + } + + /// + /// 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.TranscriptLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs new file mode 100644 index 0000000..4747b70 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Specify options for Automatic Language Detection. + /// + public sealed partial class TranscriptLanguageDetectionOptions + { + /// + /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. + /// + [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. Defaults to `["all"]` when unspecified. + /// + /// + /// 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 TranscriptLanguageDetectionOptions( + byte[]? expectedLanguages, + string? fallbackLanguage) + { + this.ExpectedLanguages = expectedLanguages; + this.FallbackLanguage = fallbackLanguage; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptLanguageDetectionOptions() + { + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs index ffb7835..2250624 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs @@ -9,7 +9,7 @@ namespace AssemblyAI public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions { /// - /// List of languages expected in the audio file. + /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. /// [global::System.Text.Json.Serialization.JsonPropertyName("expected_languages")] public byte[]? ExpectedLanguages { get; set; } @@ -31,7 +31,7 @@ public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions /// Initializes a new instance of the class. /// /// - /// List of languages expected in the audio file. + /// List of languages expected in the audio file. Defaults to `["all"]` when unspecified. /// /// /// 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.
diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index 815ac68..c659cbb 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1261,7 +1261,7 @@ components: properties: expected_languages: x-label: Minimum speakers expected - description: List of languages expected in the audio file. + description: List of languages expected in the audio file. Defaults to `["all"]` when unspecified. type: array objects: x-label: language @@ -2644,6 +2644,26 @@ components: description: Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) is enabled, either true or false type: [boolean, "null"] + 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. Defaults to `["all"]` when unspecified. + 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: |