api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FullResult

type FullResult struct {
	Status        int            `json:"status"`
	SegmentStart  float64        `json:"segment-start"`
	SegmentLength float64        `json:"segment-length"`
	TotalLength   float64        `json:"total-length"`
	Result        Result         `json:"result,omitempty"`
	Segment       int            `json:"segment"`
	ID            string         `json:"id,omitempty"`
	OldUpdates    []*ShortResult `json:"old-updates,omitempty"`
}

type Hypothesis

type Hypothesis struct {
	Transcript string  `json:"transcript"`
	Likelihood float64 `json:"likelihood"`
}

type Result

type Result struct {
	Hypotheses []Hypothesis `json:"hypotheses"`
	Final      bool         `json:"final"`
}

type ShortResult added in v0.2.0

type ShortResult struct {
	Transcript string `json:"transcript"`
	Segment    int    `json:"segment"`
	Final      bool   `json:"final"`
}

Jump to

Keyboard shortcuts

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