Class SpeechToTextServiceRestEndpoint
- java.lang.Object
-
- org.opencastproject.rest.AbstractJobProducerEndpoint
-
- org.opencastproject.speechtotext.impl.endpoint.SpeechToTextServiceRestEndpoint
-
@Path("/") public class SpeechToTextServiceRestEndpoint extends org.opencastproject.rest.AbstractJobProducerEndpointA service endpoint to expose theSpeechToTextServicevia REST.
-
-
Constructor Summary
Constructors Constructor Description SpeechToTextServiceRestEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opencastproject.job.api.JobProducergetService()org.opencastproject.serviceregistry.api.ServiceRegistrygetServiceRegistry()protected voidsetServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)Callback from the OSGi declarative services to set the service registry.voidsetSpeechToTextService(org.opencastproject.speechtotext.api.SpeechToTextService speechToTextService)Sets the speechToText servicejavax.ws.rs.core.ResponsespeechToText(String mediaFilePath, String language, Boolean translate)
-
-
-
Method Detail
-
speechToText
@POST @Produces("text/xml") @Path("speechtotext") public javax.ws.rs.core.Response speechToText(@FormParam("mediaFilePath") String mediaFilePath, @FormParam("language") String language, @FormParam("translate") Boolean translate)
-
getService
public org.opencastproject.job.api.JobProducer getService()
- Specified by:
getServicein classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
AbstractJobProducerEndpoint.getService()
-
setServiceRegistry
protected void setServiceRegistry(org.opencastproject.serviceregistry.api.ServiceRegistry serviceRegistry)
Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setSpeechToTextService
public void setSpeechToTextService(org.opencastproject.speechtotext.api.SpeechToTextService speechToTextService)
Sets the speechToText service- Parameters:
speechToTextService- the speechToText service
-
getServiceRegistry
public org.opencastproject.serviceregistry.api.ServiceRegistry getServiceRegistry()
- Specified by:
getServiceRegistryin classorg.opencastproject.rest.AbstractJobProducerEndpoint- See Also:
AbstractJobProducerEndpoint.getServiceRegistry()
-
-