stretched_source = []
audio_data = signal.audio_data
for row in range(audio_data.shape[0]):
audio_row = audio_data[row, :]
if librosa.__version__ > "0.6.2":
audio_row = np.asfortranarray(audio_row)
After Change
Returns:
stretched_signal: A copy of the original audio_signal, with augmented sources.
if not np.issubdtype(type(stretch_factor), np.number) or stretch_factor <= 0:
raise ValueError("stretch_factor must be a positve scalar")
sample_rate = audio_signal.sample_rate