timestamp

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TSBucketName = `dbp-aeneas-staging`
	LatinN1      = `Latin_N1_organized/pass_qc/`
	LatinN2      = `Latin_N2_organized/pass_qc/`
	Script       = `core_script/`
	ScriptTS     = `cue_info_text/`
	LineAeneas   = `aeneas_line_timings/`
	VerseAeneas  = `aeneas_verse_timings/`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TSBucket

type TSBucket struct {
	// contains filtered or unexported fields
}

func NewTSBucket

func NewTSBucket(ctx context.Context, conn db.DBAdapter) (TSBucket, *log.Status)

func (*TSBucket) DownloadObject

func (t *TSBucket) DownloadObject(bucket string, key string, path string) *log.Status

func (*TSBucket) GetAeneasKey

func (t *TSBucket) GetAeneasKey(bookId string, chapterNum int) string

func (*TSBucket) GetKey

func (t *TSBucket) GetKey(tsType string, mediaId string, bookId string, chapterNum int) (string, *log.Status)

func (*TSBucket) GetObject

func (t *TSBucket) GetObject(bucket string, key string) ([]byte, *log.Status)

func (*TSBucket) GetScriptTSKey

func (t *TSBucket) GetScriptTSKey(mediaId string, bookId string, chapterNum int) string

func (*TSBucket) GetTimestamps

func (t *TSBucket) GetTimestamps(tsType string, mediaId string, bookId string, chapterNum int) ([]db.Audio, *log.Status)

func (*TSBucket) ListObjects

func (t *TSBucket) ListObjects(bucket, prefix string) ([]string, *log.Status)

func (*TSBucket) ListPrefix

func (t *TSBucket) ListPrefix(bucket, prefix string) ([]string, *log.Status)

func (*TSBucket) ProcessFiles

func (t *TSBucket) ProcessFiles(files []input.InputFile) *log.Status

type Waha

type Waha struct {
	AudioFile string      `json:"audio_file"`
	TextFile  string      `json:"text_file"`
	Sections  []WahaVerse `json:"sections"`
}

type WahaTimestamper

type WahaTimestamper struct {
	// contains filtered or unexported fields
}

func NewWahaTimestamper

func NewWahaTimestamper(ctx context.Context) WahaTimestamper

func (*WahaTimestamper) GetTimestamps

func (w *WahaTimestamper) GetTimestamps(tsType string, mediaId string, bookId string, chapterNum int) ([]db.Audio, *log.Status)

type WahaVerse

type WahaVerse struct {
	VerseId    string    `json:"verse_id"`
	Timings    []float64 `json:"timings"`
	TimingsStr []string  `json:"timings_str"`
	Text       string    `json:"text"`
	Uroman     string    `json:"uroman_tokens"`
}

Jump to

Keyboard shortcuts

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