Package com.openai.services.async.audio
Interface SpeechServiceAsync.WithRawResponse
-
- All Implemented Interfaces:
public interface SpeechServiceAsync.WithRawResponse
A view of SpeechServiceAsync that provides access to raw HTTP responses for each method.
-
-
Method Summary
Modifier and Type Method Description abstract SpeechServiceAsync.WithRawResponse
withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied. CompletableFuture<HttpResponse>
create(SpeechCreateParams params)
Returns a raw HTTP response for post /audio/speech
, but is otherwise the same as SpeechServiceAsync.create.abstract CompletableFuture<HttpResponse>
create(SpeechCreateParams params, RequestOptions requestOptions)
-
-
Method Detail
-
withOptions
abstract SpeechServiceAsync.WithRawResponse withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<HttpResponse> create(SpeechCreateParams params)
Returns a raw HTTP response for
post /audio/speech
, but is otherwise the same as SpeechServiceAsync.create.
-
create
abstract CompletableFuture<HttpResponse> create(SpeechCreateParams params, RequestOptions requestOptions)
-
-
-
-