mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-17 10:45:09 -07:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b925ef1471 |
@@ -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