From f9cd6ed0ee4f1204dcef758a2e7501a437f7f71d Mon Sep 17 00:00:00 2001 From: weiminw Date: Tue, 18 Jul 2023 10:32:33 -0400 Subject: [PATCH] add support for sentiment analysis --- deepgram/prerecorded.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deepgram/prerecorded.go b/deepgram/prerecorded.go index ecc81780..2b4076ef 100644 --- a/deepgram/prerecorded.go +++ b/deepgram/prerecorded.go @@ -49,7 +49,7 @@ type PreRecordedTranscriptionOptions struct { Times bool `json:"times" url:"times,omitempty"` // Indicates whether to convert times from written format (e.g., 3:00 pm) to numerical format (e.g., 15:00). Translate string `json:"translate" url:"translate,omitempty" ` Utterances bool `json:"utterances" url:"utterances,omitempty" ` - Utt_split float64 `json:"utt_split" url:"utt_split,omitempty" ` + Utt_split float64 `json:"utt_split" url:"utt_split,omitempty" ` Version string `json:"version" url:"version,omitempty" ` } @@ -93,6 +93,7 @@ type WordBase struct { Speaker *int `json:"speaker,omitempty"` SpeakerConfidence float64 `json:"speaker_confidence,omitempty"` Punctuated_Word string `json:"punctuated_word,omitempty"` + Sentiment string `json:"sentiment,omitempty"` } type Alternative struct {