Class WhisperCppEngine
- java.lang.Object
-
- org.opencastproject.speechtotext.impl.engine.WhisperCppEngine
-
- All Implemented Interfaces:
org.opencastproject.speechtotext.api.SpeechToTextEngine
public class WhisperCppEngine extends Object implements org.opencastproject.speechtotext.api.SpeechToTextEngine
WhisperC++ implementation of the Speech-to-text engine interface.
-
-
Field Summary
Fields Modifier and Type Field Description static StringWHISPERCPP_EXECUTABLE_DEFAULT_PATHDefault path to WhisperC++.static StringWHISPERCPP_MODEL_DEFAULTDefault whispercpp model
-
Constructor Summary
Constructors Constructor Description WhisperCppEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate(org.osgi.service.component.ComponentContext cc)org.opencastproject.speechtotext.api.SpeechToTextEngine.ResultgenerateSubtitlesFile(File mediaFile, File workingDirectory, String language, Boolean translate)StringgetEngineName()
-
-
-
Field Detail
-
WHISPERCPP_EXECUTABLE_DEFAULT_PATH
public static final String WHISPERCPP_EXECUTABLE_DEFAULT_PATH
Default path to WhisperC++.- See Also:
- Constant Field Values
-
WHISPERCPP_MODEL_DEFAULT
public static final String WHISPERCPP_MODEL_DEFAULT
Default whispercpp model- See Also:
- Constant Field Values
-
-
Method Detail
-
getEngineName
public String 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:
SpeechToTextEngine.generateSubtitlesFile(File, File, String, Boolean)
-
-