Freigeben über


AzureOpenAIKernelBuilderExtensions.AddAzureOpenAITextToAudio Method

Definition

Overloads

AddAzureOpenAITextToAudio(IKernelBuilder, String, String, TokenCredential, String, String, HttpClient)

Adds the AzureOpenAITextToAudioService to the Services.

AddAzureOpenAITextToAudio(IKernelBuilder, String, String, String, String, String, HttpClient)

Adds the AzureOpenAITextToAudioService to the Services.

AddAzureOpenAITextToAudio(IKernelBuilder, String, String, TokenCredential, String, String, HttpClient)

public static Microsoft.SemanticKernel.IKernelBuilder AddAzureOpenAITextToAudio (this Microsoft.SemanticKernel.IKernelBuilder builder, string deploymentName, string endpoint, Azure.Core.TokenCredential credential, string? serviceId = default, string? modelId = default, System.Net.Http.HttpClient? httpClient = default);
static member AddAzureOpenAITextToAudio : Microsoft.SemanticKernel.IKernelBuilder * string * string * Azure.Core.TokenCredential * string * string * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureOpenAITextToAudio (builder As IKernelBuilder, deploymentName As String, endpoint As String, credential As TokenCredential, Optional serviceId As String = Nothing, Optional modelId As String = Nothing, Optional httpClient As HttpClient = Nothing) As IKernelBuilder

Parameters

builder
IKernelBuilder

The IKernelBuilder instance to augment.

credential
TokenCredential

Token credentials, e.g. DefaultAzureCredential, ManagedIdentityCredential, EnvironmentCredential, etc.

serviceId
String

A local identifier for the given AI service

httpClient
HttpClient

The HttpClient to use with this service.

Returns

The same instance as builder.

Applies to

AddAzureOpenAITextToAudio(IKernelBuilder, String, String, String, String, String, HttpClient)

public static Microsoft.SemanticKernel.IKernelBuilder AddAzureOpenAITextToAudio (this Microsoft.SemanticKernel.IKernelBuilder builder, string deploymentName, string endpoint, string apiKey, string? serviceId = default, string? modelId = default, System.Net.Http.HttpClient? httpClient = default);
static member AddAzureOpenAITextToAudio : Microsoft.SemanticKernel.IKernelBuilder * string * string * string * string * string * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureOpenAITextToAudio (builder As IKernelBuilder, deploymentName As String, endpoint As String, apiKey As String, Optional serviceId As String = Nothing, Optional modelId As String = Nothing, Optional httpClient As HttpClient = Nothing) As IKernelBuilder

Parameters

builder
IKernelBuilder

The IKernelBuilder instance to augment.

serviceId
String

A local identifier for the given AI service

httpClient
HttpClient

The HttpClient to use with this service.

Returns

The same instance as builder.

Applies to