AudioSplit[audio,t]
splits audio at time t.
AudioSplit[audio,{t1,t2,…}]
splits audio at times ti.
AudioSplit
AudioSplit[audio,t]
splits audio at time t.
AudioSplit[audio,{t1,t2,…}]
splits audio at times ti.
Details
- AudioSplit can create audio partitions of different durations. Use AudioPartition to partition the audio signal into equal partition lengths.
- The times ti can be any of the following:
-
t time given in seconds Quantity[t,"unit"] time given in "unit" compatible with seconds Quantity[t,"Samples"] time given as number of samples
Examples
open all close allBasic Examples (2)
Scope (2)
Split an audio object at 1 second from the end:
AudioSplit[\!\(\*AudioBox[""]\), -1]Duration /@ %The time specification can also be expressed as a time Quantity:
a = \!\(\*AudioBox[""]\);Duration /@ AudioSplit[a, Quantity[1, "Seconds"]]Use a "Samples" Quantity:
Duration /@ AudioSplit[a, Quantity[22050, "Samples"]]Applications (1)
Split an Audio object at the peaks of the "Novelty" measurement:
a = \!\(\*AudioBox[""]\);Compute the novelty and find the peaks:
novelty = Rescale@AudioLocalMeasurements[a, "Novelty", PartitionGranularity -> {.02, .01}];
peaks = FindPeaks[novelty, 6, .001]["Times"]AudioSplit[a, peaks]Properties & Relations (1)
Neat Examples (1)
Split an Audio object and randomly recompose it:
a = ExampleData[{"Audio", "Drums"}, "Audio"]dur = QuantityMagnitude@Duration@a;audioList = AudioSplit[a, Range[0, dur, dur / 32 ]];Choose randomly from the list and join the result:
AudioFade /@ RandomChoice[audioList, 40]//AudioJoinRelated Guides
History
Text
Wolfram Research (2016), AudioSplit, Wolfram Language function, https://reference.wolfram.com/language/ref/AudioSplit.html.
CMS
Wolfram Language. 2016. "AudioSplit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AudioSplit.html.
APA
Wolfram Language. (2016). AudioSplit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AudioSplit.html
BibTeX
@misc{reference.wolfram_2026_audiosplit, author="Wolfram Research", title="{AudioSplit}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/AudioSplit.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_audiosplit, organization={Wolfram Research}, title={AudioSplit}, year={2016}, url={https://reference.wolfram.com/language/ref/AudioSplit.html}, note=[Accessed: 12-June-2026]}