def METHOD_NAME(self, inputs: Dict[str, Any], **kwargs) -> Dict[str, Any]:
    if not self.stream_mode and 'output_path' in kwargs.keys():
        sf.write(
            kwargs['output_path'],
            np.frombuffer(inputs[OutputKeys.OUTPUT_PCM], dtype=np.int16),
            self.SAMPLE_RATE)
    return inputs