utils

package
v0.0.0-...-f892d82 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FLAG_INPUT          = "input"
	FLAG_INPUT_DESC     = "Provide path to pdf file"
	FLAG_OUTPUT         = "output"
	FLAG_OUTPUT_DESC    = "Provide path to output directory"
	DEFAULT_PDF_PATH    = "./sample_pdf/test.pdf"
	DEFAULT_OUTPUT_PATH = "audio-go/output"
	OUTPUT_FILE1        = "outputAudio.wav"
	OUTPUT_FILE2        = "lol.wav"
	VOICE_KEY           = "voice"
	TEXT_KEY            = "text"
	DEFAULT_VOICE       = "nanotts:en-GB"
	MALE_SET_VOICE      = "espeak:en"
	DEFAULT_SERVER_URL  = "http://localhost:5500/api/tts?"
	FLAG_VOICE          = "voice"
	FLAG_VOICE_DESC     = "The voice type - male or female ? (for converted audio file)"
	MALE_VOICE          = "male"
	FEMALE_VOICE        = "female"
)

App constants ...

Variables

This section is empty.

Functions

func FatalErr

func FatalErr(err error)

func GenAudio

func GenAudio(content, voiceType, outPath string, i int, wg *sync.WaitGroup)

Generate the audio for given content ...

func LogErr

func LogErr(err error)

func PanicErr

func PanicErr(err error)

func ReadPdf

func ReadPdf(filePath string) (string, error)

Read the given pdf file ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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