Class SpeechToTextServiceRestEndpoint
java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.speechtotext.impl.endpoint.SpeechToTextServiceRestEndpoint
@Path("/speechtotext")
public class SpeechToTextServiceRestEndpoint
extends AbstractJobProducerEndpoint
A service endpoint to expose the
SpeechToTextService via REST.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the job producer that is backing this REST endpoint.Return the service registry.protected voidsetServiceRegistry(ServiceRegistry serviceRegistry) Callback from the OSGi declarative services to set the service registry.voidsetSpeechToTextService(SpeechToTextService speechToTextService) Sets the speechToText servicejavax.ws.rs.core.ResponsespeechToText(String mediaFilePath, String language, Boolean translate) Methods inherited from class org.opencastproject.rest.AbstractJobProducerEndpoint
checkHeartbeat, dispatchJob
-
Constructor Details
-
SpeechToTextServiceRestEndpoint
public SpeechToTextServiceRestEndpoint()
-
-
Method Details
-
speechToText
-
getService
Returns the job producer that is backing this REST endpoint.- Specified by:
getServicein classAbstractJobProducerEndpoint- Returns:
- the job producer
- See Also:
-
setServiceRegistry
Callback from the OSGi declarative services to set the service registry.- Parameters:
serviceRegistry- the service registry
-
setSpeechToTextService
Sets the speechToText service- Parameters:
speechToTextService- the speechToText service
-
getServiceRegistry
Return the service registry.- Specified by:
getServiceRegistryin classAbstractJobProducerEndpoint- See Also:
-