Fix compile error from variable typo (#2)

* Fix compile error from variable typo

* bytes.Buffer pointer
This commit is contained in:
Marcel Molina
2023-07-09 09:00:45 -07:00
committed by GitHub
parent e095a7ec13
commit b925ef1471

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