Class AzureOpenAiAudioTranscriptionModel
java.lang.Object
org.springframework.ai.azure.openai.AzureOpenAiAudioTranscriptionModel
- All Implemented Interfaces:
Model<AudioTranscriptionPrompt,AudioTranscriptionResponse>
public class AzureOpenAiAudioTranscriptionModel
extends Object
implements Model<AudioTranscriptionPrompt,AudioTranscriptionResponse>
AzureOpenAI audio transcription client implementation for backed by
OpenAIClient. You provide as input the audio file you want to transcribe and
the desired output file format of the transcription of the audio.- Author:
- Piotr Olaszewski
-
Constructor Summary
ConstructorsConstructorDescriptionAzureOpenAiAudioTranscriptionModel(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiAudioTranscriptionOptions options) -
Method Summary
Modifier and TypeMethodDescriptioncall(AudioTranscriptionPrompt audioTranscriptionPrompt) Executes a method call to the AI model.call(org.springframework.core.io.Resource audioResource)
-
Constructor Details
-
AzureOpenAiAudioTranscriptionModel
public AzureOpenAiAudioTranscriptionModel(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiAudioTranscriptionOptions options)
-
-
Method Details
-
call
-
call
Description copied from interface:ModelExecutes a method call to the AI model.- Specified by:
callin interfaceModel<AudioTranscriptionPrompt,AudioTranscriptionResponse> - Parameters:
audioTranscriptionPrompt- the request object to be sent to the AI model- Returns:
- the response from the AI model
-