Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bkvogel/griffin_lim
/ functions
Functions
11 in github.com/bkvogel/griffin_lim
⨍
Functions
11
◇
Types & classes
0
↓ 3 callers
Function
hz_to_fft_bin
Convert frequency in Hz to FFT bin index. Args: f_hz (int or float): The frequency in Hz. sample_rate_hz (int or float): The samp
audio_utilities.py:64
↓ 3 callers
Function
mel_to_hz
Convert mel scale to Hz. This uses the formula from O'Shaugnessy's book. Args: m_mel (float): The value in mels Returns:
audio_utilities.py:34
↓ 2 callers
Function
hz_to_mel
Convert Hz to mel scale. This uses the formula from O'Shaugnessy's book. Args: f_hz (float): The value in Hz. Returns: T
audio_utilities.py:21
↓ 1 callers
Function
istft_for_reconstruction
Invert a STFT into a time domain signal. Args: X (2-dim Numpy array): Input spectrogram. The rows are the time slices and columns are the
audio_utilities.py:202
↓ 1 callers
Function
run_demo
Test Griffin & Lim method for reconstructing audio from a magnitude spectrogram. Example of using the Griffin-Lim algorithm. The input file i
run_demo.py:12
↓ 1 callers
Function
stft_for_reconstruction
Compute and return the STFT of the supplied time domain signal x. Args: x (1-dim Numpy array): A time domain signal. fft_size (in
audio_utilities.py:184
Function
fft_bin_to_hz
Convert FFT bin index to frequency in Hz. Args: n_bin (int or float): The FFT bin index. sample_rate_hz (int or float): The sampl
audio_utilities.py:47
Function
get_signal
Load a wav file. If the file contains more than one channel, return a mono file by taking the mean of all channels. If the sample rate d
audio_utilities.py:224
Function
make_mel_filterbank
Create a mel filterbank matrix. Create and return a mel filterbank matrix `filterbank` of shape (`mel_bin_count`, `linear_bin_couont`). The `
audio_utilities.py:84
Function
reconstruct_signal_griffin_lim
Reconstruct an audio signal from a magnitude spectrogram. Given a magnitude spectrogram as input, reconstruct the audio signal and return it
audio_utilities.py:261
Function
save_audio_to_file
Save a mono signal to a file. Args: x (1-dim Numpy array): The audio signal to save. The signal values should be in the range [-1.0, 1.0]
audio_utilities.py:298