title: Is there a way to reverse the amplitude_to_db back to a clear audio?
body: <p>We are trying to denoise audio using spectrograms, we reduce the amplitude of frequencies found in a specific portion of the spectrogram and once the noise reduction is done, we want the data of the spectrogram to be converted back to its audio format.</p>
  <p>We create a spectrogram using this:</p>
  <pre><code>Audio = librosa.stft(data)
  spec = librosa.amplitude_to_db(np.abs(Audio), ref=np.max)
  </code></pre>
  <p>and we try to bring it back to audio using this:</p>
  <pre><code>S = librosa.db_to_amplitude(spec)
  audio = librosa.istft(S)
  </code></pre>
  <p>we preview the audio using this:</p>
  <pre><code>IPython.display.Audio(data=audio, rate=22000)
  </code></pre>
  <p>we have discovered that the problem isn't with our method to denoise the audio but maybe on how we have implemented the modules of Librosa. We tried to convert audio to spectrogram and back to audio without the denoising module that we have created, yet we are still not achieving a clear translation from spectrogram to audio using the <code>librosa.db_to_amplitude</code> module.</p>
  <ul>
  <li>file formats used: .flac input, .wav output</li>
  <li>original audio: <a href="https://drive.google.com/file/d/1lgAE3UapGiwr9DHOXPwdgm9BmA-ebNHm/view?usp=sharing" rel="nofollow noreferrer">Original Audio</a></li>
  <li>audio converted to spectrogram and back to audio without any denoising done: <a href="https://drive.google.com/file/d/1kgyIgRvzNs7v9lzF90sm2VEaONz11mM1/view?usp=sharing" rel="nofollow noreferrer">Processed Audio</a></li>
  </ul>
  <blockquote>
  <p>Thank you very much!</p>
  </blockquote>