suno-ai / bark

🔊 Text-Prompted Generative Audio Model
MIT License
35.24k stars 4.13k forks source link

How to download generated long form audio? #463

Open viberjet opened 11 months ago

viberjet commented 11 months ago

How to download generated long form audio?:

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

florian-kalisch commented 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)
AICodeHunt commented 5 months ago

share this website Suno AI Download