partitions an audio object into non-overlapping segments of duration dur.


generates segments with specified offset.

Details and Options

  • AudioPartition returns a list of Audio objects.
  • AudioPartition[audio,dur,] generates as many audio partitions of duration t as possible, padding incomplete segments at the end.
  • The specifications dur and offset can be any of the following:
  • durtime given in seconds
    Quantity[dur,"unit"]time given in "unit" compatible with seconds
    Quantity[dur,"Samples"]time given as number of samples
  • AudioPartition[audio,{dur}, ] can create up to duration dur segments.
  • AudioPartition accepts a Padding option. See the reference page for AudioPad for possible settings.


open allclose all

Basic Examples  (2)

Partition audio into non-overlapping, 1-second blocks:

Partition audio into overlapping blocks:

Scope  (2)

Specify the number of samples in each segment:

Specify the length of each segment, as well as the offset in number of samples:

Options  (4)

Padding  (4)

By default, incomplete partitions are padded with zeros to have a length equal to other partitions:

Partition into equal-duration segments, dropping some samples at the end:

Partition into unequal-duration blocks; no samples are dropped:

Use "Periodic" padding:

Wolfram Research (2016), AudioPartition, Wolfram Language function,


Wolfram Research (2016), AudioPartition, Wolfram Language function,


Wolfram Language. 2016. "AudioPartition." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2016). AudioPartition. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_audiopartition, author="Wolfram Research", title="{AudioPartition}", year="2016", howpublished="\url{}", note=[Accessed: 13-July-2024 ]}


@online{reference.wolfram_2024_audiopartition, organization={Wolfram Research}, title={AudioPartition}, year={2016}, url={}, note=[Accessed: 13-July-2024 ]}