ttsTask

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackEntry added in v0.1.3

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

type PackTask added in v0.1.3

type PackTask struct {
	// PackEntryCreator defines the function to create a writer for each entry
	PackEntryCreator func(string) (io.Writer, error)
	// CommunicateOpt defines the options for communicating with the TTS engine
	CommunicateOpt *communicateOption.CommunicateOption
	// 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 added in v0.1.3

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

type SingleTask added in v0.1.3

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

func (*SingleTask) Start added in v0.1.3

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

Start start a tts single task

type Tasker added in v0.2.4

type Tasker interface {
	Start(wg *sync.WaitGroup) error
}

Jump to

Keyboard shortcuts

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