AzureOpenAITextToAudioService Constructors
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
AzureOpenAITextToAudioService(String, String, TokenCredential, String, HttpClient, ILoggerFactory) |
Initializes a new instance of the AzureOpenAITextToAudioService class. |
AzureOpenAITextToAudioService(String, String, String, String, HttpClient, ILoggerFactory) |
Initializes a new instance of the AzureOpenAITextToAudioService class. |
AzureOpenAITextToAudioService(String, String, TokenCredential, String, HttpClient, ILoggerFactory)
Initializes a new instance of the AzureOpenAITextToAudioService class.
public AzureOpenAITextToAudioService (string deploymentName, string endpoint, Azure.Core.TokenCredential credential, string? modelId = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextToAudioService : string * string * Azure.Core.TokenCredential * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextToAudioService
Public Sub New (deploymentName As String, endpoint As String, credential As TokenCredential, Optional modelId As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- deploymentName
- String
Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource
- endpoint
- String
Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart
- credential
- TokenCredential
Token credentials, e.g. DefaultAzureCredential, ManagedIdentityCredential, EnvironmentCredential, etc.
- modelId
- String
Azure OpenAI model id, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource
- httpClient
- HttpClient
Custom HttpClient for HTTP requests.
- loggerFactory
- ILoggerFactory
The ILoggerFactory to use for logging. If null, no logging will be performed.
Applies to
AzureOpenAITextToAudioService(String, String, String, String, HttpClient, ILoggerFactory)
Initializes a new instance of the AzureOpenAITextToAudioService class.
public AzureOpenAITextToAudioService (string deploymentName, string endpoint, string apiKey, string? modelId = default, System.Net.Http.HttpClient? httpClient = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextToAudioService : string * string * string * string * System.Net.Http.HttpClient * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.AzureOpenAI.AzureOpenAITextToAudioService
Public Sub New (deploymentName As String, endpoint As String, apiKey As String, Optional modelId As String = Nothing, Optional httpClient As HttpClient = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- deploymentName
- String
Azure OpenAI deployment name, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource
- endpoint
- String
Azure OpenAI deployment URL, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart
- apiKey
- String
Azure OpenAI API key, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart
- modelId
- String
Azure OpenAI model id, see https://learn.microsoft.com/azure/cognitive-services/openai/how-to/create-resource
- httpClient
- HttpClient
Custom HttpClient for HTTP requests.
- loggerFactory
- ILoggerFactory
The ILoggerFactory to use for logging. If null, no logging will be performed.