def _audio_segment_extractor(self, audio_abs_path, segment_abs_path,
                                 starting_second, duration):
        """
        Parameters
        -----------
        audio_abs_path : str
        segment_abs_path : str
        starting_second : int
        duration : int
        """

        subprocess.Popen(["sox",  str(audio_abs_path), str(segment_abs_path),
                          "trim", str(starting_second), str(duration)],
                         universal_newlines=True).communicate()
def _audio_segment_extractor ( self , audio_abs_path , segment_abs_path , starting_second , duration ) : subprocess . Popen ( [ "sox" , str ( audio_abs_path ) , str ( segment_abs_path ) , "trim" , str ( starting_second ) , str ( duration ) ] , universal_newlines = True ) . communicate ( )
Parameters
        -----------
        audio_abs_path : str
        segment_abs_path : str
        starting_second : int
        duration : int