Interface SpeechToTextService
public interface SpeechToTextService
Generates subtitles files from video or audio sources.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.opencastproject.job.api.Jobtranscribe(URI mediaFile, String language, Boolean translate) Generates a subtitles file for a media package with an audio track.
-
Field Details
-
JOB_TYPE
The namespace distinguishing speech-to-text jobs from other types.- See Also:
-
-
Method Details
-
transcribe
org.opencastproject.job.api.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.
-