OpenAIKernelBuilderExtensions.AddOpenAIAudioToText Method

Definition

Overloads

AddOpenAIAudioToText(IKernelBuilder, String, OpenAIClient, String)

Adds the OpenAI audio-to-text service to the list.

AddOpenAIAudioToText(IKernelBuilder, String, String, String, String, HttpClient)

Adds the OpenAI audio-to-text service to the list.

AddOpenAIAudioToText(IKernelBuilder, String, OpenAIClient, String)

Adds the OpenAI audio-to-text service to the list.

public static Microsoft.SemanticKernel.IKernelBuilder AddOpenAIAudioToText (this Microsoft.SemanticKernel.IKernelBuilder builder, string modelId, OpenAI.OpenAIClient? openAIClient = default, string? serviceId = default);
static member AddOpenAIAudioToText : Microsoft.SemanticKernel.IKernelBuilder * string * OpenAI.OpenAIClient * string -> Microsoft.SemanticKernel.IKernelBuilder
<Extension()>
Public Function AddOpenAIAudioToText (builder As IKernelBuilder, modelId As String, Optional openAIClient As OpenAIClient = Nothing, Optional serviceId As String = Nothing) As IKernelBuilder

Parameters

builder
IKernelBuilder

The IKernelBuilder instance to augment.

modelId
String

OpenAI model id

openAIClient
OpenAI.OpenAIClient

OpenAI.OpenAIClient 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

Returns

The same instance as builder.

Applies to

AddOpenAIAudioToText(IKernelBuilder, String, String, String, String, HttpClient)

Adds the OpenAI audio-to-text service to the list.

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

Parameters

builder
IKernelBuilder

The IKernelBuilder instance to augment.

modelId
String

OpenAI model name, see https://platform.openai.com/docs/models

orgId
String

OpenAI organization id. This is usually optional unless your account belongs to multiple organizations.

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