Class SpeechToTextServiceRemoteImpl

java.lang.Object
org.opencastproject.serviceregistry.api.RemoteBase
org.opencastproject.speechtotext.remote.SpeechToTextServiceRemoteImpl
All Implemented Interfaces:
org.opencastproject.speechtotext.api.SpeechToTextService

public class SpeechToTextServiceRemoteImpl extends org.opencastproject.serviceregistry.api.RemoteBase implements org.opencastproject.speechtotext.api.SpeechToTextService
Generates subtitles files from video or audio sources.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.opencastproject.serviceregistry.api.RemoteBase

    org.opencastproject.serviceregistry.api.RemoteBase.HttpClientClosingInputStream
  • Field Summary

    Fields inherited from class org.opencastproject.serviceregistry.api.RemoteBase

    client, remoteServiceManager, serviceType

    Fields inherited from interface org.opencastproject.speechtotext.api.SpeechToTextService

    JOB_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new speech-to-text service instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager)
     
    void
    setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client)
     
    org.opencastproject.job.api.Job
    transcribe(URI mediaFile, String language, Boolean translate)

    Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase

    closeConnection, elementsFromHttpResponse, getResponse, getResponse, runRequest

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpeechToTextServiceRemoteImpl

      public SpeechToTextServiceRemoteImpl()
      Creates a new speech-to-text service instance.
  • Method Details

    • transcribe

      public org.opencastproject.job.api.Job transcribe(URI mediaFile, String language, Boolean translate) throws org.opencastproject.speechtotext.api.SpeechToTextServiceException
      Specified by:
      transcribe in interface org.opencastproject.speechtotext.api.SpeechToTextService
      Throws:
      org.opencastproject.speechtotext.api.SpeechToTextServiceException
      See Also:
      • SpeechToTextService.transcribe(URI, String, Boolean)
    • setTrustedHttpClient

      public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client)
      Overrides:
      setTrustedHttpClient in class org.opencastproject.serviceregistry.api.RemoteBase
    • setRemoteServiceManager

      public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager)
      Overrides:
      setRemoteServiceManager in class org.opencastproject.serviceregistry.api.RemoteBase