From b925ef147126c8064070abab156003d1c1664565 Mon Sep 17 00:00:00 2001 From: Marcel Molina <245+marcel@users.noreply.github.com> Date: Sun, 9 Jul 2023 09:00:45 -0700 Subject: [PATCH] Fix compile error from variable typo (#2) * Fix compile error from variable typo * bytes.Buffer pointer --- client/tts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/tts.go b/client/tts.go index 0dbebb1..a448bbf 100644 --- a/client/tts.go +++ b/client/tts.go @@ -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