言語

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

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

Initializes a new instance of the AzureOpenAITextToAudioService class.

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

Initializes a new instance of the AzureOpenAITextToAudioService class.

Properties

Name Description
Attributes

Gets the AI service attributes.

DeploymentNameKey

Gets the key used to store the deployment name 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