Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreatePlaylistFunc ¶ added in v0.4.0
type CreatePlaylistFunc = func(string) (io.WriteCloser, error)
func ToCreatePlaylistFunc ¶ added in v0.4.0
func ToCreatePlaylistFunc[wc io.WriteCloser](fn func(string) (wc, error)) CreatePlaylistFunc
type ExecCmdCtx ¶
func ToExecCmdCtx ¶
ToExecCmdCtx is needed because Go does not automatically convert return types to interfaces in function assignments, even if the return type does implement the interface. See https://stackoverflow.com/questions/57735694/duck-typing-go-functions
type FileCreator ¶
type FileCreator struct {
// contains filtered or unexported fields
}
func NewFileCreator ¶
func NewFileCreator( execCmdCtx ExecCmdCtx, tts *TTS, audioFormat Format, tempDir string, outputDir string, createPaylistFunc CreatePlaylistFunc, ) (*FileCreator, error)
func (*FileCreator) BatchCreate ¶ added in v0.4.0
func (f *FileCreator) BatchCreate(ctx context.Context, files []File) error
func (*FileCreator) RemoveOtherFiles ¶
func (f *FileCreator) RemoveOtherFiles() error
type TextTmpl ¶
type TextTmpl struct {
// contains filtered or unexported fields
}
func NewTextTmpl ¶
NewTextTmpl returns a new template. Pass a Go template string.
func (*TextTmpl) Replace ¶
func (t *TextTmpl) Replace(values TextTmplValues) string
Click to show internal directories.
Click to hide internal directories.