Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
speech, err := ioutil.ReadFile(outputLocation)
if err != nil {
errMsg := "could not read from .wav file " + err.Error()
log.Println(errMsg)
out.Write([]byte(errMsg))
return
}
log.Println("Returning .wav bytes")
out.Write(speech)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment