chapter_paragraph

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChapterFilesList added in v0.1.2

func CreateChapterFilesList(directory string, chapter, paragraphsCount int, ext string) error

func CreateChapters added in v0.1.2

func CreateChapters(directory, ext string, chapterTitles []string) error

func RelBookFilesFilename

func RelBookFilesFilename() string

func RelChapterFfmpegOutputFilename

func RelChapterFfmpegOutputFilename(chapterFilename string) string

func RelChapterFilename

func RelChapterFilename(chapter int, ext string) string

func RelChapterFilesFilename

func RelChapterFilesFilename(chapterFilename string) string

func RelChapterParagraphFilename

func RelChapterParagraphFilename(chapter, paragraph int, ext string) string

func RelChapterTitleFilename

func RelChapterTitleFilename(chapter int, ext string) string

func RelChaptersFilename

func RelChaptersFilename() string

Types

type Synthesizer

type Synthesizer struct {
	// contains filtered or unexported fields
}

func NewACSSynthesizer

func NewACSSynthesizer(
	hc *http.Client,
	voiceParams []string,
	region string,
	key string,
	outputDirectory string,
	overwrite bool) (*Synthesizer, error)

func NewGCPSynthesizer

func NewGCPSynthesizer(
	hc *http.Client,
	voiceParams []string,
	key string,
	outputDirectory string,
	overwrite bool) (*Synthesizer, error)

func NewSaySynthesizer

func NewSaySynthesizer(
	voiceParams []string,
	outputDirectory string,
	overwrite bool) (*Synthesizer, error)

func (*Synthesizer) CreateChapterFilesList

func (s *Synthesizer) CreateChapterFilesList(chapter, paragraphsCount int) error

func (*Synthesizer) CreateChapterParagraph

func (s *Synthesizer) CreateChapterParagraph(chapter, paragraph int, content string) error

func (*Synthesizer) CreateChapterTitle

func (s *Synthesizer) CreateChapterTitle(chapter int, text string) error

func (*Synthesizer) CreateChapters

func (s *Synthesizer) CreateChapters(chapterTitles []string) error

func (*Synthesizer) CreatePause

func (s *Synthesizer) CreatePause(chapter, paragraph int) error

func (*Synthesizer) Voices

func (s *Synthesizer) Voices(locale string) ([]string, error)

Jump to

Keyboard shortcuts

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