|TensorFlow 1 version||View source on GitHub|
axis dimension into frames of
Compat aliases for migration
See Migration guide for more details.
tf.signal.frame( signal, frame_length, frame_step, pad_end=False, pad_value=0, axis=-1, name=None )
Used in the notebooks
|Used in the tutorials|
Slides a window of size
with a stride of
frame_step, replacing the
axis dimension with
[frames, frame_length] frames.
pad_end is True, window positions that are past the end of the
dimension are padded with
pad_value until the window moves fully past the
end of the dimension. Otherwise, only window positions that fully overlap the
axis dimension are produced.
# A batch size 3 tensor of 9152 audio samples.
audio = tf.random.normal([3, 9152])
# Compute overlapping frames of length 512 with a step of 180 (frames overlap