Partager via


AzureOpenAITextToAudioService Class

Definition

Azure OpenAI text-to-audio service.

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

Constructors

AzureOpenAITextToAudioService(String, String, String, String, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureOpenAITextToAudioService class.

AzureOpenAITextToAudioService(String, String, TokenCredential, String, HttpClient, ILoggerFactory)

Initializes a new instance of the AzureOpenAITextToAudioService class.

Properties

Attributes

Gets the AI service attributes.

DeploymentNameKey

Gets the key used to store the deployment name in the Attributes dictionary.

Methods

GetAudioContentsAsync(String, PromptExecutionSettings, Kernel, CancellationToken)

Get audio contents from text.

Extension Methods

GetApiVersion(IAIService)

Gets the API version from service's Attributes

GetEndpoint(IAIService)

Gets the endpoint from service's Attributes.

GetModelId(IAIService)

Gets the model identifier from service's Attributes.

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

Get audio content from text.

Applies to