Skip to content

Commit

Permalink
Merge pull request #98 from deepgram/sr-summarize-v2-2
Browse files Browse the repository at this point in the history
adds summarize v2
  • Loading branch information
SandraRodgers authored Jun 29, 2023
2 parents 04c753f + 25e7303 commit 8a143d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Deepgram/Transcription/PrerecordedTranscriptionOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public class PrerecordedTranscriptionOptions
/// Indicates whether Deepgram should provide summarizations of sections of the provided audio.
/// </summary>
[JsonProperty("summarize")]
public Nullable<bool> Summarize { get; set; } = null;
public object Summarize { get; set; } = null;

/// <summary>
/// Indicates whether Deepgram should detect entities within the provided audio.
Expand Down
6 changes: 6 additions & 0 deletions Deepgram/Transcription/PrerecordedTranscriptionResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,11 @@ public class PrerecordedTranscriptionResult
/// </summary>
[JsonProperty("utterances")]
public Utterance[] Utterances { get; set; }

/// <summary>
/// Summary of Transcription.
/// </summary>
[JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)]
public Summary Summary { get; set; }
}
}
10 changes: 9 additions & 1 deletion Deepgram/Transcription/Summary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Summary
/// <summary>
/// Summary of a section of the transcript
/// </summary>
[JsonProperty("summary")]
[JsonProperty("summary", NullValueHandling=NullValueHandling.Ignore)]
public string TextSummary { get; set; }

/// <summary>
Expand All @@ -23,5 +23,13 @@ public class Summary
[JsonProperty("end_word")]
public int EndWord { get; set; }

/// <summary>
/// Array of Channel objects.
/// </summary>
[JsonProperty("short", NullValueHandling=NullValueHandling.Ignore)]
public string Short { get; set; }

}
}


0 comments on commit 8a143d1

Please sign in to comment.