From fe99d86265d631267d8febf7824313f13854150d Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Fri, 22 Mar 2024 17:30:21 -0700 Subject: [PATCH] Implements Encoding and SampleRate in Prerecorded --- .../Models/PreRecorded/v1/PrerecordedSchema.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Deepgram/Models/PreRecorded/v1/PrerecordedSchema.cs b/Deepgram/Models/PreRecorded/v1/PrerecordedSchema.cs index 4728603e..eac904f3 100644 --- a/Deepgram/Models/PreRecorded/v1/PrerecordedSchema.cs +++ b/Deepgram/Models/PreRecorded/v1/PrerecordedSchema.cs @@ -94,6 +94,14 @@ public class PrerecordedSchema [JsonPropertyName("dictation")] public bool? Dictation { get; set; } + /// + /// Encoding allows you to specify the expected encoding of your submitted audio. + /// + /// supported encodings + /// + [JsonPropertyName("encoding")] + public string? Encoding { get; set; } + /// /// Deepgramā€™s Extra Metadata feature allows you to attach arbitrary key-value pairs to your API requests that are attached to the API response for usage in downstream processing. /// Extra metadata is limited to 2048 characters per key-value pair. @@ -187,6 +195,14 @@ public class PrerecordedSchema [JsonPropertyName("replace")] public List? Replace { get; set; } + /// + /// Sample Rate allows you to specify the sample rate of your submitted audio. + /// + /// only applies when Encoding has a value + /// + [JsonPropertyName("sample_rate")] + public int? SampleRate { get; set; } + /// /// Search searches for terms or phrases in submitted audio. ///