1 Commits

Author SHA1 Message Date
Marcel Molina
b925ef1471 Fix compile error from variable typo (#2)
* Fix compile error from variable typo

* bytes.Buffer pointer
2023-07-09 16:00:45 +00:00

View File

@@ -83,7 +83,7 @@ func (c Client) TTS(ctx context.Context, text, voiceID, modelID string, options
b := bytes.Buffer{}
defer res.Body.Close()
io.Copy(w, res.Body)
io.Copy(&b, res.Body)
return b.Bytes(), nil
case 422:
fallthrough