Created
March 26, 2019 05:38
-
-
Save abhirockzz/c9280f70ca65f5ad541a89d8f28170b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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