Skip to content

Commit

Permalink
Added support for CreateSpeech Azure models (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy282 authored Feb 8, 2024
1 parent 69e3fcb commit 6c2e316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c *Client) CreateSpeech(ctx context.Context, request CreateSpeechRequest)
err = ErrInvalidVoice
return
}
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/audio/speech", request.Model),
req, err := c.newRequest(ctx, http.MethodPost, c.fullURL("/audio/speech", string(request.Model)),
withBody(request),
withContentType("application/json; charset=utf-8"),
)
Expand Down

0 comments on commit 6c2e316

Please sign in to comment.