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) call(org.springframework.core.io.Resource audioResource)
-
Constructor Details
-
AzureOpenAiAudioTranscriptionModel
public AzureOpenAiAudioTranscriptionModel(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiAudioTranscriptionOptions options)
-
-
Method Details
-
call
-
call
- Specified by:
callin interfaceModel<AudioTranscriptionPrompt,AudioTranscriptionResponse>
-