OpenAITextToAudioService Class

Definition

OpenAI text-to-audio service.

public sealed class OpenAITextToAudioService : Microsoft.SemanticKernel.TextToAudio.ITextToAudioService
type OpenAITextToAudioService = class
    interface ITextToAudioService
    interface IAIService
Public NotInheritable Class OpenAITextToAudioService
Implements ITextToAudioService
Inheritance
OpenAITextToAudioService
Implements

Constructors

Name Description
OpenAITextToAudioService(String, String, String, HttpClient, ILoggerFactory)

Initializes a new instance of the OpenAITextToAudioService class.

Properties

Name Description
Attributes

Gets the AI service attributes.

OrganizationKey

Gets the attribute name used to store the organization in the Attributes dictionary.

Methods

Name Description
GetAudioContentsAsync(String, PromptExecutionSettings, Kernel, CancellationToken)

Get audio contents from text.

Extension Methods

Name Description
GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetAudioContentAsync(ITextToAudioService, String, PromptExecutionSettings, Kernel, CancellationToken)

Get audio content from text.

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

Applies to