Class OpenAiTextToAudioService
- java.lang.Object
-
- com.microsoft.semantickernel.aiservices.openai.OpenAiService<com.azure.ai.openai.OpenAIAsyncClient>
-
- com.microsoft.semantickernel.aiservices.openai.audio.OpenAiTextToAudioService
-
- All Implemented Interfaces:
AIService,TextToAudioService
public class OpenAiTextToAudioService extends OpenAiService<com.azure.ai.openai.OpenAIAsyncClient> implements TextToAudioService
Provides OpenAi implementation of text to audio service.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenAiTextToAudioService.BuilderRepresents a builder for OpenAi text to audio service.
-
Constructor Summary
Constructors Constructor Description OpenAiTextToAudioService(com.azure.ai.openai.OpenAIAsyncClient client, String modelId, String deploymentName)Creates an instance of OpenAi text to audio service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OpenAiTextToAudioService.Builderbuilder()Creates a new builder.reactor.core.publisher.Mono<AudioContent>getAudioContentAsync(String text, TextToAudioExecutionSettings executionSettings)-
Methods inherited from class com.microsoft.semantickernel.aiservices.openai.OpenAiService
getDeploymentName, getModelId, getServiceId
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.semantickernel.services.AIService
getModelId, getServiceId
-
-
-
-
Method Detail
-
getAudioContentAsync
public reactor.core.publisher.Mono<AudioContent> getAudioContentAsync(String text, TextToAudioExecutionSettings executionSettings)
- Specified by:
getAudioContentAsyncin interfaceTextToAudioService
-
builder
public static OpenAiTextToAudioService.Builder builder()
Creates a new builder.- Returns:
- The builder.
-
-