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 Summary
FieldsModifier and TypeFieldDescriptionprotected GoogleSpeechTranscriptionServiceThe transcription serviceprotected org.opencastproject.serviceregistry.api.ServiceRegistryThe service registry -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext cc) org.opencastproject.job.api.JobProducerorg.opencastproject.serviceregistry.api.ServiceRegistryjavax.ws.rs.core.ResponsegetTranscriptionResult(String jobId, javax.servlet.http.HttpServletRequest request) javax.ws.rs.core.ResponsegetTranscriptionStatus(String mpId, javax.servlet.http.HttpServletRequest request) voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry service) voidMethods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Field Details
-
service
The transcription service -
serviceRegistry
protected org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistryThe service registry
-
-
Constructor Details
-
GoogleSpeechTranscriptionRestService
public GoogleSpeechTranscriptionRestService()
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext cc) -
setTranscriptionService
-
setServiceRegistry
public void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry service) -
getService
public org.opencastproject.job.api.JobProducer getService()- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint
-
getServiceRegistry
public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()- Specified by:
getServiceRegistryin classorg.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.TranscriptionServiceExceptionIOException
-
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
-