Skip to content

Commit 6c2e316

Browse files
authored
Added support for CreateSpeech Azure models (#657)
1 parent 69e3fcb commit 6c2e316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

speech.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (c *Client) CreateSpeech(ctx context.Context, request CreateSpeechRequest)
7474
err = ErrInvalidVoice
7575
return
7676
}
77-
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/audio/speech", request.Model),
77+
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/audio/speech", string(request.Model)),
7878
withBody(request),
7979
withContentType("application/json; charset=utf-8"),
8080
)

0 commit comments

Comments
 (0)