Class AzureOpenAiAudioTranscriptionModel
java.lang.Object
org.springframework.ai.azure.openai.AzureOpenAiAudioTranscriptionModel
- All Implemented Interfaces:
TranscriptionModel
,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) Transcribes the audio from the given prompt.call
(org.springframework.core.io.Resource audioResource) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.ai.audio.transcription.TranscriptionModel
transcribe, transcribe
-
Constructor Details
-
AzureOpenAiAudioTranscriptionModel
public AzureOpenAiAudioTranscriptionModel(com.azure.ai.openai.OpenAIClient openAIClient, AzureOpenAiAudioTranscriptionOptions options)
-
-
Method Details
-
call
-
call
Description copied from interface:TranscriptionModel
Transcribes the audio from the given prompt.- Specified by:
call
in interfaceModel<AudioTranscriptionPrompt,
AudioTranscriptionResponse> - Specified by:
call
in interfaceTranscriptionModel
- Parameters:
audioTranscriptionPrompt
- The prompt containing the audio resource and options.- Returns:
- The transcription response.
-