Package com.openai.services.async.audio
Interface TranslationServiceAsync
-
- All Implemented Interfaces:
public interface TranslationServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceTranslationServiceAsync.WithRawResponseA view of TranslationServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract TranslationServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract TranslationServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<TranslationCreateResponse>create(TranslationCreateParams params)Translates audio into English. abstract CompletableFuture<TranslationCreateResponse>create(TranslationCreateParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract TranslationServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract TranslationServiceAsync 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<TranslationCreateResponse> create(TranslationCreateParams params)
Translates audio into English.
-
create
abstract CompletableFuture<TranslationCreateResponse> create(TranslationCreateParams params, RequestOptions requestOptions)
-
-
-
-