AzureOpenAIKernelBuilderExtensions.AddAzureOpenAIAudioToText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAzureOpenAIAudioToText(IKernelBuilder, String, AzureOpenAIClient, String, String)
Adds the AzureOpenAIAudioToTextService to the Services.
public static Microsoft.SemanticKernel.IKernelBuilder AddAzureOpenAIAudioToText (this Microsoft.SemanticKernel.IKernelBuilder builder, string deploymentName, Azure.AI.OpenAI.AzureOpenAIClient? openAIClient = default, string? serviceId = default, string? modelId = default);
static member AddAzureOpenAIAudioToText : Microsoft.SemanticKernel.IKernelBuilder * string * Azure.AI.OpenAI.AzureOpenAIClient * string * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureOpenAIAudioToText (builder As IKernelBuilder, deploymentName As String, Optional openAIClient As AzureOpenAIClient = Nothing, Optional serviceId As String = Nothing, Optional modelId As String = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The IKernelBuilder instance to augment.
- deploymentName
- String
Azure OpenAI deployment name, see https://zcusa.951200.xyz/azure/cognitive-services/openai/how-to/create-resource
- openAIClient
- AzureOpenAIClient
AzureOpenAIClient to use for the service. If null, one must be available in the service provider when this service is resolved.
- serviceId
- String
A local identifier for the given AI service
- modelId
- String
Model identifier, see https://zcusa.951200.xyz/azure/cognitive-services/openai/quickstart
Returns
The same instance as builder
.
Applies to
AddAzureOpenAIAudioToText(IKernelBuilder, String, String, TokenCredential, String, String, HttpClient)
Adds the AzureOpenAIAudioToTextService to the Services.
public static Microsoft.SemanticKernel.IKernelBuilder AddAzureOpenAIAudioToText (this Microsoft.SemanticKernel.IKernelBuilder builder, string deploymentName, string endpoint, Azure.Core.TokenCredential credentials, string? serviceId = default, string? modelId = default, System.Net.Http.HttpClient? httpClient = default);
static member AddAzureOpenAIAudioToText : Microsoft.SemanticKernel.IKernelBuilder * string * string * Azure.Core.TokenCredential * string * string * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureOpenAIAudioToText (builder As IKernelBuilder, deploymentName As String, endpoint As String, credentials As TokenCredential, Optional serviceId As String = Nothing, Optional modelId As String = Nothing, Optional httpClient As HttpClient = Nothing) As IKernelBuilder
Parameters
- builder
- IKernelBuilder
The IServiceCollection instance to augment.
- deploymentName
- String
Azure OpenAI deployment name, see https://zcusa.951200.xyz/azure/cognitive-services/openai/how-to/create-resource
- endpoint
- String
Azure OpenAI deployment URL, see https://zcusa.951200.xyz/azure/cognitive-services/openai/quickstart
- credentials
- TokenCredential
Token credentials, e.g. DefaultAzureCredential, ManagedIdentityCredential, EnvironmentCredential, etc.
- serviceId
- String
A local identifier for the given AI service
- modelId
- String
Model identifier, see https://zcusa.951200.xyz/azure/cognitive-services/openai/quickstart
- httpClient
- HttpClient
The HttpClient to use with this service.
Returns
The same instance as builder
.
Applies to
AddAzureOpenAIAudioToText(IKernelBuilder, String, String, String, String, String, HttpClient)
Adds the AzureOpenAIAudioToTextService to the Services.
public static Microsoft.SemanticKernel.IKernelBuilder AddAzureOpenAIAudioToText (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 AddAzureOpenAIAudioToText : Microsoft.SemanticKernel.IKernelBuilder * string * string * string * string * string * System.Net.Http.HttpClient -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddAzureOpenAIAudioToText (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.
- deploymentName
- String
Azure OpenAI deployment name, see https://zcusa.951200.xyz/azure/cognitive-services/openai/how-to/create-resource
- endpoint
- String
Azure OpenAI deployment URL, see https://zcusa.951200.xyz/azure/cognitive-services/openai/quickstart
- apiKey
- String
Azure OpenAI API key, see https://zcusa.951200.xyz/azure/cognitive-services/openai/quickstart
- serviceId
- String
A local identifier for the given AI service
- modelId
- String
Model identifier, see https://zcusa.951200.xyz/azure/cognitive-services/openai/quickstart
- httpClient
- HttpClient
The HttpClient to use with this service.
Returns
The same instance as builder
.