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