Class SpeechToTextServiceRestEndpoint


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

      • SpeechToTextServiceRestEndpoint

        public SpeechToTextServiceRestEndpoint()
    • 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:
        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()