Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyzeOptions ¶ added in v1.2.0
type AnalyzeOptions interfaces.AnalyzeOptions
********************************* Request/Input structs *********************************
type AnalyzeResponse ¶
type AnalyzeResponse struct {
RequestID string `json:"request_id,omitempty"` // for ?callback=...
Metadata Metadata `json:"metadata,omitempty"`
Results Results `json:"results,omitempty"`
}
********************************* response/result structs *********************************
type ErrorResponse ¶ added in v1.3.0
type ErrorResponse interfaces.DeepgramError
ErrorResponse is the Deepgram specific response error
type IntentsInfo ¶
type IntentsInfo struct {
ModelUUID string `json:"model_uuid,omitempty"`
InputTokens int `json:"input_tokens,omitempty"`
OutputTokens int `json:"output_tokens,omitempty"`
}
********************************* share/common structs *********************************
type Metadata ¶
type Metadata struct {
RequestID string `json:"request_id,omitempty"`
Created string `json:"created,omitempty"`
Language string `json:"language,omitempty"`
IntentsInfo *IntentsInfo `json:"intents_info,omitempty"`
SentimentInfo *SentimentInfo `json:"sentiment_info,omitempty"`
SummaryInfo *SummaryInfo `json:"summary_info,omitempty"`
TopicsInfo *TopicsInfo `json:"topics_info,omitempty"`
}
type Results ¶
type Results struct {
Sentiments *Sentiments `json:"sentiments,omitempty"`
Summary *Summary `json:"summary,omitempty"`
Topics *Topics `json:"topics,omitempty"`
Intents *Intents `json:"intents,omitempty"`
}
type Segment ¶
type Segment struct {
Text string `json:"text,omitempty"`
StartWord int `json:"start_word,omitempty"`
EndWord int `json:"end_word,omitempty"`
Sentiment *string `json:"sentiment,omitempty"`
SentimentScore *float64 `json:"sentiment_score,omitempty"`
Topics *[]Topic `json:"topics,omitempty"`
Intents *[]Intent `json:"intents,omitempty"`
}
type SentimentInfo ¶
type Sentiments ¶
type SummaryInfo ¶
type TopicsInfo ¶
Click to show internal directories.
Click to hide internal directories.