title: ParameterError : data must be floating-point (librosa)
body: <p>Refernce : <a href="https://github.com/librosa/librosa/blob/master/examples/LibROSA%20demo.ipynb" rel="nofollow noreferrer">https://github.com/librosa/librosa/blob/master/examples/LibROSA%20demo.ipynb</a></p>
  
  <p><strong>Code :</strong></p>
  
  <pre><code>import librosa
  
  S = librosa.feature.melspectrogram(samples, sr=sample_rate, n_mels=128)
  
  log_S = librosa.power_to_db(S, ref=np.max)
  plt.figure(figsize=(12,4))
  
  librosa.display.specshow(log_S, sr=sample_rate, x_axis='time', y_axis='mel')
  
  plt.title('mel power spectrogram')
  
  plt.colorbar(format='%+02.0f dB')
  
  plt.tight_layout()
  </code></pre>
  
  <p><strong>Erorr I am getting :</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/qQE6P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qQE6P.png" alt="Error i am getting"></a></p>