Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Record ¶
type Record struct {
Text string
HelperText string
TextA, TextB, TextC, TextD string
AudioA, AudioB, AudioC, AudioD string
AudioAnswer string
}
Record is how anki CSV file should look like
func ReadCSVRecords ¶
ReadCSVRecords reads records from anki CSV file
func (Record) CleanedText ¶
CleanedText returns the cleaned text without "{{c1::}}"
func (Record) RandomizedRow ¶
RandomizedRow returns Record with shuffled order of TextA, TextB, TextC, TextD
type RunConfig ¶
type RunConfig struct {
Speed string
Voice string
HelperLanguage string
Deck string
Endpoint string
Shuffle bool
StripCSVHeader bool
PrintOut bool
}
RunConfig tells each run how to run
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner handles concurrent processing of synthesize operations
type RunnerOption ¶
type RunnerOption func(*Runner)
RunnerOption configures a Runner
func WithMaxWorkers ¶
func WithMaxWorkers(n int) RunnerOption
WithMaxWorkers sets the maximum number of concurrent workers
func WithSaveFunc ¶
func WithSaveFunc(fn SaveFn) RunnerOption
WithSaveFunc sets custom save function
Click to show internal directories.
Click to hide internal directories.