Class OpenAiAudioTranscriptionClient

java.lang.Object
org.springframework.ai.openai.OpenAiAudioTranscriptionClient
All Implemented Interfaces:
ModelClient<AudioTranscriptionPrompt,AudioTranscriptionResponse>

public class OpenAiAudioTranscriptionClient extends Object implements ModelClient<AudioTranscriptionPrompt,AudioTranscriptionResponse>
OpenAI audio transcription client implementation for backed by OpenAiAudioApi.
Since:
0.8.1
Author:
Michael Lavelle, Christian Tzolov
See Also:
  • Field Details

    • retryTemplate

      public final org.springframework.retry.support.RetryTemplate retryTemplate
  • Constructor Details

    • OpenAiAudioTranscriptionClient

      public OpenAiAudioTranscriptionClient(OpenAiAudioApi audioApi)
      OpenAiAudioTranscriptionClient is a client class used to interact with the OpenAI Audio Transcription API.
      Parameters:
      audioApi - The OpenAiAudioApi instance to be used for making API calls.
    • OpenAiAudioTranscriptionClient

      public OpenAiAudioTranscriptionClient(OpenAiAudioApi audioApi, OpenAiAudioTranscriptionOptions options)
      OpenAiAudioTranscriptionClient is a client class used to interact with the OpenAI Audio Transcription API.
      Parameters:
      audioApi - The OpenAiAudioApi instance to be used for making API calls.
      options - The OpenAiAudioTranscriptionOptions instance for configuring the audio transcription.
    • OpenAiAudioTranscriptionClient

      public OpenAiAudioTranscriptionClient(OpenAiAudioApi audioApi, OpenAiAudioTranscriptionOptions options, org.springframework.retry.support.RetryTemplate retryTemplate)
      OpenAiAudioTranscriptionClient is a client class used to interact with the OpenAI Audio Transcription API.
      Parameters:
      audioApi - The OpenAiAudioApi instance to be used for making API calls.
      options - The OpenAiAudioTranscriptionOptions instance for configuring the audio transcription.
      retryTemplate - The RetryTemplate instance for retrying failed API calls.
  • Method Details