Partager via


OpenAITextToAudioService Constructor

Definition

Initializes a new instance of the OpenAITextToAudioService class.

public OpenAITextToAudioService (string modelId, string apiKey, string? organization = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.OpenAI.OpenAITextToAudioService : string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.OpenAI.OpenAITextToAudioService
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