Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultLanguage = "en"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextCompactOptions ¶ added in v0.1.1
func (*TextCompactOptions) IsEmpty ¶ added in v0.1.1
func (o *TextCompactOptions) IsEmpty() bool
func (*TextCompactOptions) SetDefaults ¶ added in v0.1.1
func (o *TextCompactOptions) SetDefaults()
type TextOptions ¶ added in v0.1.1
type TextOptions struct {
CompactOptions TextCompactOptions
}
func (*TextOptions) FromEnv ¶ added in v0.1.1
func (o *TextOptions) FromEnv()
func (*TextOptions) FromMap ¶ added in v0.1.1
func (o *TextOptions) FromMap(m map[string]any)
func (*TextOptions) IsEmpty ¶ added in v0.1.1
func (o *TextOptions) IsEmpty() bool
func (*TextOptions) IsValid ¶ added in v0.1.1
func (o *TextOptions) IsValid() error
func (*TextOptions) SetDefaults ¶ added in v0.1.1
func (o *TextOptions) SetDefaults()
func (*TextOptions) ToEnv ¶ added in v0.1.1
func (o *TextOptions) ToEnv() []string
func (*TextOptions) ToMap ¶ added in v0.1.1
func (o *TextOptions) ToMap() map[string]any
type TrackTranscription ¶
type Transcriber ¶
type Transcription ¶
type Transcription []TrackTranscription
func (Transcription) Language ¶ added in v0.1.4
func (tr Transcription) Language() string
func (Transcription) Text ¶
func (t Transcription) Text(w io.Writer, opts TextOptions) error
func (Transcription) WebVTT ¶
func (t Transcription) WebVTT(w io.Writer, opts WebVTTOptions) error
type WebVTTOptions ¶
type WebVTTOptions struct {
OmitSpeaker bool
}
func (*WebVTTOptions) FromEnv ¶ added in v0.1.1
func (o *WebVTTOptions) FromEnv()
func (*WebVTTOptions) FromMap ¶ added in v0.1.1
func (o *WebVTTOptions) FromMap(m map[string]any)
func (*WebVTTOptions) IsEmpty ¶ added in v0.1.1
func (o *WebVTTOptions) IsEmpty() bool
func (*WebVTTOptions) IsValid ¶ added in v0.1.1
func (o *WebVTTOptions) IsValid() error
func (*WebVTTOptions) SetDefaults ¶ added in v0.1.1
func (o *WebVTTOptions) SetDefaults()
func (*WebVTTOptions) ToEnv ¶ added in v0.1.1
func (o *WebVTTOptions) ToEnv() []string
func (*WebVTTOptions) ToMap ¶ added in v0.1.1
func (o *WebVTTOptions) ToMap() map[string]any
Click to show internal directories.
Click to hide internal directories.