deepgram

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alternative

type Alternative struct {
	Transcript string     `json:"transcript"`
	Confidence float64    `json:"confidence"`
	Words      []WordBase `json:"words"`
}

type Channel

type Channel struct {
	Search       []Search      `json:"search"`
	Alternatives []Alternative `json:"alternatives"`
}

type Hit

type Hit struct {
	Confidence float64 `json:"confidence"`
	Start      float64 `json:"start"`
	End        float64 `json:"end"`
	Snippet    string  `json:"snippet"`
}

type Metadata

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

type Results struct {
	Utterances []Utterance `json:"utterances"`
	Channels   []Channel   `json:"channels"`
}
type Search struct {
	Query string `json:"query"`
	Hits  []Hit  `json:"hits"`
}

type Utterance

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

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL