Documentation ¶
Index ¶
- func NewAccentuator(urlStr string) (synthesizer.PartProcessor, error)
- func NewAcousticModel(config *viper.Viper) (synthesizer.PartProcessor, error)
- func NewAcronyms(urlStr string) (synthesizer.PartProcessor, error)
- func NewAddMetrics(mFunc func(data *synthesizer.TTSData)) (synthesizer.Processor, error)
- func NewCleaner(urlStr string) (synthesizer.Processor, error)
- func NewClitics(urlStr string) (synthesizer.PartProcessor, error)
- func NewComparator(urlStr string) (synthesizer.Processor, error)
- func NewConverter(urlStr string) (synthesizer.Processor, error)
- func NewFiler(dir string) (synthesizer.Processor, error)
- func NewJoinAudio(suffixProvider AudioLoader) synthesizer.Processor
- func NewJoinSSMLAudio(suffixProvider AudioLoader) synthesizer.Processor
- func NewLoader(s LoadDB) (synthesizer.Processor, error)
- func NewMetricsCharsFunc(url string) func(data *synthesizer.TTSData)
- func NewMetricsWaveLenFunc(url string) func(data *synthesizer.TTSData)
- func NewNormalizer(urlStr string) (synthesizer.Processor, error)
- func NewNumberReplace(urlStr string) (synthesizer.Processor, error)
- func NewObsceneFilter(urlStr string) (synthesizer.PartProcessor, error)
- func NewSSMLNumberReplace(urlStr string) (synthesizer.Processor, error)
- func NewSSMLTagger(urlStr string) (synthesizer.Processor, error)
- func NewSSMLValidator(defaultMaxLen int) (synthesizer.Processor, error)
- func NewSaver(s SaverDB, t utils.RequestTypeEnum) (synthesizer.Processor, error)
- func NewSplitter(maxChars int) synthesizer.Processor
- func NewTagger(urlStr string) (synthesizer.Processor, error)
- func NewTaggerAccents(urlStr string) (synthesizer.Processor, error)
- func NewTranscriber(urlStr string) (synthesizer.PartProcessor, error)
- func NewURLReplacer() synthesizer.Processor
- func NewValidator(defaultMaxLen int) (synthesizer.Processor, error)
- func NewVocoder(urlStr string) (synthesizer.PartProcessor, error)
- type AudioLoader
- type HTTPInvoker
- type HTTPInvokerJSON
- type LoadDB
- type SSMLPartRunner
- type SaverDB
- type TaggedWord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccentuator ¶
func NewAccentuator(urlStr string) (synthesizer.PartProcessor, error)
NewAccentuator creates new processor
func NewAcousticModel ¶
func NewAcousticModel(config *viper.Viper) (synthesizer.PartProcessor, error)
NewAcousticModel creates new processor
func NewAcronyms ¶
func NewAcronyms(urlStr string) (synthesizer.PartProcessor, error)
NewAcronyms creates new processor
func NewAddMetrics ¶ added in v0.2.387
func NewAddMetrics(mFunc func(data *synthesizer.TTSData)) (synthesizer.Processor, error)
NewAddMetrics creates new processor to fill metrics
func NewCleaner ¶
func NewCleaner(urlStr string) (synthesizer.Processor, error)
NewCleaner creates new text clean processor
func NewClitics ¶ added in v0.2.387
func NewClitics(urlStr string) (synthesizer.PartProcessor, error)
NewClitics creates new processor
func NewComparator ¶
func NewComparator(urlStr string) (synthesizer.Processor, error)
NewComparator creates new text comparator processor
func NewConverter ¶
func NewConverter(urlStr string) (synthesizer.Processor, error)
NewConverter creates new processor for wav to mp3/m4a conversion
func NewFiler ¶
func NewFiler(dir string) (synthesizer.Processor, error)
NewFiler creates new processor that save file for testing purposes
func NewJoinAudio ¶
func NewJoinAudio(suffixProvider AudioLoader) synthesizer.Processor
NewJoinAudio joins results into one audio
func NewJoinSSMLAudio ¶ added in v0.2.387
func NewJoinSSMLAudio(suffixProvider AudioLoader) synthesizer.Processor
NewJoinSSMLAudio joins results into one audio from many ssml parts
func NewLoader ¶
func NewLoader(s LoadDB) (synthesizer.Processor, error)
NewLoader creates new text to db processor
func NewMetricsCharsFunc ¶ added in v0.2.387
func NewMetricsCharsFunc(url string) func(data *synthesizer.TTSData)
NewMetricsCharsFunc creates func for adding symbols count
func NewMetricsWaveLenFunc ¶ added in v0.2.387
func NewMetricsWaveLenFunc(url string) func(data *synthesizer.TTSData)
NewMetricsWaveLenFunc creates func for add audiolen metric
func NewNormalizer ¶ added in v0.4.0
func NewNormalizer(urlStr string) (synthesizer.Processor, error)
NewNormalizer creates new text normalize processor
func NewNumberReplace ¶
func NewNumberReplace(urlStr string) (synthesizer.Processor, error)
NewNumberReplace creates new processor
func NewObsceneFilter ¶ added in v0.2.387
func NewObsceneFilter(urlStr string) (synthesizer.PartProcessor, error)
NewObsceneFilter creates new processor
func NewSSMLNumberReplace ¶ added in v0.2.407
func NewSSMLNumberReplace(urlStr string) (synthesizer.Processor, error)
NewSSMLNumberReplace creates new processor
func NewSSMLTagger ¶ added in v0.2.407
func NewSSMLTagger(urlStr string) (synthesizer.Processor, error)
NewSSMLTagger creates new processor
func NewSSMLValidator ¶ added in v0.2.387
func NewSSMLValidator(defaultMaxLen int) (synthesizer.Processor, error)
NewSSMLValidator creates new processor
func NewSaver ¶
func NewSaver(s SaverDB, t utils.RequestTypeEnum) (synthesizer.Processor, error)
NewSaver creates new text to db processor
func NewSplitter ¶
func NewSplitter(maxChars int) synthesizer.Processor
NewSplitter split text into batches
func NewTagger ¶
func NewTagger(urlStr string) (synthesizer.Processor, error)
NewTagger creates new processor
func NewTaggerAccents ¶
func NewTaggerAccents(urlStr string) (synthesizer.Processor, error)
NewTaggerAccents creates new processor
func NewTranscriber ¶
func NewTranscriber(urlStr string) (synthesizer.PartProcessor, error)
NewTranscriber creates new processor
func NewURLReplacer ¶ added in v0.2.387
func NewURLReplacer() synthesizer.Processor
NewURLReplacer creates new URL replacer processor
func NewValidator ¶
func NewValidator(defaultMaxLen int) (synthesizer.Processor, error)
NewValidator creates new processor
func NewVocoder ¶
func NewVocoder(urlStr string) (synthesizer.PartProcessor, error)
NewVocoder creates new processor
Types ¶
type AudioLoader ¶ added in v0.2.407
AudioLoader provides wav data by key
type HTTPInvoker ¶
HTTPInvoker makes http call
type HTTPInvokerJSON ¶
type HTTPInvokerJSON interface { InvokeJSON(interface{}, interface{}) error InvokeJSONU(URL string, dataIn interface{}, dataOut interface{}) error InvokeText(string, interface{}) error }
HTTPInvokerJSON invoker for json input
type LoadDB ¶
type LoadDB interface {
LoadText(req string, reqType utils.RequestTypeEnum) (string, error)
}
LoadDB interface for text saving
type SSMLPartRunner ¶ added in v0.2.387
type SSMLPartRunner struct {
// contains filtered or unexported fields
}
SSMLPartRunner runs all processors for Text part
func NewSSMLPartRunner ¶ added in v0.2.387
func NewSSMLPartRunner(processors []synthesizer.Processor) *SSMLPartRunner
NewSSMLPartRunner creates runner for SSML parts representing Text
func (*SSMLPartRunner) Info ¶ added in v0.2.387
func (p *SSMLPartRunner) Info() string
Info return info about processor
func (*SSMLPartRunner) Process ¶ added in v0.2.387
func (p *SSMLPartRunner) Process(data *synthesizer.TTSData) error
Process main method