Class SpeechToTextAsyncTrackerImpl
java.lang.Object
org.opencastproject.speechtotext.async.impl.SpeechToTextAsyncTrackerImpl
- All Implemented Interfaces:
SpeechToTextAsyncTracker
-
Field Summary
Fields inherited from interface org.opencastproject.speechtotext.async.api.SpeechToTextAsyncTracker
JOBS_WORKFLOW_CONFIGURATION, STT_ASYNC_COLLECTION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetSpeechToTextDatabase(SpeechToTextDatabase database) voidStart tracking all jobs created by a speech-to-text woh.voidStop tracking this STT job (subtitles have already been attached or tracking was abandoned.voiduntrackAll(long workflowId) Stop tracking all STT jobs created by a workflow.
-
Constructor Details
-
SpeechToTextAsyncTrackerImpl
public SpeechToTextAsyncTrackerImpl()
-
-
Method Details
-
track
public void track(Job job, String mediaPackageId, long workflowId) throws SpeechToTextAsyncException Start tracking all jobs created by a speech-to-text woh.- Specified by:
trackin interfaceSpeechToTextAsyncTracker- Parameters:
job- the STT jobmediaPackageId- the media package idworkflowId- the workflow that started the jobs- Throws:
SpeechToTextAsyncException- if an exception occurs
-
untrack
Stop tracking this STT job (subtitles have already been attached or tracking was abandoned.- Specified by:
untrackin interfaceSpeechToTextAsyncTracker- Parameters:
job- the STT job- Throws:
SpeechToTextAsyncException- if an exception occurs
-
untrackAll
Stop tracking all STT jobs created by a workflow.- Specified by:
untrackAllin interfaceSpeechToTextAsyncTracker- Parameters:
workflowId- the workflow id- Throws:
SpeechToTextAsyncException- if an exception occurs
-
setSpeechToTextDatabase
-