bark icon indicating copy to clipboard operation
bark copied to clipboard

How to download generated long form audio?

Open viberjet opened this issue 2 years ago • 2 comments

How to download generated long form audio?:

https://github.com/suno-ai/bark/blob/main/notebooks/long_form_generation.ipynb

viberjet avatar Sep 17 '23 03:09 viberjet

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)

florian-kalisch avatar Sep 19 '23 12:09 florian-kalisch

share this website Suno AI Download

AICodeHunt avatar Apr 12 '24 11:04 AICodeHunt