Class SpeechToTextServiceRestEndpoint

java.lang.Object
org.opencastproject.rest.AbstractJobProducerEndpoint
org.opencastproject.speechtotext.impl.endpoint.SpeechToTextServiceRestEndpoint

@Path("/speechtotext") public class SpeechToTextServiceRestEndpoint extends org.opencastproject.rest.AbstractJobProducerEndpoint
A service endpoint to expose the SpeechToTextService via REST.
  • Constructor Details

    • SpeechToTextServiceRestEndpoint

      public SpeechToTextServiceRestEndpoint()
  • Method Details

    • 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:
      getService in class org.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:
      getServiceRegistry in class org.opencastproject.rest.AbstractJobProducerEndpoint
      See Also:
      • AbstractJobProducerEndpoint.getServiceRegistry()