def make_spectrum_phase(y, FRAMESIZE, OVERLAP, FFTSIZE):
    D = librosa.stft(y, n_fft=FRAMESIZE, hop_length=OVERLAP, win_length=FFTSIZE, window=scipy.signal.hamming)
    Sxx = np.log10((abs(D) ** 2))
    print((str(D) + ' the value for D'))
    phase = np.exp((1j * np.angle(D)))
    print((str(phase) + ' the value of phase'))
    mean = np.mean(Sxx, axis=1).reshape((257, 1))
    std = (np.std(Sxx, axis=1).reshape((257, 1)) + 1e-12)
    Sxx = ((Sxx - mean) / std)
    return (Sxx, phase, mean, std)
def make_spectrum_phase(y, FRAMESIZE, OVERLAP, FFTSIZE):
    D = librosa.stft(y, n_fft=FRAMESIZE, hop_length=OVERLAP, win_length=FFTSIZE, window=scipy.signal.hamming)
    Sxx = np.log10((abs(D) ** 2))
    print((str(D) + ' the value for D'))
    phase = np.exp((1j * np.angle(D)))
    print((str(phase) + ' the value of phase'))
    mean = np.mean(Sxx, axis=1).reshape((257, 1))
    std = (np.std(Sxx, axis=1).reshape((257, 1)) + 1e-12)
    Sxx = ((Sxx - mean) / std)
    return (Sxx, phase, mean, std)