Skip to content

Commit

Permalink
add support for sentiment analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
Weimin-Wan committed Jul 18, 2023
1 parent aa510f9 commit f9cd6ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deepgram/prerecorded.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" `
}

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f9cd6ed

Please sign in to comment.