AzureOpenAIServiceCollectionExtensions.AddAzureOpenAITextToAudio 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.
Adds the AzureOpenAITextToAudioService to the IServiceCollection.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAzureOpenAITextToAudio (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, string deploymentName, string endpoint, string apiKey, string? serviceId = default, string? modelId = default, System.Net.Http.HttpClient? httpClient = default);
static member AddAzureOpenAITextToAudio : Microsoft.Extensions.DependencyInjection.IServiceCollection * string * string * string * string * string * System.Net.Http.HttpClient -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddAzureOpenAITextToAudio (services As IServiceCollection, 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 IServiceCollection
Parameters
- services
- IServiceCollection
The IServiceCollection instance to augment.
- 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
- serviceId
- String
A local identifier for the given AI service
- modelId
- String
Model identifier, see https://learn.microsoft.com/azure/cognitive-services/openai/quickstart
- httpClient
- HttpClient
The HttpClient to use with this service.
Returns
The same instance as services
.