Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioChunk ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func New ¶
func New(params EngineParams) (*Engine, error)
func (*Engine) Generate ¶
Generate will chunk the text into sections and call the synthesize function on the Synthesizer for each segment. It will call onAudioChunk for each returned chunk from the synthesizer
func (*Engine) OnAudioChunk ¶
func (e *Engine) OnAudioChunk(fn func(AudioChunk))
type EngineParams ¶
type EngineParams struct { OnAudioChunk func(AudioChunk) Synthesizer Synthesizer }
type Synthesizer ¶
type Synthesizer interface {
Synthesize(text string) (AudioChunk, error)
}
Click to show internal directories.
Click to hide internal directories.