mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-01 18:58:52 -07:00
Fix compile error from variable typo (#2)
* Fix compile error from variable typo * bytes.Buffer pointer
This commit is contained in:
@@ -83,7 +83,7 @@ func (c Client) TTS(ctx context.Context, text, voiceID, modelID string, options
|
|||||||
b := bytes.Buffer{}
|
b := bytes.Buffer{}
|
||||||
|
|
||||||
defer res.Body.Close()
|
defer res.Body.Close()
|
||||||
io.Copy(w, res.Body)
|
io.Copy(&b, res.Body)
|
||||||
return b.Bytes(), nil
|
return b.Bytes(), nil
|
||||||
case 422:
|
case 422:
|
||||||
fallthrough
|
fallthrough
|
||||||
|
|||||||
Reference in New Issue
Block a user