Interface SpeechToTextService

All Known Implementing Classes:
SpeechToTextServiceImpl, SpeechToTextServiceRemoteImpl

public interface SpeechToTextService
Generates subtitles files from video or audio sources.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The namespace distinguishing speech-to-text jobs from other types.
  • Method Summary

    Modifier and Type
    Method
    Description
    transcribe(URI mediaFile, String language, Boolean translate)
    Generates a subtitles file for a media package with an audio track.
  • Field Details

    • JOB_TYPE

      static final String JOB_TYPE
      The namespace distinguishing speech-to-text jobs from other types.
      See Also:
  • Method Details

    • transcribe

      Job transcribe(URI mediaFile, String language, Boolean translate) throws SpeechToTextServiceException
      Generates a subtitles file for a media package with an audio track.
      Parameters:
      mediaFile - Location of the media file to generate subtitles for.
      language - The language of the audio.
      Returns:
      SpeechToText service job.
      Throws:
      SpeechToTextServiceException - If something went wrong during the subtitle's generation.