Пример #1
0
def plot_log_spectrogram_from_wave_file(filename):
    fs, x = utils.read_gzip_wave_file(filename)
    Sxx = sp.wave_to_log_amplitude_spectrogram(x, fs, 512, 128)[:256]
    Sxx2 = utils.wave_to_log_spectrogram_aux(x, fs)
    plot_matrix(Sxx, "Log Amplitude Spectrogram")
    plot_matrix(Sxx2, "Log Amplitude Spectrogram (scipy)")
Пример #2
0
def plot_spectrogram_from_wave_file(filename):
    fs, x = utils.read_gzip_wave_file(filename)
    Sxx = sp.wave_to_amplitude_spectrogram(x, fs, 512, 128)[:256]
    plot_matrix(Sxx, "Amplitude Spectrogram")
Пример #3
0
def img_spectrogram_from_wave_file(filepath):
    fs, x = utils.read_gzip_wave_file(filepath)
    Sxx = sp.wave_to_log_amplitude_spectrogram(x, fs, 512, 128)[:256]
    baseName = utils.get_basename_without_ext(filepath)
    save_matrix_to_file(Sxx, "Log Amplitude Spectrogram",
                        baseName + "_AMP.png")