Hi @Kic just found the error. It was in “segment_start, segment_end =” instead of passing the tuple that was already generated by the function insert_audio_clip(), I was running the function get_random_time_segment() generating a random “segment_start, segment_end” that were different than the one where the clip was inserted.
Thanks for your help. It might be worth to include a check on that line as part of the tests in order to be able to give a more specific feedback to students.