Insert audio clip

Please kindly help i am having the following error;

ValueError Traceback (most recent call last)
in
16 print("\033[92m All tests passed!")
17
—> 18 insert_audio_clip_test(insert_audio_clip)

in insert_audio_clip_test(target)
2 def insert_audio_clip_test(target):
3 np.random.seed(5)
----> 4 audio_clip, segment_time = target(backgrounds[0], activates[0], [(0, 4400)])
5 duration = segment_time[1] - segment_time[0]
6 assert segment_time[0] > 4400, “Error: The audio clip is overlaping with the first segment”

in insert_audio_clip(background, audio_clip, previous_segments)
28 # we retry 5 times(≈ 2 lines)
29 retry = 5 # @KEEP
—> 30 while is_overlapping(segment_time, previous_segments) and retry >= 0:
31 segment_time = previous_segments
32 retry = retry - 1

in is_overlapping(segment_time, previous_segments)
14 “”"
15
—> 16 segment_start, segment_end = segment_time
17
18 ### START CODE HERE ### (≈ 4 lines)

ValueError: not enough values to unpack (expected 2, got 1)

Hi @Igba ,

In the Step 2, it tries to check and get a non-overlapped random time segment. The way to get a new random time segment is same as Step 1.