Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Segment ¶
type Segment struct {
Id int32 `json:"id" writer:",right,width:5"`
Start Timestamp `json:"start" writer:",right,width:5"`
End Timestamp `json:"end" writer:",right,width:5"`
Text string `json:"text" writer:",wrap,width:70"`
Speaker string `json:"speaker,omitempty" writer:",width:20"` // TODO
SpeakerTurn bool `json:"speaker_turn,omitempty"` // TODO
}
type Timestamp ¶
func SecToTimestamp ¶ added in v0.0.23
func (Timestamp) MarshalJSON ¶
func (*Timestamp) UnmarshalJSON ¶ added in v0.0.23
type Transcription ¶
type Transcription struct {
Task string `json:"task,omitempty"`
Language string `json:"language,omitempty" writer:",width:8"`
Duration Timestamp `json:"duration,omitempty" writer:",width:8,right"`
Text string `json:"text,omitempty" writer:",width:60,wrap"`
Segments []*Segment `json:"segments,omitempty" writer:",width:40,wrap"`
}
func (*Transcription) String ¶
func (t *Transcription) String() string
Click to show internal directories.
Click to hide internal directories.