Class GoogleSpeechTranscriptionRestService

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.transcription.googlespeech.endpoint.GoogleSpeechTranscriptionRestService

@Path("/transcripts/googlespeech") public class GoogleSpeechTranscriptionRestService extends org.opencastproject.rest.AbstractJobProducerEndpoint
  • Field Details

    • service

      The transcription service
    • serviceRegistry

      protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry
      The service registry
  • Constructor Details

    • GoogleSpeechTranscriptionRestService

      public GoogleSpeechTranscriptionRestService()
  • Method Details

    • activate

      public void activate(org.osgi.service.component.ComponentContext cc)
    • setTranscriptionService

      public void setTranscriptionService(GoogleSpeechTranscriptionService service)
    • setServiceRegistry

      public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry service)
    • getService

      public org.opencastproject.job.api.JobProducer getService()
      Specified by:
      getService in class org.opencastproject.rest.AbstractJobProducerEndpoint
    • getServiceRegistry

      public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
      Specified by:
      getServiceRegistry in class org.opencastproject.rest.AbstractJobProducerEndpoint
    • getTranscriptionResult

      @GET @Path("results") @Produces("application/json") public javax.ws.rs.core.Response getTranscriptionResult(@QueryParam("jobId") String jobId, @Context javax.servlet.http.HttpServletRequest request) throws org.opencastproject.transcription.api.TranscriptionServiceException, IOException
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException
      IOException
    • getTranscriptionStatus

      @GET @Path("status") @Produces("text/plain") public javax.ws.rs.core.Response getTranscriptionStatus(@QueryParam("mediaPackageID") String mpId, @Context javax.servlet.http.HttpServletRequest request) throws org.opencastproject.transcription.api.TranscriptionServiceException
      Throws:
      org.opencastproject.transcription.api.TranscriptionServiceException