Class MicrosoftAzureTranscriptionService

java.lang.Object
org.opencastproject.job.api.AbstractJobProducer
org.opencastproject.transcription.microsoft.azure.MicrosoftAzureTranscriptionService
All Implemented Interfaces:
org.opencastproject.job.api.JobProducer, org.opencastproject.transcription.api.TranscriptionService

public class MicrosoftAzureTranscriptionService extends org.opencastproject.job.api.AbstractJobProducer implements org.opencastproject.transcription.api.TranscriptionService
  • Constructor Details

    • MicrosoftAzureTranscriptionService

      public MicrosoftAzureTranscriptionService()
      A public constructor, required by OSGi.
  • Method Details

    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
      Overrides:
      activate in class org.opencastproject.job.api.AbstractJobProducer
    • modified

      public void modified(org.osgi.service.component.ComponentContext cc)
    • deactivate

      public void deactivate()
    • process

      protected String process(org.opencastproject.job.api.Job job) throws Exception
      Specified by:
      process in class org.opencastproject.job.api.AbstractJobProducer
      Throws:
      Exception
    • startTranscription

      public org.opencastproject.job.api.Job startTranscription(String mpId, org.opencastproject.mediapackage.Track track) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Specified by:
      startTranscription in interface org.opencastproject.transcription.api.TranscriptionService
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • startTranscription

      public org.opencastproject.job.api.Job startTranscription(String mpId, org.opencastproject.mediapackage.Track track, String... args) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Specified by:
      startTranscription in interface org.opencastproject.transcription.api.TranscriptionService
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • getGeneratedTranscription

      public org.opencastproject.mediapackage.MediaPackageElement getGeneratedTranscription(String mpId, String jobId, org.opencastproject.mediapackage.MediaPackageElement.Type type) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Specified by:
      getGeneratedTranscription in interface org.opencastproject.transcription.api.TranscriptionService
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • transcriptionDone

      public void transcriptionDone(String mpId, Object results) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Specified by:
      transcriptionDone in interface org.opencastproject.transcription.api.TranscriptionService
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • transcriptionError

      public void transcriptionError(String mpId, Object results) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Specified by:
      transcriptionError in interface org.opencastproject.transcription.api.TranscriptionService
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • getLanguage

      public String getLanguage()
      Specified by:
      getLanguage in interface org.opencastproject.transcription.api.TranscriptionService
    • getReturnValues

      public Map<String,Object> getReturnValues(String mpId, String jobId) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Specified by:
      getReturnValues in interface org.opencastproject.transcription.api.TranscriptionService
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • createTranscriptionJob

      public String createTranscriptionJob(long jobId, String mpId, org.opencastproject.mediapackage.Track track, String language) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • deleteTranscription

      public void deleteTranscription(String mpId, String transcriptionId) throws org.opencastproject.transcription.api.TranscriptionServiceException, org.opencastproject.transcription.persistence.TranscriptionDatabaseException
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
      org.opencastproject.transcription.persistence.TranscriptionDatabaseException
    • deleteTranscriptionSourceFiles

      public void deleteTranscriptionSourceFiles(String mpId, String transcriptionId) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
    • getServiceRegistry

      protected org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
      Specified by:
      getServiceRegistry in class org.opencastproject.job.api.AbstractJobProducer
    • getSecurityService

      protected org.opencastproject.security.api.SecurityService getSecurityService()
      Specified by:
      getSecurityService in class org.opencastproject.job.api.AbstractJobProducer
    • getUserDirectoryService

      protected org.opencastproject.security.api.UserDirectoryService getUserDirectoryService()
      Specified by:
      getUserDirectoryService in class org.opencastproject.job.api.AbstractJobProducer
    • getOrganizationDirectoryService

      protected org.opencastproject.security.api.OrganizationDirectoryService getOrganizationDirectoryService()
      Specified by:
      getOrganizationDirectoryService in class org.opencastproject.job.api.AbstractJobProducer
    • setServiceRegistry

      public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
    • setSecurityService

      public void setSecurityService(org.opencastproject.security.api.SecurityService securityService)
    • setUserDirectoryService

      public void setUserDirectoryService(org.opencastproject.security.api.UserDirectoryService userDirectoryService)
    • setOrganizationDirectoryService

      public void setOrganizationDirectoryService(org.opencastproject.security.api.OrganizationDirectoryService organizationDirectoryService)
    • setWorkspace

      public void setWorkspace(org.opencastproject.workspace.api.Workspace ws)
    • setDatabase

      public void setDatabase(org.opencastproject.transcription.persistence.TranscriptionDatabase service)
    • setAssetManager

      public void setAssetManager(org.opencastproject.assetmanager.api.AssetManager service)
    • setWorkflowService

      public void setWorkflowService(org.opencastproject.workflow.api.WorkflowService service)