Partager via


OpenAIAudioToTextService Constructors

Definition

Overloads

OpenAIAudioToTextService(String, OpenAIClient, ILoggerFactory)

Initializes a new instance of the OpenAIAudioToTextService class.

OpenAIAudioToTextService(String, String, String, HttpClient, ILoggerFactory)

Initializes a new instance of the OpenAIAudioToTextService class.

OpenAIAudioToTextService(String, OpenAIClient, ILoggerFactory)

Initializes a new instance of the OpenAIAudioToTextService class.

public OpenAIAudioToTextService (string modelId, OpenAI.OpenAIClient openAIClient, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIAudioToTextService : string * OpenAI.OpenAIClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIAudioToTextService
Public Sub New (modelId As String, openAIClient As OpenAIClient, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

modelId
String

Model name

openAIClient
OpenAI.OpenAIClient

Custom OpenAI.OpenAIClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Applies to

OpenAIAudioToTextService(String, String, String, HttpClient, ILoggerFactory)

Initializes a new instance of the OpenAIAudioToTextService class.

public OpenAIAudioToTextService (string modelId, string apiKey, string? organization = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIAudioToTextService : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.OpenAI.OpenAIAudioToTextService
Public Sub New (modelId As String, apiKey As String, Optional organization As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

modelId
String

Model name

apiKey
String

OpenAI API Key

organization
String

OpenAI Organization Id (usually optional)

httpClient
HttpClient

Custom HttpClient for HTTP requests.

loggerFactory
ILoggerFactory

The ILoggerFactory to use for logging. If null, no logging will be performed.

Applies to