qa_align

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessFAResults

func ProcessFAResults(db *sql.DB, request FARequest, jsonData string) error

ProcessFAResults receives the JSON char list from the Python FA module, aligns it to the reference words via sequence alignment, inserts rows into charsV2, and updates the words and scripts tables.

Types

type CharResult

type CharResult struct {
	Char  string  `json:"char"`
	Start float64 `json:"start"`
	End   float64 `json:"end"`
	Score float64 `json:"score"`
}

CharResult holds the per-character forced alignment output from Python.

type FARequest

type FARequest struct {
	ScriptId      int64  `json:"script_id"`
	AudioPath     string `json:"audio"`
	ReferenceText string `json:"text"`
}

type QAAlign

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

func NewQAAlign

func NewQAAlign(ctx context.Context, conn db.DBAdapter, lang string, sttLang string, adapter bool) QAAlign

func (*QAAlign) ProcessFiles

func (a *QAAlign) ProcessFiles(files []input.InputFile) *log.Status

ProcessFiles will perform Auto Speech Recognition on these files

Jump to

Keyboard shortcuts

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