Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
flite := exec.Command("flite", "-t", text, "-o", outputLocation)
err := flite.Run()
if err != nil {
errMsg := "failed due to " + err.Error()
log.Println(errMsg)
out.Write([]byte(errMsg))
return
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment