diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs
index d7cbe7a..d0aee23 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.SpeechModel.g.cs
@@ -16,6 +16,14 @@ public enum SpeechModel
///
///
Nano,
+ ///
+ ///
+ ///
+ Slam1,
+ ///
+ ///
+ ///
+ Universal,
}
///
@@ -32,6 +40,8 @@ public static string ToValueString(this SpeechModel value)
{
SpeechModel.Best => "best",
SpeechModel.Nano => "nano",
+ SpeechModel.Slam1 => "slam-1",
+ SpeechModel.Universal => "universal",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -44,6 +54,8 @@ public static string ToValueString(this SpeechModel value)
{
"best" => SpeechModel.Best,
"nano" => SpeechModel.Nano,
+ "slam-1" => SpeechModel.Slam1,
+ "universal" => SpeechModel.Universal,
_ => null,
};
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs
index 1c03b85..8a2aa81 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.Transcript.g.cs
@@ -176,6 +176,12 @@ public sealed partial class Transcript
[global::System.Text.Json.Serialization.JsonRequired]
public required global::System.Guid Id { get; set; }
+ ///
+ /// Improve accuracy with up to 1000 domain-specific words or phrases (maximum 6 words per phrase).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")]
+ public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; }
+
///
/// The language of your audio file.
/// Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
@@ -219,6 +225,13 @@ public sealed partial class Transcript
[global::System.Text.Json.Serialization.JsonPropertyName("multichannel")]
public bool? Multichannel { get; set; }
+ ///
+ /// This parameter does not currently have any functionality attached to it.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
+ [global::System.Obsolete("This property marked as deprecated.")]
+ public string? Prompt { get; set; }
+
///
/// Whether Automatic Punctuation is enabled, either true or false
///
@@ -396,6 +409,7 @@ public sealed partial class Transcript
/// The list of custom vocabulary to boost transcription probability for
///
[global::System.Text.Json.Serialization.JsonPropertyName("word_boost")]
+ [global::System.Obsolete("This property marked as deprecated.")]
public global::System.Collections.Generic.IList? WordBoost { get; set; }
///
@@ -490,6 +504,9 @@ public sealed partial class Transcript
///
/// The unique identifier of your transcript
///
+ ///
+ /// Improve accuracy with up to 1000 domain-specific words or phrases (maximum 6 words per phrase).
+ ///
///
/// The language of your audio file.
/// Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
@@ -595,9 +612,6 @@ public sealed partial class Transcript
/// We sends two different types of webhook requests.
/// One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled.
///
- ///
- /// The list of custom vocabulary to boost transcription probability for
- ///
///
/// An array of temporally-sequential word objects, one for each word in the transcript.
/// See [Speech recognition](https://www.assemblyai.com/docs/models/speech-recognition) for more information.
@@ -638,6 +652,7 @@ public Transcript(
bool? formatText,
bool? iabCategories,
object? iabCategoriesResult,
+ global::System.Collections.Generic.IList? keytermsPrompt,
global::AssemblyAI.AnyOf? languageCode,
bool? languageDetection,
bool? multichannel,
@@ -661,7 +676,6 @@ public Transcript(
string? webhookAuthHeaderName,
int? webhookStatusCode,
string? webhookUrl,
- global::System.Collections.Generic.IList? wordBoost,
global::System.Collections.Generic.IList? words)
{
this.AcousticModel = acousticModel ?? throw new global::System.ArgumentNullException(nameof(acousticModel));
@@ -696,6 +710,7 @@ public Transcript(
this.FormatText = formatText;
this.IabCategories = iabCategories;
this.IabCategoriesResult = iabCategoriesResult;
+ this.KeytermsPrompt = keytermsPrompt;
this.LanguageCode = languageCode;
this.LanguageDetection = languageDetection;
this.Multichannel = multichannel;
@@ -719,7 +734,6 @@ public Transcript(
this.WebhookAuthHeaderName = webhookAuthHeaderName;
this.WebhookStatusCode = webhookStatusCode;
this.WebhookUrl = webhookUrl;
- this.WordBoost = wordBoost;
this.Words = words;
}
diff --git a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs
index 7ad019e..3db873a 100644
--- a/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs
+++ b/src/libs/AssemblyAI/Generated/AssemblyAI.Models.TranscriptOptionalParams.g.cs
@@ -112,6 +112,13 @@ public sealed partial class TranscriptOptionalParams
[global::System.Text.Json.Serialization.JsonPropertyName("iab_categories")]
public bool? IabCategories { get; set; }
+ ///
+ /// <Warning>`keyterms_prompt` is only supported when the `speech_model` is specified as `slam-1`</Warning>
+ /// Improve accuracy with up to 1000 domain-specific words or phrases (maximum 6 words per phrase).
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("keyterms_prompt")]
+ public global::System.Collections.Generic.IList? KeytermsPrompt { get; set; }
+
///
/// The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
/// The default value is 'en_us'.
@@ -143,6 +150,13 @@ public sealed partial class TranscriptOptionalParams
[global::System.Text.Json.Serialization.JsonPropertyName("multichannel")]
public bool? Multichannel { get; set; }
+ ///
+ /// This parameter does not currently have any functionality attached to it.
+ ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("prompt")]
+ [global::System.Obsolete("This property marked as deprecated.")]
+ public string? Prompt { get; set; }
+
///
/// Enable Automatic Punctuation, can be true or false
/// Default Value: true
@@ -272,6 +286,7 @@ public sealed partial class TranscriptOptionalParams
/// The list of custom vocabulary to boost transcription probability for
///
[global::System.Text.Json.Serialization.JsonPropertyName("word_boost")]
+ [global::System.Obsolete("This property marked as deprecated.")]
public global::System.Collections.Generic.IList? WordBoost { get; set; }
///
@@ -331,6 +346,10 @@ public sealed partial class TranscriptOptionalParams
/// Enable [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection), can be true or false
/// Default Value: false
///
+ ///
+ /// <Warning>`keyterms_prompt` is only supported when the `speech_model` is specified as `slam-1`</Warning>
+ /// Improve accuracy with up to 1000 domain-specific words or phrases (maximum 6 words per phrase).
+ ///
///
/// The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
/// The default value is 'en_us'.
@@ -417,9 +436,6 @@ public sealed partial class TranscriptOptionalParams
/// We sends two different types of webhook requests.
/// One request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled.
///
- ///
- /// The list of custom vocabulary to boost transcription probability for
- ///
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
@@ -437,6 +453,7 @@ public TranscriptOptionalParams(
bool? filterProfanity,
bool? formatText,
bool? iabCategories,
+ global::System.Collections.Generic.IList? keytermsPrompt,
object? languageCode,
float? languageConfidenceThreshold,
bool? languageDetection,
@@ -458,8 +475,7 @@ public TranscriptOptionalParams(
global::System.Collections.Generic.IList? topics,
string? webhookAuthHeaderName,
string? webhookAuthHeaderValue,
- string? webhookUrl,
- global::System.Collections.Generic.IList? wordBoost)
+ string? webhookUrl)
{
this.AudioEndAt = audioEndAt;
this.AudioStartFrom = audioStartFrom;
@@ -474,6 +490,7 @@ public TranscriptOptionalParams(
this.FilterProfanity = filterProfanity;
this.FormatText = formatText;
this.IabCategories = iabCategories;
+ this.KeytermsPrompt = keytermsPrompt;
this.LanguageCode = languageCode;
this.LanguageConfidenceThreshold = languageConfidenceThreshold;
this.LanguageDetection = languageDetection;
@@ -496,7 +513,6 @@ public TranscriptOptionalParams(
this.WebhookAuthHeaderName = webhookAuthHeaderName;
this.WebhookAuthHeaderValue = webhookAuthHeaderValue;
this.WebhookUrl = webhookUrl;
- this.WordBoost = wordBoost;
}
///
diff --git a/src/libs/AssemblyAI/openapi.yaml b/src/libs/AssemblyAI/openapi.yaml
index 97ea13a..8c0c5e2 100644
--- a/src/libs/AssemblyAI/openapi.yaml
+++ b/src/libs/AssemblyAI/openapi.yaml
@@ -1344,6 +1344,7 @@ components:
items:
x-label: Word to boost
type: string
+ deprecated: true
boost_param:
x-label: Word boost level
@@ -1431,6 +1432,22 @@ components:
x-label: Custom spelling
$ref: "#/components/schemas/TranscriptCustomSpelling"
+ keyterms_prompt:
+ x-label: Keyterms prompt
+ description: |
+ `keyterms_prompt` is only supported when the `speech_model` is specified as `slam-1`
+ Improve accuracy with up to 1000 domain-specific words or phrases (maximum 6 words per phrase).
+ type: array
+ items:
+ x-label: Keyterm
+ type: string
+
+ prompt:
+ x-label: Prompt
+ description: This parameter does not currently have any functionality attached to it.
+ type: string
+ deprecated: true
+
sentiment_analysis:
x-label: Sentiment Analysis
description: Enable [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis), can be true or false
@@ -2150,10 +2167,18 @@ components:
enum:
- best
- nano
+ - slam-1
+ - universal
x-fern-enum:
+ universal:
+ name: Universal
+ description: The model optimized for accuracy, low latency, ease of use, and mutli-language support.
+ slam-1:
+ name: Slam-1
+ description: A contextual model optimized for customization.
best:
name: Best
- description: The best model optimized for accuracy.
+ description: The model optimized for accuracy, low latency, ease of use, and mutli-language support.
nano:
name: Nano
description: A lightweight, lower cost model for a wide range of languages.
@@ -2724,6 +2749,7 @@ components:
items:
x-label: Boosted word
type: string
+ deprecated: true
boost_param:
x-label: Boost
@@ -2817,6 +2843,21 @@ components:
x-label: Custom spelling
$ref: "#/components/schemas/TranscriptCustomSpelling"
+ keyterms_prompt:
+ x-label: Keyterms prompt
+ description: |
+ Improve accuracy with up to 1000 domain-specific words or phrases (maximum 6 words per phrase).
+ type: array
+ items:
+ x-label: Keyterm
+ type: string
+
+ prompt:
+ x-label: Prompt
+ description: This parameter does not currently have any functionality attached to it.
+ type: string
+ deprecated: true
+
auto_chapters:
x-label: Auto Chapters enabled
description: Whether [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters) is enabled, can be true or false