audiosegment.py
def generate_frames_as_segments(self, frame_duration_ms, zero_pad=True):
        """
        Does the same thing as `generate_frames`, but yields tuples of (AudioSegment, timestamp) instead of Frames.
        """
        for frame in self.generate_frames(frame_duration_ms, zero_pad=zero_pad):
            seg = AudioSegment(pydub.AudioSegment(data=frame.bytes, sample_width=self.sample_width,
                               frame_rate=self.frame_rate, channels=self.channels), self.name)
            yield seg, frame.timestamp
def generate_frames_as_segments(self, frame_duration_ms, zero_pad=True):
        """
        Does the same thing as `generate_frames`, but yields tuples of (AudioSegment, timestamp) instead of Frames.
        """
        for frame in self.generate_frames(frame_duration_ms, zero_pad=zero_pad):
            seg = AudioSegment(pydub.AudioSegment(data=frame.bytes, sample_width=self.sample_width,
                               frame_rate=self.frame_rate, channels=self.channels), self.name)
            yield seg, frame.timestamp
def generate_frames_as_segments ( self , frame_duration_ms , zero_pad = True ) : for frame in self . generate_frames ( frame_duration_ms , zero_pad = zero_pad ) : seg = AudioSegment ( pydub . AudioSegment ( data = frame . bytes , sample_width = self . sample_width , frame_rate = self . frame_rate , channels = self . channels ) , self . name ) yield seg , frame . timestamp
Does the same thing as `generate_frames`, but yields tuples of (AudioSegment, timestamp) instead of Frames.
Does the same thing as generate_frames but yields tuples of ( AudioSegment timestamp ) instead of Frames .