MCPcopy
hub / github.com/RVC-Boss/GPT-SoVITS / stft

Function stft

tools/uvr5/lib/lib_v5/spec_utils.py:470–477  ·  view source on GitHub ↗
(wave, nfft, hl)

Source from the content-addressed store, hash-verified

468
469
470def stft(wave, nfft, hl):
471 wave_left = np.asfortranarray(wave[0])
472 wave_right = np.asfortranarray(wave[1])
473 spec_left = librosa.stft(wave_left, n_fft=nfft, hop_length=hl)
474 spec_right = librosa.stft(wave_right, n_fft=nfft, hop_length=hl)
475 spec = np.asfortranarray([spec_left, spec_right])
476
477 return spec
478
479
480def istft(spec, hl):

Callers

nothing calls this directly

Calls 1

stftMethod · 0.80

Tested by

no test coverage detected