Discover Packages
github.com/deepgram-devs/go-sdk
types
package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Jul 21, 2022
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Alternative struct {
Transcript string `json:"transcript"`
Confidence float64 `json:"confidence"`
Words []WordBase `json:"words"`
}
type Channel struct {
Search []Search `json:"search"`
Alternatives []Alternative `json:"alternatives"`
}
type Hit struct {
Confidence float64 `json:"confidence"`
Start float64 `json:"start"`
End float64 `json:"end"`
Snippet string `json:"snippet"`
}
type Metadata struct {
RequestId string `json:"request_id"`
TransactionKey string `json:"transaction_key"`
Sha256 string `json:"sha256"`
Created string `json:"created"`
Duration int `json:"duration"`
Channels int `json:"channels"`
}
type Results struct {
Utterances []Utterance `json:"utterances"`
Channels []Channel `json:"channels"`
}
type Search struct {
Query string `json:"query"`
Hits []Hit `json:"hits"`
}
type Utterance struct {
Start float64 `json:"start"`
End float64 `json:"end"`
Confidence float64 `json:"confidence"`
Channel int `json:"channel"`
Transcript string `json:"transcript"`
Words []WordBase `json:"words"`
Speaker int `json:"speaker"`
Id string `json:"id"`
}
type WordBase struct {
Word string `json:"word"`
Start float64 `json:"start"`
End float64 `json:"end"`
Confidence float64 `json:"confidence"`
Punctuated_Word string `json:"punctuated_word"`
Speaker int `json:"speaker"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.