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 interfaceSpeechServiceAsync.WithRawResponseA view of SpeechServiceAsync that provides access to raw HTTP responses for each method.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description abstract SpeechServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract SpeechServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. 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.
 
- 
                                        
withOptions
abstract SpeechServiceAsync 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)
Generates audio from the input text.
 
- 
                                        
create
abstract CompletableFuture<HttpResponse> create(SpeechCreateParams params, RequestOptions requestOptions)
 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -