srt

package
v0.0.0-...-ea22c33 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSRTFromJSONChunks

func MakeSRTFromJSONChunks(recogniseResults app.SubtitlesRecognitionResultArray) []string

Types

type Alternative

type Alternative struct {
	WordsStartEndTimes []WordStartEndTime `json:"timestamps"`
	Confidence         float64            `json:"confidence"`
	Transcript         string             `json:"transcript"`
}

type BeginEndTime

type BeginEndTime struct {
	Begin string
	End   string
}

type Result

type Result struct {
	Alternatives []Alternative `json:"alternatives"`
	Final        bool          `json:"final"`
}

type ResultJSON

type ResultJSON struct {
	Results []Result `json:"results"`
}

type TimestampValue

type TimestampValue string

func (*TimestampValue) UnmarshalJSON

func (tv *TimestampValue) UnmarshalJSON(b []byte) error

type WordStartEndTime

type WordStartEndTime struct {
	Word string
	Time BeginEndTime
}

func (*WordStartEndTime) UnmarshalJSON

func (wt *WordStartEndTime) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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