From 3af0fef04475fe4c201df589fe0f3ad38bfc2d50 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Jul 2026 02:43:17 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...ssemblyAI.JsonConverters.SpeechModel2.g.cs | 53 ++++ ...I.JsonConverters.SpeechModel2Nullable.g.cs | 60 +++++ .../AssemblyAI.JsonSerializerContext.g.cs | 12 +- ...AssemblyAI.JsonSerializerContextTypes.g.cs | 232 ++++++++++-------- .../AssemblyAI.Models.SpeechModel2.g.cs | 51 ++++ .../AssemblyAI.Models.Transcript.g.cs | 43 ++-- ...blyAI.Models.TranscriptOptionalParams.g.cs | 40 +-- ...ranscriptOptionalParamsSpeakerOptions.g.cs | 8 +- src/libs/AssemblyAI/openapi.yaml | 38 +-- 9 files changed, 364 insertions(+), 173 deletions(-) create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs create mode 100644 src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel2.g.cs diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2.g.cs new file mode 100644 index 0000000..14be2ba --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class SpeechModel2JsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.SpeechModel2 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.SpeechModel2Extensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.SpeechModel2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.SpeechModel2); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.SpeechModel2 value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::AssemblyAI.SpeechModel2Extensions.ToValueString(value)); + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs new file mode 100644 index 0000000..da54ba5 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonConverters.SpeechModel2Nullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace AssemblyAI.JsonConverters +{ + /// + public sealed class SpeechModel2NullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::AssemblyAI.SpeechModel2? 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.SpeechModel2Extensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::AssemblyAI.SpeechModel2)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::AssemblyAI.SpeechModel2?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::AssemblyAI.SpeechModel2? 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.SpeechModel2Extensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs index 2aafe1e..d339518 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContext.g.cs @@ -49,6 +49,10 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.PiiPolicyNullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.SpeechModel2JsonConverter), + + typeof(global::AssemblyAI.JsonConverters.SpeechModel2NullableJsonConverter), + typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeJsonConverter), typeof(global::AssemblyAI.JsonConverters.TranscriptLanguageCodeNullableJsonConverter), @@ -113,7 +117,7 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), @@ -131,7 +135,7 @@ namespace AssemblyAI typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), - typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), + typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter), typeof(global::AssemblyAI.JsonConverters.UnixTimestampJsonConverter), })] @@ -174,6 +178,8 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SubstitutionPolicy), TypeInfoPropertyName = "SubstitutionPolicy2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary>))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SpeechModel2), TypeInfoPropertyName = "SpeechModel22")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "ActionItemsRequestBody_96ae176b810c4f16")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranslationRequestBody))] @@ -185,6 +191,7 @@ namespace AssemblyAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.SummaryType), TypeInfoPropertyName = "SummaryType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfTranscriptOptionalParamsRemoveAudioTagsObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags), TypeInfoPropertyName = "TranscriptOptionalParamsRemoveAudioTags2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.OneOf), TypeInfoPropertyName = "OneOfSpeechModel2Object2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParams), TypeInfoPropertyName = "TranscriptParams2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptParamsVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::AssemblyAI.TranscriptUtterance))] @@ -278,6 +285,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.Dictionary>))] + [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 15b07d9..c8b6819 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.JsonSerializerContextTypes.g.cs @@ -180,371 +180,383 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type38 { get; set; } + public global::System.Collections.Generic.IList? Type38 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBody? Type39 { get; set; } + public global::AssemblyAI.SpeechModel2? Type39 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBody? Type40 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? Type40 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBody? Type41 { get; set; } + public global::AssemblyAI.TranslationRequestBody? Type41 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBody? Type42 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBody? Type42 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsRequestBody? Type43 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBody? Type43 { get; set; } /// /// /// - public global::AssemblyAI.SummaryModel? Type44 { get; set; } + public global::AssemblyAI.SummarizationRequestBody? Type44 { get; set; } /// /// /// - public global::AssemblyAI.SummaryType? Type45 { get; set; } + public global::AssemblyAI.ActionItemsRequestBody? Type45 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type46 { get; set; } + public global::AssemblyAI.SummaryModel? Type46 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type47 { get; set; } + public global::AssemblyAI.SummaryType? Type47 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParams? Type48 { get; set; } + public global::AssemblyAI.OneOf? Type48 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParamsVariant1? Type49 { get; set; } + public global::AssemblyAI.TranscriptOptionalParamsRemoveAudioTags? Type49 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptUtterance? Type50 { get; set; } + public global::AssemblyAI.OneOf? Type50 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type51 { get; set; } + public global::AssemblyAI.TranscriptParams? Type51 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptWord? Type52 { get; set; } + public global::AssemblyAI.TranscriptParamsVariant1? Type52 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type53 { get; set; } + public global::AssemblyAI.TranscriptUtterance? Type53 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptStatus? Type54 { get; set; } + public global::System.Collections.Generic.IList? Type54 { get; set; } /// /// /// - public global::AssemblyAI.Transcript? Type55 { get; set; } + public global::AssemblyAI.TranscriptWord? Type55 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type56 { get; set; } + public global::System.Collections.Generic.Dictionary? Type56 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightsResult2? Type57 { get; set; } + public global::AssemblyAI.TranscriptStatus? Type57 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type58 { get; set; } + public global::AssemblyAI.Transcript? Type58 { get; set; } /// /// /// - public global::AssemblyAI.Chapter? Type59 { get; set; } + public global::AssemblyAI.OneOf? Type59 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type60 { get; set; } + public global::AssemblyAI.AutoHighlightsResult2? Type60 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelsResult? Type61 { get; set; } + public global::System.Collections.Generic.IList? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::AssemblyAI.Chapter? Type62 { get; set; } /// /// /// - public global::AssemblyAI.Entity? Type63 { get; set; } + public global::AssemblyAI.OneOf? Type63 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type64 { get; set; } + public global::AssemblyAI.ContentSafetyLabelsResult? Type64 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionModelResult? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type66 { get; set; } + public global::AssemblyAI.Entity? Type66 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type67 { get; set; } + public global::AssemblyAI.OneOf? Type67 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type68 { get; set; } + public global::AssemblyAI.TopicDetectionModelResult? Type68 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type69 { get; set; } + public global::AssemblyAI.TranscriptLanguageDetectionOptions? Type69 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type70 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptions? Type70 { get; set; } /// /// /// - public global::AssemblyAI.SentimentAnalysisResult? Type71 { get; set; } + public global::AssemblyAI.TranscriptRedactPiiAudioOptionsOverrideAudioRedactionMethod? Type71 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSpeechUnderstanding? Type72 { get; set; } + public global::AssemblyAI.OneOf? Type72 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponse? Type73 { get; set; } + public global::System.Collections.Generic.IList? Type73 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponse? Type74 { get; set; } + public global::AssemblyAI.SentimentAnalysisResult? Type74 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponse? Type75 { get; set; } + public global::AssemblyAI.TranscriptSpeechUnderstanding? Type75 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationResponse? Type76 { get; set; } + public global::AssemblyAI.TranslationResponse? Type76 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsResponse? Type77 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponse? Type77 { get; set; } /// /// /// - public global::AssemblyAI.OneOf? Type78 { get; set; } + public global::AssemblyAI.CustomFormattingResponse? Type78 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptRemoveAudioTags? Type79 { get; set; } + public global::AssemblyAI.SummarizationResponse? Type79 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type80 { get; set; } + public global::AssemblyAI.ActionItemsResponse? Type80 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptTranslatedTexts? Type81 { get; set; } + public global::AssemblyAI.OneOf? Type81 { get; set; } /// /// /// - public global::AssemblyAI.AudioIntelligenceModelStatus? Type82 { get; set; } + public global::AssemblyAI.TranscriptRemoveAudioTags? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::System.Collections.Generic.IList? Type83 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResult? Type84 { get; set; } + public global::AssemblyAI.TranscriptTranslatedTexts? Type84 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type85 { get; set; } + public global::AssemblyAI.AudioIntelligenceModelStatus? Type85 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type86 { get; set; } + public global::System.Collections.Generic.IList? Type86 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabelResult? Type87 { get; set; } + public global::AssemblyAI.TopicDetectionResult? Type87 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type88 { get; set; } + public global::System.Collections.Generic.Dictionary? Type88 { get; set; } /// /// /// - public global::AssemblyAI.SeverityScoreSummary? Type89 { get; set; } + public global::System.Collections.Generic.IList? Type89 { get; set; } /// /// /// - public global::AssemblyAI.EntityType? Type90 { get; set; } + public global::AssemblyAI.ContentSafetyLabelResult? Type90 { get; set; } /// /// /// - public global::AssemblyAI.Sentiment? Type91 { get; set; } + public global::System.Collections.Generic.Dictionary? Type91 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type92 { get; set; } + public global::AssemblyAI.SeverityScoreSummary? Type92 { get; set; } /// /// /// - public global::AssemblyAI.TopicDetectionResultLabel? Type93 { get; set; } + public global::AssemblyAI.EntityType? Type93 { get; set; } /// /// /// - public global::AssemblyAI.ContentSafetyLabel? Type94 { get; set; } + public global::AssemblyAI.Sentiment? Type94 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type95 { get; set; } + public global::System.Collections.Generic.IList? Type95 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type96 { get; set; } + public global::AssemblyAI.TopicDetectionResultLabel? Type96 { get; set; } /// /// /// - public global::AssemblyAI.AutoHighlightResult? Type97 { get; set; } + public global::AssemblyAI.ContentSafetyLabel? Type97 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type98 { get; set; } + public global::System.Collections.Generic.IList? Type98 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptSentence? Type99 { get; set; } + public global::System.Collections.Generic.IList? Type99 { get; set; } /// /// /// - public global::AssemblyAI.SentencesResponse? Type100 { get; set; } + public global::AssemblyAI.AutoHighlightResult? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptParagraph? Type102 { get; set; } + public global::AssemblyAI.TranscriptSentence? Type102 { get; set; } /// /// /// - public global::AssemblyAI.ParagraphsResponse? Type103 { get; set; } + public global::AssemblyAI.SentencesResponse? Type103 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// /// /// - public global::AssemblyAI.PageDetails? Type105 { get; set; } + public global::AssemblyAI.TranscriptParagraph? Type105 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptListItem? Type106 { get; set; } + public global::AssemblyAI.ParagraphsResponse? Type106 { get; set; } /// /// /// - public global::System.DateTime? Type107 { get; set; } + public global::System.Collections.Generic.IList? Type107 { get; set; } /// /// /// - public global::AssemblyAI.TranscriptList? Type108 { get; set; } + public global::AssemblyAI.PageDetails? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::AssemblyAI.TranscriptListItem? Type109 { get; set; } /// /// /// - public global::AssemblyAI.UploadedFile? Type110 { get; set; } + public global::System.DateTime? Type110 { get; set; } /// /// /// - public global::AssemblyAI.Error? Type111 { get; set; } + public global::AssemblyAI.TranscriptList? Type111 { get; set; } /// /// /// - public global::AssemblyAI.TranslationRequestBodyTranslation? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type113 { get; set; } + public global::AssemblyAI.UploadedFile? Type113 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type114 { get; set; } + public global::AssemblyAI.Error? Type114 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type115 { get; set; } + public global::AssemblyAI.TranslationRequestBodyTranslation? Type115 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type116 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentification? Type116 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type117 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeakerType? Type117 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarization? Type118 { get; set; } + public global::System.Collections.Generic.IList? Type118 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Type119 { get; set; } + public global::AssemblyAI.SpeakerIdentificationRequestBodySpeakerIdentificationSpeaker? Type119 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Type120 { get; set; } + public global::AssemblyAI.CustomFormattingRequestBodyCustomFormatting? Type120 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsRequestBodyActionItems? Type121 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarization? Type121 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsRequestBodyActionItemsEffort? Type122 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarizationSummaryType? Type122 { get; set; } /// /// /// - public global::AssemblyAI.TranslationResponseTranslation? Type123 { get; set; } + public global::AssemblyAI.SummarizationRequestBodySummarizationEffort? Type123 { get; set; } /// /// /// - public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type124 { get; set; } + public global::AssemblyAI.ActionItemsRequestBodyActionItems? Type124 { get; set; } /// /// /// - public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type125 { get; set; } + public global::AssemblyAI.ActionItemsRequestBodyActionItemsEffort? Type125 { get; set; } /// /// /// - public global::AssemblyAI.SummarizationResponseSummarization? Type126 { get; set; } + public global::AssemblyAI.TranslationResponseTranslation? Type126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type127 { get; set; } + public global::AssemblyAI.SpeakerIdentificationResponseSpeakerIdentification? Type127 { get; set; } /// /// /// - public global::AssemblyAI.ActionItemsResponseActionItems? Type128 { get; set; } + public global::AssemblyAI.CustomFormattingResponseCustomFormatting? Type128 { get; set; } /// /// /// - public byte[]? Type129 { get; set; } + public global::AssemblyAI.SummarizationResponseSummarization? Type129 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type130 { get; set; } + /// + /// + /// + public global::AssemblyAI.ActionItemsResponseActionItems? Type131 { get; set; } + /// + /// + /// + public byte[]? Type132 { get; set; } /// /// @@ -581,66 +593,70 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + 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; } } } \ No newline at end of file diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel2.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel2.g.cs new file mode 100644 index 0000000..426acc3 --- /dev/null +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel2.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace AssemblyAI +{ + /// + /// The speech model to use for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. + /// + public enum SpeechModel2 + { + /// + /// + /// + Universal2, + /// + /// + /// + Universal35Pro, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class SpeechModel2Extensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this SpeechModel2 value) + { + return value switch + { + SpeechModel2.Universal2 => "universal-2", + SpeechModel2.Universal35Pro => "universal-3-5-pro", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static SpeechModel2? ToEnum(string value) + { + return value switch + { + "universal-2" => SpeechModel2.Universal2, + "universal-3-5-pro" => SpeechModel2.Universal35Pro, + _ => null, + }; + } + } +} \ 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 1d8c11f..cdbc8bc 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs @@ -98,7 +98,7 @@ public sealed partial class Transcript public global::System.Collections.Generic.IList? CustomSpelling { get; set; } /// - /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3 Pro and Universal-2. + /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2. /// [global::System.Text.Json.Serialization.JsonPropertyName("disfluencies")] public bool? Disfluencies { get; set; } @@ -162,7 +162,7 @@ public sealed partial class Transcript public required global::System.Guid Id { get; set; } /// - /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-pro/prompting#keyterms-prompting) for more details. + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. /// [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")] public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; } @@ -217,7 +217,7 @@ public sealed partial class Transcript /// /// Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices.
- /// Note: This parameter is only supported for the Universal-3 Pro model. + /// Note: This parameter is only supported for the Universal-3.5 Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] public string? Prompt { get; set; } @@ -306,13 +306,14 @@ public sealed partial class Transcript /// The speech model that was actually used for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. /// [global::System.Text.Json.Serialization.JsonPropertyName("speech_model_used")] - public string? SpeechModelUsed { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.SpeechModel2JsonConverter))] + public global::AssemblyAI.SpeechModel2? SpeechModelUsed { get; set; } /// - /// List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `["universal-3-pro", "universal-2"]`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. + /// List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. /// [global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] - public global::System.Collections.Generic.IList? SpeechModels { get; set; } + public global::System.Collections.Generic.IList? SpeechModels { get; set; } /// /// Defaults to null. Reject audio files that contain less than this fraction of speech.
@@ -366,8 +367,8 @@ public sealed partial class Transcript public string? SummaryType { get; set; } /// - /// Universal-3 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
- /// Note: This parameter is only supported for the Universal-3 Pro model. + /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Note: This parameter is only supported for the Universal-3.5 Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] @@ -375,7 +376,7 @@ public sealed partial class Transcript /// /// The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3 Pro model. + /// Note: This parameter can only be used with the Universal-3.5 Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")] public double? Temperature { get; set; } @@ -473,9 +474,9 @@ public sealed partial class Transcript /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::AssemblyAI.OneOf SpeechModel { get; set; } + public required global::AssemblyAI.OneOf SpeechModel { get; set; } /// /// This parameter does not currently have any functionality attached to it. @@ -570,7 +571,7 @@ public sealed partial class Transcript /// Customize how words are spelled and formatted using to and from values. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. /// /// - /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3 Pro and Universal-2. + /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2. /// /// /// The domain-specific model applied to the transcript. When set to `"medical-v1"`, [Medical Mode](https://www.assemblyai.com/docs/pre-recorded-audio/medical-mode) was used to improve accuracy for medical terminology. @@ -599,7 +600,7 @@ public sealed partial class Transcript /// See [Topic Detection](https://www.assemblyai.com/docs/speech-understanding/topic-detection) for more information. /// /// - /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-pro/prompting#keyterms-prompting) for more details. + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. /// /// /// The language of your audio file.
@@ -629,7 +630,7 @@ public sealed partial class Transcript /// /// /// Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices.
- /// Note: This parameter is only supported for the Universal-3 Pro model. + /// Note: This parameter is only supported for the Universal-3.5 Pro model. /// /// /// Whether [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio) is enabled, either true or false @@ -673,7 +674,7 @@ public sealed partial class Transcript /// The speech model that was actually used for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. /// /// - /// List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `["universal-3-pro", "universal-2"]`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. + /// List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. /// /// /// Defaults to null. Reject audio files that contain less than this fraction of speech.
@@ -683,12 +684,12 @@ public sealed partial class Transcript /// Speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). See the task-specific docs for available options and configuration. /// /// - /// Universal-3 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
- /// Note: This parameter is only supported for the Universal-3 Pro model. + /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Note: This parameter is only supported for the Universal-3.5 Pro model. /// /// /// The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3 Pro model. + /// Note: This parameter can only be used with the Universal-3.5 Pro model. /// /// /// The textual transcript of your media file @@ -737,7 +738,7 @@ public Transcript( bool webhookAuth, string acousticModel, string languageModel, - global::AssemblyAI.OneOf speechModel, + global::AssemblyAI.OneOf speechModel, int? audioChannels, int? audioDuration, int? audioEndAt, @@ -777,8 +778,8 @@ public Transcript( global::System.Collections.Generic.IList? sentimentAnalysisResults, bool? speakerLabels, int? speakersExpected, - string? speechModelUsed, - global::System.Collections.Generic.IList? speechModels, + global::AssemblyAI.SpeechModel2? speechModelUsed, + global::System.Collections.Generic.IList? speechModels, float? speechThreshold, global::AssemblyAI.TranscriptSpeechUnderstanding? speechUnderstanding, global::AssemblyAI.OneOf? removeAudioTags, diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs index cd23397..f704bb9 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs @@ -60,7 +60,7 @@ public sealed partial class TranscriptOptionalParams public global::System.Collections.Generic.IList? CustomSpelling { get; set; } /// - /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3 Pro and Universal-2.
+ /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2.
/// Default Value: false ///
[global::System.Text.Json.Serialization.JsonPropertyName("disfluencies")] @@ -104,7 +104,7 @@ public sealed partial class TranscriptOptionalParams public bool? IabCategories { get; set; } /// - /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-pro/prompting#keyterms-prompting) for more details. + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. /// [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")] public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; } @@ -156,7 +156,7 @@ public sealed partial class TranscriptOptionalParams /// /// Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices.
- /// Note: This parameter is only supported for the Universal-3 Pro model. + /// Note: This parameter is only supported for the Universal-3.5 Pro model. ///
[global::System.Text.Json.Serialization.JsonPropertyName("prompt")] public string? Prompt { get; set; } @@ -255,11 +255,11 @@ public sealed partial class TranscriptOptionalParams public int? SpeakersExpected { get; set; } /// - /// Optional. List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. If omitted, defaults to `["universal-3-pro", "universal-2"]`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior.
- /// Default Value: [universal-3-pro, universal-2] + /// Optional. Supported values: `universal-3-5-pro`, `universal-2`. If omitted, defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior.
+ /// Default Value: [universal-3-5-pro] ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_models")] - public global::System.Collections.Generic.IList? SpeechModels { get; set; } + public global::System.Collections.Generic.IList? SpeechModels { get; set; } /// /// Reject audio files that contain less than this fraction of speech.
@@ -301,8 +301,8 @@ public sealed partial class TranscriptOptionalParams public global::AssemblyAI.SummaryType? SummaryType { get; set; } /// - /// Universal-3 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
- /// Note: This parameter is only supported for the Universal-3 Pro model.
+ /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Note: This parameter is only supported for the Universal-3.5 Pro model.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 ///
[global::System.Text.Json.Serialization.JsonPropertyName("remove_audio_tags")] @@ -311,7 +311,7 @@ public sealed partial class TranscriptOptionalParams /// /// Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3 Pro model.
+ /// Note: This parameter can only be used with the Universal-3.5 Pro model.
/// Default Value: 0.0 ///
[global::System.Text.Json.Serialization.JsonPropertyName("temperature")] @@ -349,8 +349,8 @@ public sealed partial class TranscriptOptionalParams /// This parameter has been replaced with the `speech_models` parameter, learn more about the `speech_models` parameter [here](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model). ///
[global::System.Text.Json.Serialization.JsonPropertyName("speech_model")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] - public global::AssemblyAI.OneOf? SpeechModel { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::AssemblyAI.JsonConverters.OneOfJsonConverter))] + public global::AssemblyAI.OneOf? SpeechModel { get; set; } /// /// This parameter does not currently have any functionality attached to it. @@ -390,7 +390,7 @@ public sealed partial class TranscriptOptionalParams /// Customize how words are spelled and formatted using to and from values. See [Custom Spelling](https://www.assemblyai.com/docs/pre-recorded-audio/correct-spelling-of-terms) for more details. /// /// - /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3 Pro and Universal-2.
+ /// Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2.
/// Default Value: false /// /// @@ -415,7 +415,7 @@ public sealed partial class TranscriptOptionalParams /// Default Value: false /// /// - /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-pro/prompting#keyterms-prompting) for more details. + /// Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. /// /// /// The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/pre-recorded-audio/supported-languages).
@@ -445,7 +445,7 @@ public sealed partial class TranscriptOptionalParams /// /// /// Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices.
- /// Note: This parameter is only supported for the Universal-3 Pro model. + /// Note: This parameter is only supported for the Universal-3.5 Pro model. /// /// /// Enable [Automatic Punctuation](https://www.assemblyai.com/docs/pre-recorded-audio), can be true or false
@@ -499,8 +499,8 @@ public sealed partial class TranscriptOptionalParams /// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// - /// Optional. List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. If omitted, defaults to `["universal-3-pro", "universal-2"]`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior.
- /// Default Value: [universal-3-pro, universal-2] + /// Optional. Supported values: `universal-3-5-pro`, `universal-2`. If omitted, defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior.
+ /// Default Value: [universal-3-5-pro] /// /// /// Reject audio files that contain less than this fraction of speech.
@@ -511,13 +511,13 @@ public sealed partial class TranscriptOptionalParams /// Enable speech understanding tasks like [Translation](https://www.assemblyai.com/docs/speech-understanding/translation), [Speaker Identification](https://www.assemblyai.com/docs/speech-understanding/speaker-identification), and [Custom Formatting](https://www.assemblyai.com/docs/speech-understanding/custom-formatting). See the task-specific docs for available options and configuration. /// /// - /// Universal-3 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
- /// Note: This parameter is only supported for the Universal-3 Pro model.
+ /// Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations.
+ /// Note: This parameter is only supported for the Universal-3.5 Pro model.
/// Default Value: openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464 /// /// /// Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details.
- /// Note: This parameter can only be used with the Universal-3 Pro model.
+ /// Note: This parameter can only be used with the Universal-3.5 Pro model.
/// Default Value: 0.0 /// /// @@ -568,7 +568,7 @@ public TranscriptOptionalParams( bool? speakerLabels, global::AssemblyAI.TranscriptOptionalParamsSpeakerOptions? speakerOptions, int? speakersExpected, - global::System.Collections.Generic.IList? speechModels, + global::System.Collections.Generic.IList? speechModels, float? speechThreshold, global::AssemblyAI.TranscriptOptionalParamsSpeechUnderstanding? speechUnderstanding, global::AssemblyAI.OneOf? removeAudioTags, diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs index 62c0dde..f623934 100644 --- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs +++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParamsSpeakerOptions.g.cs @@ -9,7 +9,7 @@ namespace AssemblyAI public sealed partial class TranscriptOptionalParamsSpeakerOptions { /// - /// The minimum number of speakers expected in the audio file. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
+ /// A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
/// Default Value: 1 ///
[global::System.Text.Json.Serialization.JsonPropertyName("min_speakers_expected")] @@ -17,7 +17,7 @@ public sealed partial class TranscriptOptionalParamsSpeakerOptions /// /// <Warning>Setting this parameter too high may hurt model accuracy</Warning>
- /// The maximum number of speakers expected in the audio file. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. + /// A hard upper limit on the number of speaker labels. If more people speak than this value, the additional speakers are merged into existing labels. Setting it higher than the true number of speakers can cause the model to over-split and return more speakers than are actually present. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. ///
[global::System.Text.Json.Serialization.JsonPropertyName("max_speakers_expected")] public int? MaxSpeakersExpected { get; set; } @@ -32,12 +32,12 @@ public sealed partial class TranscriptOptionalParamsSpeakerOptions /// Initializes a new instance of the class. ///
/// - /// The minimum number of speakers expected in the audio file. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
+ /// A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details.
/// Default Value: 1 /// /// /// <Warning>Setting this parameter too high may hurt model accuracy</Warning>
- /// The maximum number of speakers expected in the audio file. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. + /// A hard upper limit on the number of speaker labels. If more people speak than this value, the additional speakers are merged into existing labels. Setting it higher than the true number of speakers can cause the model to over-split and return more speakers than are actually present. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml index 41a1c31..752ced8 100644 --- a/src/libs/AssemblyAI/openapi.yaml +++ b/src/libs/AssemblyAI/openapi.yaml @@ -962,7 +962,7 @@ components: disfluencies: x-label: Disfluencies - description: Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3 Pro and Universal-2. + description: Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2. type: boolean default: false @@ -1004,7 +1004,7 @@ components: keyterms_prompt: x-label: Keyterms prompt description: | - Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-pro/prompting#keyterms-prompting) for more details. + Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. type: array items: x-label: Keyterm @@ -1096,7 +1096,7 @@ components: description: | Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices. - Note: This parameter is only supported for the Universal-3 Pro model. + Note: This parameter is only supported for the Universal-3.5 Pro model. type: string punctuate: @@ -1198,14 +1198,14 @@ components: properties: min_speakers_expected: x-label: Minimum speakers expected - description: The minimum number of speakers expected in the audio file. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. + description: A hard lower limit on the number of speaker labels — the model won't return fewer speakers than this. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. type: integer default: 1 max_speakers_expected: x-label: Maximum speakers expected description: | Setting this parameter too high may hurt model accuracy - The maximum number of speakers expected in the audio file. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. + A hard upper limit on the number of speaker labels. If more people speak than this value, the additional speakers are merged into existing labels. Setting it higher than the true number of speakers can cause the model to over-split and return more speakers than are actually present. The default depends on audio duration: no limit for 0-2 minutes, 10 for 2-10 minutes, and 30 for 10+ minutes. See [Set a range of possible speakers](https://www.assemblyai.com/docs/pre-recorded-audio/label-speakers#set-a-range-of-possible-speakers) for more details. type: integer speakers_expected: @@ -1217,14 +1217,13 @@ components: speech_models: x-label: Speech models description: | - Optional. List multiple speech models in priority order, allowing our system to automatically route your audio to the best available option. If omitted, defaults to `["universal-3-pro", "universal-2"]`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. + Optional. Supported values: `universal-3-5-pro`, `universal-2`. If omitted, defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. type: array items: x-label: Speech model $ref: "#/components/schemas/SpeechModel" default: - - universal-3-pro - - universal-2 + - universal-3-5-pro speech_threshold: x-label: Speech threshold @@ -1279,9 +1278,9 @@ components: remove_audio_tags: x-label: Remove audio tags description: | - Universal-3 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. + Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. - Note: This parameter is only supported for the Universal-3 Pro model. + Note: This parameter is only supported for the Universal-3.5 Pro model. oneOf: - type: string enum: @@ -1295,7 +1294,7 @@ components: description: | Control the amount of randomness injected into the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details. - Note: This parameter can only be used with the Universal-3 Pro model. + Note: This parameter can only be used with the Universal-3.5 Pro model. type: number minimum: 0.0 maximum: 1.0 @@ -2061,6 +2060,9 @@ components: x-label: Speech model type: string description: The speech model to use for the transcription. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models. + enum: + - universal-3-5-pro + - universal-2 x-fern-sdk-group-name: transcripts TranscriptLanguageCode: @@ -2523,7 +2525,7 @@ components: disfluencies: x-label: Disfluencies - description: Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3 Pro and Universal-2. + description: Transcribe [Filler Words](https://www.assemblyai.com/docs/pre-recorded-audio/include-filler-words), like "umm", in your media file; can be true or false. Supported on Universal-3.5 Pro and Universal-2. type: [boolean, "null"] domain: @@ -2585,7 +2587,7 @@ components: keyterms_prompt: x-label: Keyterms prompt description: | - Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-pro/prompting#keyterms-prompting) for more details. + Improve accuracy with up to 200 (for Universal-2) or 1000 (for Universal-3.5 Pro) domain-specific words or phrases (maximum 6 words per phrase). See [Keyterms Prompting](https://www.assemblyai.com/docs/pre-recorded-audio/universal-3-5-pro/prompting#keyterms-prompting) for more details. type: array items: x-label: Keyterm @@ -2680,7 +2682,7 @@ components: description: | Provide natural language prompting of up to 1,500 words of contextual information to the model. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for best practices. - Note: This parameter is only supported for the Universal-3 Pro model. + Note: This parameter is only supported for the Universal-3.5 Pro model. type: string punctuate: @@ -2784,7 +2786,7 @@ components: speech_models: x-label: Speech models description: | - List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `["universal-3-pro", "universal-2"]`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. + List of speech models that were used (in priority order) to transcribe the audio. If not specified in the request, this defaults to `universal-3-5-pro`. See [Model Selection](https://www.assemblyai.com/docs/pre-recorded-audio/select-the-speech-model) for available models and routing behavior. type: [array, "null"] items: x-label: Speech model @@ -2858,9 +2860,9 @@ components: remove_audio_tags: x-label: Remove audio tags description: | - Universal-3 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. + Universal-3.5 Pro generates rich transcripts that can include inline annotations such as audio event markers and speaker cues. Set to `"all"` to remove all inline annotations, or `"speaker"` to remove only speaker cues while keeping other annotations. - Note: This parameter is only supported for the Universal-3 Pro model. + Note: This parameter is only supported for the Universal-3.5 Pro model. oneOf: - type: string enum: @@ -2873,7 +2875,7 @@ components: description: | The temperature that was used for the model's response. See the [Prompting Guide](https://www.assemblyai.com/docs/pre-recorded-audio/prompting) for more details. - Note: This parameter can only be used with the Universal-3 Pro model. + Note: This parameter can only be used with the Universal-3.5 Pro model. type: [number, "null"] minimum: 0.0 maximum: 1.0