Solved by ptrblck in post #2 
              
              
                I guess the used librosa versions might differ and you might need to update/downgrade the Colab version if your local code is working fine.