Trigger Word: Spectrogram Wrong

Hello,

For some reason, my spectrogram test keeps saying my spectrogram is incorrect. I’ve checked my code over several times and with others, and I’m pretty confident that it’s correct.

Did you search the Forum for the term “spectrogram”? I think this has been asked before, so there may be a solution available.

Your spectrogram is not correct, because it is missing a vertical stripe of energy around the “40” mark on the horizontal axis.

People in the past had the same problem but they just submitted the assignment and still got 100. All of my other cases work except for this one, however, I’m getting a 0. I couldn’t find any solution to it in the forum.

Most likely there is an error in either your insert_ones(), insert_audio_clip(), or create_training_example() functions.

I checked all functions multiple times and can’t find any error anywhere.

Would you be able to check my code somehow? I’ve done everything else and just need this assignment graded to get the certification.

I got the same error. In my case, my implementation of the function “insert_audio_clip_test” was wrong, although it passed all the unit tests.
I didn’t correctly done the step “Append the new segment_time to the list of previous_segments” in the function “insert_audio_clip_test”
solving this problem lead to solving “spectrogram is wrong” problem

@yashm Not sure if it still helps you: the previous_segments remains local when inserting a single clip, so updating it after inserting each clip carries its value to when inserting the next clip. Indeed this adds one more line than the # of lines in the hint.