WLJS LogoWLJS Notebook

AudioLength

AudioLength[audio] returns the number of samples in the Audio object audio.

Examples

Get the number of samples:

audio = ExampleData[{"Audio", "Bird"}];
AudioLength[audio]
(* 132300 *)

Please visit the official Wolfram Language Reference for more details.

On this page