model

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioFile

type AudioFile struct {
	Ident      *Ident `json:"ident,omitempty"`
	MediaId    string `json:"media_id,omitempty"`
	MediaType  string `json:"media_type,omitempty"`
	Testament  string `json:"testament,omitempty"`
	BookId     string `json:"book_id,omitempty"`
	BookSeq    string `json:"book_seq,omitempty"`
	ChapterNum int    `json:"chapter_num,omitempty"`
	ChapterEnd int    `json:"chapter_end,omitempty"`
	VerseStr   string `json:"verse_str,omitempty"` // not sure how this is used but parseV4AudioFilename parses it.
	VerseEnd   string `json:"verse_end,omitempty"`
	ScriptLine string `json:"script_line,omitempty"`
	Filename   string `json:"filename,omitempty"`
	FileExt    string `json:"file_ext,omitempty"`
	Directory  string `json:"directory,omitempty"`
}

func (*AudioFile) FilePath added in v1.1.8

func (a *AudioFile) FilePath() string

type Ident

type Ident struct {
	BibleId        string      `json:"bible_id,omitempty"`
	AudioOTId      string      `json:"audio_OT_id,omitempty"`
	AudioNTId      string      `json:"audio_NT_id,omitempty"`
	TextOTId       string      `json:"text_OT_id,omitempty"`
	TextNTId       string      `json:"text_NT_id,omitempty"`
	TextSource     string      `json:"text_source,omitempty"`
	LanguageISO    string      `json:"language_iso,omitempty"`
	ASRLanguageISO string      `json:"asr_language_iso,omitempty"`
	VersionCode    string      `json:"version_code,omitempty"`
	LanguageId     int         `json:"language_id,omitempty"`
	RolvId         int         `json:"rolv_id,omitempty"`
	Alphabet       string      `json:"alphabet,omitempty"`
	LanguageName   string      `json:"language_name,omitempty"`
	VersionName    string      `json:"version_name,omitempty"`
	TextFiles      []TextFile  `json:"text_files,omitempty"`
	AudioFiles     []AudioFile `json:"audio_files,omitempty"`
	Scripts        []Script    `json:"scripts,omitempty"`
}

type Log

type Log struct {
	Level     string `json:"level"`
	DateTime  string `json:"datetime"`
	Component string `json:"component"`
	Message   string `json:"message"`
}

type Script

type Script struct {
	Ident         *Ident     `json:"ident,omitempty"`
	TextFile      *TextFile  `json:"text_file,omitempty"`
	AudioFile     *AudioFile `json:"audio_file,omitempty"`
	BookId        string     `json:"book_id"`
	ChapterNum    int        `json:"chapter_num"`
	ChapterEnd    int        `json:"chapter_end,omitempty"`
	VerseStr      string     `json:"verse_str"`
	VerseEnd      string     `json:"verse_end,omitempty"`
	VerseNum      int        `json:"verse_num,omitempty"`
	ScriptNum     string     `json:"script_num,omitempty"`
	UsfmStyle     string     `json:"usfm_style,omitempty"`
	Person        string     `json:"person,omitempty"`
	Actor         string     `json:"actor,omitempty"`
	ScriptText    string     `json:"script_text"`
	URoman        string     `json:"uroman,omitempty"`
	ScriptBeginTS float64    `json:"script_begin_ts,omitempty"`
	ScriptEndTS   float64    `json:"script_end_ts,omitempty"`
	ScriptFAScore float64    `json:"script_fa_score,omitempty"`
	Transcription string     `json:"transcription,omitempty"`
	URomanTrans   string     `json:"uroman_trans,omitempty"`
	Words         []Word     `json:"words,omitempty"`
}

type TextFile

type TextFile struct {
	Ident      *Ident `json:"ident,omitempty"`
	MediaId    string `json:"media_id,omitempty"`
	MediaType  string `json:"media_type,omitempty"`
	Testament  string `json:"testament,omitempty"`
	BookId     string `json:"book_id,omitempty"` // not used for text_plain
	BookSeq    string `json:"book_seq,omitempty"`
	ScriptLine string `json:"script_line,omitempty"`
	Filename   string `json:"filename,omitempty"`
	FileExt    string `json:"file_ext,omitempty"`
	Directory  string `json:"directory,omitempty"`
}

func (*TextFile) FilePath added in v1.1.8

func (t *TextFile) FilePath() string

type Word

type Word struct {
	Script      *Script `json:"script,omitempty"`
	TType       string  `json:"ttype"`
	Word        string  `json:"word"`
	WordBeginTS float64 `json:"word_begin_ts,omitempty"`
	WordEndTS   float64 `json:"word_end_ts,omitempty"`
	WordFAScore float64 `json:"word_fa_score,omitempty"`
}

Jump to

Keyboard shortcuts

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