def denoise(self, req): res = AudioProcessingDenoiseSrvResponse() res.success = self.sox_denoise_module.soxDenoise(\ req.user,\ req.audio_type,\ req.audio_file,\ req.denoised_audio_file,\ req.scale) return res
def denoiseCallback(self, req): res = AudioProcessingDenoiseSrvResponse() res.success = self._sox_denoise_module.soxDenoise(\ req.user,\ req.audio_type,\ req.audio_file,\ req.denoised_audio_file,\ req.scale) return res
def energy_denoise(self, req): res = AudioProcessingDenoiseSrvResponse() output = self.energy_denoise_module.energyDenoise(\ req.audio_file, req.scale, req.denoised_audio_file,\ self.energy_denoising_debug) if output == True: res.success = "true" else: res.success = "false" return res
def energyDenoiseCallback(self, req): res = AudioProcessingDenoiseSrvResponse() output = self._energy_denoise_module.energyDenoise(\ req.audio_file, req.scale, req.denoised_audio_file,\ self._energy_denoising_debug) if output == True: res.success = "true" else: res.success = "false" return res