This just uses a music file that is split into 1 seconds chunks. The ffmpeg command to make it: ffmpeg -i take+me+home,+country+roads.m4a \ -c:a pcm_s16le -ar 44100 -ac 2 \ -f segment -segment_time 1 -reset_timestamps 1 \ chunk_%0.wav take+me+home,+country+roads.m4a is the music file