encode

package
v1.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aeneas

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

func NewAeneas

func NewAeneas(ctx context.Context, conn db.DBAdapter, bibleId string, languageISO string, detail request.Detail) Aeneas

NewAeneas the DBAdapter contains text to be timestamped.

func (*Aeneas) ProcessFiles

func (a *Aeneas) ProcessFiles(audioFiles []input.InputFile) *log.Status

type AeneasExperiment

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

func NewAeneasExperiment

func NewAeneasExperiment(ctx context.Context, audioMediaId string, language string) AeneasExperiment

func (*AeneasExperiment) CountChars

func (a *AeneasExperiment) CountChars(scripts []db.Script) int

func (*AeneasExperiment) DumpScript

func (a *AeneasExperiment) DumpScript(scripts []db.Script, filename string)

func (*AeneasExperiment) FindAudioFiles

func (a *AeneasExperiment) FindAudioFiles() map[string]string

func (*AeneasExperiment) GetPlainTextEdit

func (a *AeneasExperiment) GetPlainTextEdit(conn db.DBAdapter, groups []db.Script)

func (*AeneasExperiment) GetTimestamps

func (a *AeneasExperiment) GetTimestamps(audioId string, scripts []db.Script) []db.Script

func (*AeneasExperiment) GroupScriptByVerse

func (a *AeneasExperiment) GroupScriptByVerse(scripts []db.Script) []db.Script

func (*AeneasExperiment) LoadPlainTextEdit

func (a *AeneasExperiment) LoadPlainTextEdit() db.DBAdapter

func (*AeneasExperiment) LoadScript

func (a *AeneasExperiment) LoadScript() []db.Script

func (*AeneasExperiment) MergeTimestamps

func (a *AeneasExperiment) MergeTimestamps(scripts []db.Script, aeneasTS []db.Timestamp)

func (*AeneasExperiment) Process

func (a *AeneasExperiment) Process()

func (*AeneasExperiment) ProcessAeneas

func (a *AeneasExperiment) ProcessAeneas(recs []db.Script) []db.Timestamp

func (*AeneasExperiment) ProcessByChapter

func (a *AeneasExperiment) ProcessByChapter(scripts []db.Script)

func (*AeneasExperiment) SafeAtoi

func (a *AeneasExperiment) SafeAtoi(number string) int

type AeneasRec

type AeneasRec struct {
	Begin    string   `json:"begin"`
	Children []string `json:"children"`
	End      string   `json:"end"`
	Id       string   `json:"id"`
	Language string   `json:"language"`
	Lines    []string `json:"lines"`
}

type AeneasResp

type AeneasResp struct {
	Fragments []AeneasRec `json:"fragments"`
}

type FastText

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

func NewFastText

func NewFastText(ctx context.Context, conn db.DBAdapter) FastText

func (*FastText) Process

func (f *FastText) Process() *log.Status

type MFCC

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

func NewMFCC

func NewMFCC(ctx context.Context, conn db.DBAdapter, bibleId string,
	detail request.Detail, numMFCC int) MFCC

func (*MFCC) ProcessFiles

func (m *MFCC) ProcessFiles(audioFiles []input.InputFile) *log.Status

type MFCCResp

type MFCCResp struct {
	AudioFile  string      `json:"input_file"`
	SampleRate float64     `json:"sample_rate"`
	HopLength  float64     `json:"hop_length"`
	FrameRate  float64     `json:"frame_rate"`
	Shape      []int       `json:"mfcc_shape"`
	Type       string      `json:"mfcc_type"`
	MFCC       [][]float32 `json:"mfccs"`
}

Jump to

Keyboard shortcuts

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