Class AudioTranscriptionResponse

java.lang.Object
dev.langchain4j.model.audio.AudioTranscriptionResponse

@Experimental public class AudioTranscriptionResponse extends Object
Response containing the transcription of an audio file.
  • Constructor Details

    • AudioTranscriptionResponse

      public AudioTranscriptionResponse(String text)
      Creates a new response with the given text.
      Parameters:
      text - The transcribed text
  • Method Details

    • text

      public String text()
      Returns:
      The transcribed text
    • from

      public static AudioTranscriptionResponse from(String text)
      Creates a new response with the given text.
      Parameters:
      text - The transcribed text
      Returns:
      A new response