diff --git a/Deepgram/Transcription/PrerecordedTranscriptionOptions.cs b/Deepgram/Transcription/PrerecordedTranscriptionOptions.cs index 4c89a30c..eb523f7f 100644 --- a/Deepgram/Transcription/PrerecordedTranscriptionOptions.cs +++ b/Deepgram/Transcription/PrerecordedTranscriptionOptions.cs @@ -203,7 +203,7 @@ public class PrerecordedTranscriptionOptions /// Indicates whether Deepgram should provide summarizations of sections of the provided audio. /// [JsonProperty("summarize")] - public Nullable Summarize { get; set; } = null; + public object Summarize { get; set; } = null; /// /// Indicates whether Deepgram should detect entities within the provided audio. diff --git a/Deepgram/Transcription/PrerecordedTranscriptionResult.cs b/Deepgram/Transcription/PrerecordedTranscriptionResult.cs index 8891733e..16faaed1 100644 --- a/Deepgram/Transcription/PrerecordedTranscriptionResult.cs +++ b/Deepgram/Transcription/PrerecordedTranscriptionResult.cs @@ -16,5 +16,11 @@ public class PrerecordedTranscriptionResult /// [JsonProperty("utterances")] public Utterance[] Utterances { get; set; } + + /// + /// Summary of Transcription. + /// + [JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)] + public Summary Summary { get; set; } } } diff --git a/Deepgram/Transcription/Summary.cs b/Deepgram/Transcription/Summary.cs index 6fc0661d..7a149e50 100644 --- a/Deepgram/Transcription/Summary.cs +++ b/Deepgram/Transcription/Summary.cs @@ -8,7 +8,7 @@ public class Summary /// /// Summary of a section of the transcript /// - [JsonProperty("summary")] + [JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)] public string TextSummary { get; set; } /// @@ -23,5 +23,13 @@ public class Summary [JsonProperty("end_word")] public int EndWord { get; set; } + /// + /// Array of Channel objects. + /// + [JsonProperty("short", NullValueHandling=NullValueHandling.Ignore)] + public string Short { get; set; } + } } + +