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, elementsFromHttpResponse, remoteServiceManager, serviceTypeFields inherited from interface org.opencastproject.speechtotext.api.SpeechToTextService
JOB_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new speech-to-text service instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager) voidsetTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client) org.opencastproject.job.api.Jobtranscribe(URI mediaFile, String language, Boolean translate) Methods inherited from class org.opencastproject.serviceregistry.api.RemoteBase
closeConnection, getResponse, getResponse, runRequest
-
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:
transcribein interfaceorg.opencastproject.speechtotext.api.SpeechToTextService- Throws:
org.opencastproject.speechtotext.api.SpeechToTextServiceException- See Also:
-
setTrustedHttpClient
public void setTrustedHttpClient(org.opencastproject.security.api.TrustedHttpClient client) - Overrides:
setTrustedHttpClientin classorg.opencastproject.serviceregistry.api.RemoteBase
-
setRemoteServiceManager
public void setRemoteServiceManager(org.opencastproject.serviceregistry.api.ServiceRegistry remoteServiceManager) - Overrides:
setRemoteServiceManagerin classorg.opencastproject.serviceregistry.api.RemoteBase
-