diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetected.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetected.g.cs new file mode 100644 index 0000000..60639be --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetected.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptLanguageDetectionOptionsOnNoSpeechDetectedJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedNullable.g.cs new file mode 100644 index 0000000..820ed85 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptLanguageDetectionOptionsOnNoSpeechDetectedNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.g.cs new file mode 100644 index 0000000..418f94e --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedNullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedNullable.g.cs new file mode 100644 index 0000000..305256b --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs index 5f2c8c2..ac6ce97 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.TranscriptParams.g.cs @@ -62,6 +62,7 @@ public class TranscriptParamsJsonConverter : global::System.Text.Json.Serializat if (__jsonProps.Contains("language_detection_options.expected_languages")) __score1++; if (__jsonProps.Contains("language_detection_options.fallback_language")) __score1++; if (__jsonProps.Contains("language_detection_options.localization")) __score1++; + if (__jsonProps.Contains("language_detection_options.on_no_speech_detected")) __score1++; if (__jsonProps.Contains("multichannel")) __score1++; if (__jsonProps.Contains("prompt")) __score1++; if (__jsonProps.Contains("punctuate")) __score1++; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs index 5e2e6bb..ce9119f 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs @@ -25,6 +25,10 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsDomainNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedJsonConverter), + + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), @@ -69,6 +73,10 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.TranscriptReadyStatusNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedJsonConverter), + + typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethodNullableJsonConverter), @@ -171,6 +179,7 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected), TypeInfoPropertyName = "TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod), TypeInfoPropertyName = "TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.RedactPiiAudioQuality), TypeInfoPropertyName = "RedactPiiAudioQuality2")] @@ -213,6 +222,10 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTopicDetectionModelResultObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TopicDetectionModelResult))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageDetectionOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected), TypeInfoPropertyName = "TranscriptLanguageDetectionOptionsOnNoSpeechDetected2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptMetadataWarning))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod), TypeInfoPropertyName = "TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfRedactPiiAudioQualityObject2")] @@ -291,6 +304,7 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs index 5e84ecd..5eeed51 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -144,419 +144,439 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type29 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? Type29 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type30 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptions? Type30 { get; set; } /// /// /// - public global::AssemblyAI.RedactPiiAudioQuality? Type31 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type31 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type32 { get; set; } + public global::AssemblyAI.RedactPiiAudioQuality? Type32 { get; set; } /// /// /// - public global::AssemblyAI.PiiPolicy? Type33 { get; set; } + public global::System.Collections.Generic.IList? Type33 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type34 { get; set; } + public global::AssemblyAI.PiiPolicy? Type34 { get; set; } /// /// /// - public global::AssemblyAI.SubstitutionPolicy? Type35 { get; set; } + public global::AssemblyAI.OneOf? Type35 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>? Type36 { get; set; } + public global::AssemblyAI.SubstitutionPolicy? Type36 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type37 { get; set; } + public global::System.Collections.Generic.Dictionary>? Type37 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type38 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? Type38 { get; set; } /// /// /// - public global::AssemblyAI.SpeechModel2? Type39 { get; set; } + public global::System.Collections.Generic.IList? Type39 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type40 { get; set; } + public global::AssemblyAI.SpeechModel2? Type40 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBody? Type41 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type41 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBody? Type42 { get; set; } + public global::AssemblyAI.TranslationRequestBody? Type42 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBody? Type43 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBody? Type43 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBody? Type44 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBody? Type44 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsRequestBody? Type45 { get; set; } + public global::AssemblyAI.SummarizationRequestBody? Type45 { get; set; } /// /// /// - public global::AssemblyAI.SummaryModel? Type46 { get; set; } + public global::AssemblyAI.ActionItemsRequestBody? Type46 { get; set; } /// /// /// - public global::AssemblyAI.SummaryType? Type47 { get; set; } + public global::AssemblyAI.SummaryModel? Type47 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type48 { get; set; } + public global::AssemblyAI.SummaryType? Type48 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type49 { get; set; } + public global::AssemblyAI.OneOf? Type49 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type50 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type50 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParams? Type51 { get; set; } + public global::AssemblyAI.OneOf? Type51 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type52 { get; set; } + public global::AssemblyAI.TranscriptParams? Type52 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptUtterance? Type53 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type53 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type54 { get; set; } + public global::AssemblyAI.TranscriptUtterance? Type54 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWord? Type55 { get; set; } + public global::System.Collections.Generic.IList? Type55 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type56 { get; set; } + public global::AssemblyAI.TranscriptWord? Type56 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptStatus? Type57 { get; set; } + public global::System.Collections.Generic.Dictionary? Type57 { get; set; } /// /// /// - public global::AssemblyAI.Transcript? Type58 { get; set; } + public global::AssemblyAI.TranscriptStatus? Type58 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type59 { get; set; } + public global::AssemblyAI.Transcript? Type59 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightsResult2? Type60 { get; set; } + public global::AssemblyAI.OneOf? Type60 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type61 { get; set; } + public global::AssemblyAI.AutoHighlightsResult2? Type61 { get; set; } /// /// /// - public global::AssemblyAI.Chapter? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type63 { get; set; } + public global::AssemblyAI.Chapter? Type63 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelsResult? Type64 { get; set; } + public global::AssemblyAI.OneOf? Type64 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type65 { get; set; } + public global::AssemblyAI.ContentSafetyLabelsResult? Type65 { get; set; } /// /// /// - public global::AssemblyAI.Entity? Type66 { get; set; } + public global::System.Collections.Generic.IList? Type66 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type67 { get; set; } + public global::AssemblyAI.Entity? Type67 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionModelResult? Type68 { get; set; } + public global::AssemblyAI.OneOf? Type68 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type69 { get; set; } + public global::AssemblyAI.TopicDetectionModelResult? Type69 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type70 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type70 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type71 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected? Type71 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type72 { get; set; } + public global::AssemblyAI.TranscriptMetadata? Type72 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type73 { get; set; } + public global::System.Collections.Generic.IList? Type73 { get; set; } /// /// /// - public global::AssemblyAI.SentimentAnalysisResult? Type74 { get; set; } + public global::AssemblyAI.TranscriptMetadataWarning? Type74 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSpeechUnderstanding? Type75 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type75 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponse? Type76 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type76 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponse? Type77 { get; set; } + public global::AssemblyAI.OneOf? Type77 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponse? Type78 { get; set; } + public global::System.Collections.Generic.IList? Type78 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationResponse? Type79 { get; set; } + public global::AssemblyAI.SentimentAnalysisResult? Type79 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsResponse? Type80 { get; set; } + public global::AssemblyAI.TranscriptSpeechUnderstanding? Type80 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type81 { get; set; } + public global::AssemblyAI.TranslationResponse? Type81 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRemoveAudioTags? Type82 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponse? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::AssemblyAI.CustomFormattingResponse? Type83 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptTranslatedTexts? Type84 { get; set; } + public global::AssemblyAI.SummarizationResponse? Type84 { get; set; } /// /// /// - public global::AssemblyAI.AudioIntelligenceModelStatus? Type85 { get; set; } + public global::AssemblyAI.ActionItemsResponse? Type85 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type86 { get; set; } + public global::AssemblyAI.OneOf? Type86 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResult? Type87 { get; set; } + public global::AssemblyAI.TranscriptRemoveAudioTags? Type87 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type88 { get; set; } + public global::System.Collections.Generic.IList? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::AssemblyAI.TranscriptTranslatedTexts? Type89 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelResult? Type90 { get; set; } + public global::AssemblyAI.AudioIntelligenceModelStatus? Type90 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type91 { get; set; } + public global::System.Collections.Generic.IList? Type91 { get; set; } /// /// /// - public global::AssemblyAI.SeverityScoreSummary? Type92 { get; set; } + public global::AssemblyAI.TopicDetectionResult? Type92 { get; set; } /// /// /// - public global::AssemblyAI.EntityType? Type93 { get; set; } + public global::System.Collections.Generic.Dictionary? Type93 { get; set; } /// /// /// - public global::AssemblyAI.Sentiment? Type94 { get; set; } + public global::System.Collections.Generic.IList? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type95 { get; set; } + public global::AssemblyAI.ContentSafetyLabelResult? Type95 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResultLabel? Type96 { get; set; } + public global::System.Collections.Generic.Dictionary? Type96 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabel? Type97 { get; set; } + public global::AssemblyAI.SeverityScoreSummary? Type97 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type98 { get; set; } + public global::AssemblyAI.EntityType? Type98 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::AssemblyAI.Sentiment? Type99 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightResult? Type100 { get; set; } + public global::System.Collections.Generic.IList? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type101 { get; set; } + public global::AssemblyAI.TopicDetectionResultLabel? Type101 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSentence? Type102 { get; set; } + public global::AssemblyAI.ContentSafetyLabel? Type102 { get; set; } /// /// /// - public global::AssemblyAI.SentencesResponse? Type103 { get; set; } + public global::System.Collections.Generic.IList? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParagraph? Type105 { get; set; } + public global::AssemblyAI.AutoHighlightResult? Type105 { get; set; } /// /// /// - public global::AssemblyAI.ParagraphsResponse? Type106 { get; set; } + public global::System.Collections.Generic.IList? Type106 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type107 { get; set; } + public global::AssemblyAI.TranscriptSentence? Type107 { get; set; } /// /// /// - public global::AssemblyAI.PageDetails? Type108 { get; set; } + public global::AssemblyAI.SentencesResponse? Type108 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptListItem? Type109 { get; set; } + public global::System.Collections.Generic.IList? Type109 { get; set; } /// /// /// - public global::System.DateTime? Type110 { get; set; } + public global::AssemblyAI.TranscriptParagraph? Type110 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptList? Type111 { get; set; } + public global::AssemblyAI.ParagraphsResponse? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type113 { get; set; } + public global::AssemblyAI.PageDetails? Type113 { get; set; } /// /// /// - public global::AssemblyAI.Error? Type114 { get; set; } + public global::AssemblyAI.TranscriptListItem? Type114 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBodyTranslation? Type115 { get; set; } + public global::System.DateTime? Type115 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type116 { get; set; } + public global::AssemblyAI.TranscriptList? Type116 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type117 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type118 { get; set; } + public global::AssemblyAI.UploadedFile? Type118 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type119 { get; set; } + public global::AssemblyAI.Error? Type119 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type120 { get; set; } + public global::AssemblyAI.TranslationRequestBodyTranslation? Type120 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarization? Type121 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type121 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Type122 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type122 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsRequestBodyActionItems? Type124 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type124 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsRequestBodyActionItemsEffort? Type125 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type125 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponseTranslation? Type126 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarization? Type126 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type127 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Type127 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type128 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Type128 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationResponseSummarization? Type129 { get; set; } + public global::AssemblyAI.ActionItemsRequestBodyActionItems? Type129 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type130 { get; set; } + public global::AssemblyAI.ActionItemsRequestBodyActionItemsEffort? Type130 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsResponseActionItems? Type131 { get; set; } + public global::AssemblyAI.TranslationResponseTranslation? Type131 { get; set; } /// /// /// - public byte[]? Type132 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type132 { get; set; } + /// + /// + /// + public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type133 { get; set; } + /// + /// + /// + public global::AssemblyAI.SummarizationResponseSummarization? Type134 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type135 { get; set; } + /// + /// + /// + public global::AssemblyAI.ActionItemsResponseActionItems? Type136 { get; set; } + /// + /// + /// + public byte[]? Type137 { get; set; } /// /// @@ -609,54 +629,58 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType25 { 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 6ccece0..f6beed8 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -208,6 +208,12 @@ public sealed partial class Transcript [global::System.Text.Json.Serialization.JsonPropertyName("language_detection_options")] public global::AssemblyAI.TranscriptLanguageDetectionOptions? LanguageDetectionOptions { get; set; } + /// + /// Additional information about the transcript, including any warnings raised while processing the request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public global::AssemblyAI.TranscriptMetadata? Metadata { get; set; } + /// /// Whether [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) was enabled in the transcription request, either true or false /// @@ -623,6 +629,9 @@ public sealed partial class Transcript /// /// Specify options for [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection). /// + /// + /// Additional information about the transcript, including any warnings raised while processing the request. + /// /// /// Whether [Multichannel transcription](https://www.assemblyai.com/docs/pre-recorded-audio/transcribe-multiple-audio-channels) was enabled in the transcription request, either true or false /// @@ -763,6 +772,7 @@ public Transcript( float? languageConfidenceThreshold, bool? languageDetection, global::AssemblyAI.TranscriptLanguageDetectionOptions? languageDetectionOptions, + global::AssemblyAI.TranscriptMetadata? metadata, bool? multichannel, string? prompt, bool? punctuate, @@ -823,6 +833,7 @@ public Transcript( this.LanguageConfidenceThreshold = languageConfidenceThreshold; this.LanguageDetection = languageDetection; this.LanguageDetectionOptions = languageDetectionOptions; + this.Metadata = metadata; this.Multichannel = multichannel; this.Prompt = prompt; this.Punctuate = punctuate; diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs index 1c70e82..c3c1a91 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptions.g.cs @@ -42,6 +42,15 @@ public sealed partial class TranscriptLanguageDetectionOptions [global::System.Text.Json.Serialization.JsonPropertyName("localization")] public global::System.Collections.Generic.IList? Localization { get; set; } + /// + /// Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`.
+ /// `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
+ /// Default Value: error + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("on_no_speech_detected")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageDetectionOptionsOnNoSpeechDetectedJsonConverter))] + public global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected? OnNoSpeechDetected { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -70,6 +79,11 @@ public sealed partial class TranscriptLanguageDetectionOptions /// Render the transcript in a regional variant of the detected language. Supported values are `en_au` (Australian English) and `en_uk` (British English) — only English is supported today, and you can specify at most one locale per base language. Base or default-region codes such as `en` and `en_us` are not localization variants and return a `400`.
/// When the detected language matches the requested locale's base language, the transcript uses that locale's spelling and `language_code` returns the region-aware code (for example `en_au`) instead of the base `en`. Otherwise, when the detected language isn't available as a locale, the option is ignored. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. /// + /// + /// Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`.
+ /// `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
+ /// Default Value: error + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -78,13 +92,15 @@ public TranscriptLanguageDetectionOptions( string? fallbackLanguage, bool? codeSwitching, double? codeSwitchingConfidenceThreshold, - global::System.Collections.Generic.IList? localization) + global::System.Collections.Generic.IList? localization, + global::AssemblyAI.TranscriptLanguageDetectionOptionsOnNoSpeechDetected? onNoSpeechDetected) { this.ExpectedLanguages = expectedLanguages; this.FallbackLanguage = fallbackLanguage; this.CodeSwitching = codeSwitching; this.CodeSwitchingConfidenceThreshold = codeSwitchingConfidenceThreshold; this.Localization = localization; + this.OnNoSpeechDetected = onNoSpeechDetected; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptionsOnNoSpeechDetected.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptionsOnNoSpeechDetected.g.cs new file mode 100644 index 0000000..8797cef --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptLanguageDetectionOptionsOnNoSpeechDetected.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`.
+ /// `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
+ /// Default Value: error + ///
+ public enum TranscriptLanguageDetectionOptionsOnNoSpeechDetected + { + /// + /// + /// + Error, + /// + /// //www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. + /// + Fallback, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TranscriptLanguageDetectionOptionsOnNoSpeechDetectedExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TranscriptLanguageDetectionOptionsOnNoSpeechDetected value) + { + return value switch + { + TranscriptLanguageDetectionOptionsOnNoSpeechDetected.Error => "error", + TranscriptLanguageDetectionOptionsOnNoSpeechDetected.Fallback => "fallback", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TranscriptLanguageDetectionOptionsOnNoSpeechDetected? ToEnum(string value) + { + return value switch + { + "error" => TranscriptLanguageDetectionOptionsOnNoSpeechDetected.Error, + "fallback" => TranscriptLanguageDetectionOptionsOnNoSpeechDetected.Fallback, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.Json.g.cs new file mode 100644 index 0000000..24c6b45 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptMetadata + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::AssemblyAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::AssemblyAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptMetadata? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptMetadata), + jsonSerializerContext) as global::AssemblyAI.TranscriptMetadata; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptMetadata? FromJson( + string json) + { + return FromJson( + json, + global::AssemblyAI.SourceGenerationContext.Default); + } + + /// + /// 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.TranscriptMetadata? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::AssemblyAI.SourceGenerationContext.Default); + } + + 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.TranscriptMetadata), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptMetadata; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::AssemblyAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::AssemblyAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.g.cs new file mode 100644 index 0000000..39281da --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadata.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Additional information about the transcript, including any warnings raised while processing the request. + /// + public sealed partial class TranscriptMetadata + { + /// + /// Warnings raised while processing the request, for example when [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) was skipped because the audio contained no speech. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("warnings")] + public global::System.Collections.Generic.IList? Warnings { 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. + /// + /// + /// Warnings raised while processing the request, for example when [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) was skipped because the audio contained no speech. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptMetadata( + global::System.Collections.Generic.IList? warnings) + { + this.Warnings = warnings; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptMetadata() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadataWarning.Json.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadataWarning.Json.g.cs new file mode 100644 index 0000000..7a48a25 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadataWarning.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace AssemblyAI +{ + public sealed partial class TranscriptMetadataWarning + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::AssemblyAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::AssemblyAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptMetadataWarning? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::AssemblyAI.TranscriptMetadataWarning), + jsonSerializerContext) as global::AssemblyAI.TranscriptMetadataWarning; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::AssemblyAI.TranscriptMetadataWarning? FromJson( + string json) + { + return FromJson( + json, + global::AssemblyAI.SourceGenerationContext.Default); + } + + /// + /// 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.TranscriptMetadataWarning? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::AssemblyAI.SourceGenerationContext.Default); + } + + 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.TranscriptMetadataWarning), + jsonSerializerContext).ConfigureAwait(false)) as global::AssemblyAI.TranscriptMetadataWarning; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::AssemblyAI.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::AssemblyAI.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadataWarning.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadataWarning.g.cs new file mode 100644 index 0000000..ad7746c --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptMetadataWarning.g.cs @@ -0,0 +1,46 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Warning + /// + public sealed partial class TranscriptMetadataWarning + { + /// + /// A human-readable description of the warning. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { 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. + /// + /// + /// A human-readable description of the warning. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public TranscriptMetadataWarning( + string? message) + { + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public TranscriptMetadataWarning() + { + } + + } +} \ 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 bd90299..8906bdb 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptions.g.cs @@ -42,6 +42,15 @@ public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions [global::System.Text.Json.Serialization.JsonPropertyName("localization")] public global::System.Collections.Generic.IList? Localization { get; set; } + /// + /// Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`.
+ /// `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
+ /// Default Value: error + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("on_no_speech_detected")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedJsonConverter))] + public global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? OnNoSpeechDetected { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -70,6 +79,11 @@ public sealed partial class TranscriptOptionalParamsLanguageDetectionOptions /// Render the transcript in a regional variant of the detected language. Supported values are `en_au` (Australian English) and `en_uk` (British English) — only English is supported today, and you can specify at most one locale per base language. Base or default-region codes such as `en` and `en_us` are not localization variants and return a `400`.
/// When the detected language matches the requested locale's base language, the transcript uses that locale's spelling and `language_code` returns the region-aware code (for example `en_au`) instead of the base `en`. Otherwise, when the detected language isn't available as a locale, the option is ignored. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. /// + /// + /// Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`.
+ /// `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
+ /// Default Value: error + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -78,13 +92,15 @@ public TranscriptOptionalParamsLanguageDetectionOptions( string? fallbackLanguage, bool? codeSwitching, double? codeSwitchingConfidenceThreshold, - global::System.Collections.Generic.IList? localization) + global::System.Collections.Generic.IList? localization, + global::AssemblyAI.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? onNoSpeechDetected) { this.ExpectedLanguages = expectedLanguages; this.FallbackLanguage = fallbackLanguage; this.CodeSwitching = codeSwitching; this.CodeSwitchingConfidenceThreshold = codeSwitchingConfidenceThreshold; this.Localization = localization; + this.OnNoSpeechDetected = onNoSpeechDetected; } /// diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.g.cs new file mode 100644 index 0000000..38970a5 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.g.cs @@ -0,0 +1,53 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`.
+ /// `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details.
+ /// Default Value: error + ///
+ public enum TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected + { + /// + /// + /// + Error, + /// + /// //www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. + /// + Fallback, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetectedExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected value) + { + return value switch + { + TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.Error => "error", + TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.Fallback => "fallback", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected? ToEnum(string value) + { + return value switch + { + "error" => TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.Error, + "fallback" => TranscriptOptionalParamsLanguageDetectionOptionsOnNoSpeechDetected.Fallback, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index 0fc8166..8232054 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -1768,6 +1768,17 @@ components: items: x-label: locale type: string + on_no_speech_detected: + x-label: On no speech detected + description: | + Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`. + + `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. + type: string + enum: + - error + - fallback + default: error multichannel: x-label: Multichannel @@ -3361,6 +3372,36 @@ components: items: x-label: locale type: string + on_no_speech_detected: + x-label: On no speech detected + description: | + Controls what happens when no speech is detected in the audio. With `error` (the default), the transcript fails and the reason is returned in `error`. With `fallback`, the transcript completes with an empty `text`, `language_code` is set to the `fallback_language`, and an explanatory warning is returned in `metadata.warnings`. + + `fallback` requires `fallback_language` to be set to a specific language code; `auto` returns a `400`. See [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) for more details. + type: string + enum: + - error + - fallback + default: error + + metadata: + x-label: Metadata + description: Additional information about the transcript, including any warnings raised while processing the request. + type: [object, "null"] + properties: + warnings: + x-label: Warnings + description: | + Warnings raised while processing the request, for example when [Automatic Language Detection](https://www.assemblyai.com/docs/pre-recorded-audio/language-detection) was skipped because the audio contained no speech. + type: [array, "null"] + items: + x-label: Warning + type: object + properties: + message: + x-label: Message + description: A human-readable description of the warning. + type: string multichannel: x-label: Multichannel