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 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
Click to show internal directories.
Click to hide internal directories.