So I have a list with two numbers which are 1 and 0. Each item in list is equivalent to 1 second of audio. 0 is speech while 1 is music.
Example of the list:
[1,1,1,1,1,1,0,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,1,1,1]
I want the output to display the start of audio, end of audio and the type of audio.
Output:
1,6, music
7,12, speech
13,17, music
18,24, speech
25,26, music
27,32, speech
33,37, music