Package com.openai.services.async.audio
Interface SpeechServiceAsync
-
- All Implemented Interfaces:
public interface SpeechServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description 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
withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method. CompletableFuture<HttpResponse>
create(SpeechCreateParams params)
Generates audio from the input text. abstract CompletableFuture<HttpResponse>
create(SpeechCreateParams params, RequestOptions requestOptions)
-
-
Method Detail
-
withRawResponse
abstract SpeechServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
create
@MustBeClosed() CompletableFuture<HttpResponse> create(SpeechCreateParams params)
Generates audio from the input text.
-
create
@MustBeClosed() abstract CompletableFuture<HttpResponse> create(SpeechCreateParams params, RequestOptions requestOptions)
-
-
-
-