Unverified Commit bdf0f628 authored by Manoj Plakal's avatar Manoj Plakal Committed by GitHub
Browse files

Cosmetic changes to spectrogram_to_mel_matrix()

To simplify syncing this c ode back into Google.
parent 982a5504
...@@ -150,7 +150,7 @@ def spectrogram_to_mel_matrix(num_mel_bins=20, ...@@ -150,7 +150,7 @@ def spectrogram_to_mel_matrix(num_mel_bins=20,
An np.array with shape (num_spectrogram_bins, num_mel_bins). An np.array with shape (num_spectrogram_bins, num_mel_bins).
Raises: Raises:
ValueError: if frequency edges are incorrectly ordered. ValueError: if frequency edges are incorrectly ordered or out of range.
""" """
nyquist_hertz = audio_sample_rate / 2. nyquist_hertz = audio_sample_rate / 2.
if lower_edge_hertz < 0.0: if lower_edge_hertz < 0.0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment