Wrong "segment time"

Hello,

       I am getting a wrong segment time for the insert_audio_clip() function. My segment time is: Segment Time:  (7286, 9026) whereas the expected output is Segment Time	(2254, 3169). Though it still passes the unit test. I am wondering where I am going astray? 

      As a consequence, the following function creates a wrong spectrogram and throws an assertion error. I believe somewhere the random seed is getting set wrongly.

Thanks in advance.

The unit test for this function does not catch all errors.
Common mistakes are:

  • Not using “>= retry” in the while-loop condition.
  • Not using is_overlapping() in the while-loop condition.