Documentation ¶
Index ¶
- Variables
- func Duration(str string) time.Duration
- func DurationToText(d time.Duration) string
- func FixPuncts(data []*Part)
- func IsSilence(w *Word) bool
- func SilDuration(data []*Part, i int) time.Duration
- func ToDuration(v float64) time.Duration
- func WordDuration(w *Word) time.Duration
- func Write(data []*Part, writer io.Writer) error
- type Part
- type Word
Constants ¶
This section is empty.
Variables ¶
View Source
var MainInd = "1"
MainInd ord line indicator
View Source
var SilWord = "<eps>"
SilWord indicate sil word in lattice
Functions ¶
func DurationToText ¶
DurationToText converts duration to text
func SilDuration ¶
SilDuration return duration between main last word of data[i-1] and first main word of data[i]
func ToDuration ¶
ToDuration convert second as float to duration
func WordDuration ¶
WordDuration return duration from word line
Types ¶
Click to show internal directories.
Click to hide internal directories.