Hi, after running the insert_audio_clips function, it passes all the tests, but executing the cell right after the unit tests gives the following error
RecursionError Traceback (most recent call last)
<ipython-input-23-7ea09631b600> in <module>
1 np.random.seed(5)
----> 2 audio_clip, segment_time = insert_audio_clip(backgrounds[0], activates[0], [(3790, 4400)])
3 audio_clip.export("insert_test.wav", format="wav")
4 print("Segment Time: ", segment_time)
5 IPython.display.Audio("insert_test.wav")
<ipython-input-21-d222fe5d1b11> in insert_audio_clip(background, audio_clip, previous_segments)
35 # if last try is not overlapping, insert it to the background
36 if not is_overlapping(segment_time, previous_segments):
---> 37 insert_audio_clip(background, audio_clip, previous_segments)
38 ### START CODE HERE ###
39 # Step 3: Append the new segment_time to the list of previous_segments (ā 1 line)
... last 1 frames repeated, from the frame below ...
<ipython-input-21-d222fe5d1b11> in insert_audio_clip(background, audio_clip, previous_segments)
35 # if last try is not overlapping, insert it to the background
36 if not is_overlapping(segment_time, previous_segments):
---> 37 insert_audio_clip(background, audio_clip, previous_segments)
38 ### START CODE HERE ###
39 # Step 3: Append the new segment_time to the list of previous_segments (ā 1 line)
RecursionError: maximum recursion depth exceeded while calling a Python object
All the previous exercises had passed all the tests as well but Iām getting this error for some reason.