Documentation
¶
Index ¶
- func CreateChapterFilesList(directory string, chapter, paragraphsCount int, ext string) error
- func CreateChapters(directory, ext string, chapterTitles []string) error
- func RelBookFilesFilename() string
- func RelChapterFfmpegOutputFilename(chapterFilename string) string
- func RelChapterFilename(chapter int, ext string) string
- func RelChapterFilesFilename(chapterFilename string) string
- func RelChapterParagraphFilename(chapter, paragraph int, ext string) string
- func RelChapterTitleFilename(chapter int, ext string) string
- func RelChaptersFilename() string
- type Synthesizer
- func NewACSSynthesizer(hc *http.Client, voiceParams []string, region string, key string, ...) (*Synthesizer, error)
- func NewGCPSynthesizer(hc *http.Client, voiceParams []string, key string, outputDirectory string, ...) (*Synthesizer, error)
- func NewSaySynthesizer(voiceParams []string, outputDirectory string, overwrite bool) (*Synthesizer, error)
- func (s *Synthesizer) CreateChapterFilesList(chapter, paragraphsCount int) error
- func (s *Synthesizer) CreateChapterParagraph(chapter, paragraph int, content string) error
- func (s *Synthesizer) CreateChapterTitle(chapter int, text string) error
- func (s *Synthesizer) CreateChapters(chapterTitles []string) error
- func (s *Synthesizer) CreatePause(chapter, paragraph int) error
- func (s *Synthesizer) Voices(locale string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChapterFilesList ¶ added in v0.1.2
func CreateChapters ¶ added in v0.1.2
func RelBookFilesFilename ¶
func RelBookFilesFilename() string
func RelChapterFilename ¶
func RelChapterFilesFilename ¶
func RelChapterTitleFilename ¶
func RelChaptersFilename ¶
func RelChaptersFilename() string
Types ¶
type Synthesizer ¶
type Synthesizer struct {
// contains filtered or unexported fields
}
func NewACSSynthesizer ¶
func NewGCPSynthesizer ¶
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
Click to show internal directories.
Click to hide internal directories.