Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created March 26, 2019 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/c9280f70ca65f5ad541a89d8f28170b8 to your computer and use it in GitHub Desktop.
Save abhirockzz/c9280f70ca65f5ad541a89d8f28170b8 to your computer and use it in GitHub Desktop.
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