Skip to content

Commit

Permalink
adds summarize v2
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraRodgers committed Jun 29, 2023
1 parent 04c753f commit e95a19b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
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")]
public Summary Summary { get; set; }
}
}
6 changes: 6 additions & 0 deletions Deepgram/Transcription/Summary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ public class Summary
[JsonProperty("end_word")]
public int EndWord { get; set; }

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

}
}

0 comments on commit e95a19b

Please sign in to comment.