Class 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.
    • Constructor Detail

      • VoskEngine

        public VoskEngine()
    • Method Detail

      • getEngineName

        public String getEngineName()
        Specified by:
        getEngineName in interface org.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:
        generateSubtitlesFile in interface org.opencastproject.speechtotext.api.SpeechToTextEngine
        Throws:
        org.opencastproject.speechtotext.api.SpeechToTextEngineException
        See Also:
        SpeechToTextEngine.generateSubtitlesFile(File, File, String, Boolean)