How can I make sure audio clip length and segment length are same?
Getting Error in insert_audio_clip method:
Audio Clip Duration: 916
Segment Duration: 20.77097505668934
AssertionError 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)
5 duration = segment_time[1] - segment_time[0]
6 assert segment_time[0] > 4400, “Error: The audio clip is overlaping with the first segment”
----> 7 assert duration + 1 == len(activates[0]) , “The segment length must match the audio clip length”
8 assert audio_clip != backgrounds[0] , “The audio clip must be different than the pure background”
9 assert segment_time == (7286, 8201), f"Wrong segment. Expected: Expected: (7286, 8201) got:{segment_time}"
AssertionError: The segment length must match the audio clip length