ttsTask

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackEntry

type PackEntry struct {
	// Text to be synthesized
	Text string
	// Entry name to be packed into a file
	EntryName string
	// EntryOpts defines the options for communicating with the TTS engine.if note set, use the PackTask's CommunicateOpt.
	EntryOpts []communicate.Option
}

type PackTask

type PackTask struct {
	// PackEntryCreator defines the function to create a writer for each entry
	PackEntryCreator func(string) (io.Writer, error)
	// PackOpts defines the options for communicating with the TTS engine
	PackOpts []communicate.Option
	// PackEntries defines the list of entries to be packed into a file
	PackEntries []*PackEntry
	// Output
	Output io.Writer
	// MetaData is the data which will be serialized into a json file,name use the key and value as the key-value pair.
	MetaData []map[string]any
}

func (*PackTask) Start

func (p *PackTask) Start(wg *sync.WaitGroup) error

type SingleTask

type SingleTask struct {
	C *communicate.Communicate
	// Text to be synthesized
	Text string
	// Output
	Output io.Writer
}

func (*SingleTask) Start

func (t *SingleTask) Start(wg *sync.WaitGroup) error

Start start a tts single task

Jump to

Keyboard shortcuts

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