Open viberjet opened 11 months ago
I am not deep into the topic, but solved it this way using GPT4:
import scipy
# Concatenate pieces into a single array
concatenated = np.concatenate(pieces)
# Scale the data
scaled = np.int16(concatenated/np.max(np.abs(concatenated)) * 32767)
# Write to the WAV file
scipy.io.wavfile.write("output.wav", rate=SAMPLE_RATE, data=scaled)
share this website Suno AI Download
How to download generated long form audio?:
https://github.com/suno-ai/bark/blob/main/notebooks/long_form_generation.ipynb