Class VoskEngine
java.lang.Object
org.opencastproject.speechtotext.impl.engine.VoskEngine
- All Implemented Interfaces:
org.opencastproject.speechtotext.api.SpeechToTextEngine
public class VoskEngine
extends Object
implements org.opencastproject.speechtotext.api.SpeechToTextEngine
Vosk implementation of the Speech-to-text engine interface.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opencastproject.speechtotext.api.SpeechToTextEngine
org.opencastproject.speechtotext.api.SpeechToTextEngine.Result -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VOSK_EXECUTABLE_DEFAULT_PATH
Default path to vosk.- See Also:
-
VOSK_DEFAULT_LANGUAGE
Default Language- See Also:
-
-
Constructor Details
-
VoskEngine
public VoskEngine()
-
-
Method Details
-
getEngineName
- Specified by:
getEngineNamein interfaceorg.opencastproject.speechtotext.api.SpeechToTextEngine
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) -
generateSubtitlesFile
public org.opencastproject.speechtotext.api.SpeechToTextEngine.Result generateSubtitlesFile(File mediaFile, File workingDirectory, String language, Boolean translate) throws org.opencastproject.speechtotext.api.SpeechToTextEngineException - Specified by:
generateSubtitlesFilein interfaceorg.opencastproject.speechtotext.api.SpeechToTextEngine- Throws:
org.opencastproject.speechtotext.api.SpeechToTextEngineException- See Also:
-