transcribe

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment struct {
	Text    string
	StartTS int64
	EndTS   int64
}

type TrackTranscription

type TrackTranscription struct {
	Speaker  string
	Segments []Segment
}

type Transcriber

type Transcriber interface {
	Transcribe(samples []float32) ([]Segment, error)
	Destroy() error
}

type Transcription

type Transcription []TrackTranscription

func (Transcription) Text

func (t Transcription) Text(w io.Writer) error

func (Transcription) WebVTT

func (t Transcription) WebVTT(w io.Writer, opts WebVTTOptions) error

type WebVTTOptions

type WebVTTOptions struct {
	OmitSpeaker bool
}

Jump to

Keyboard shortcuts

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