Spaces:
Running
Running
Initial Draft
Browse files
voice.py
CHANGED
@@ -26,7 +26,7 @@ model = BarkModel.from_pretrained("suno/bark")
|
|
26 |
def submit(voice_preseter, filename, input_text):
|
27 |
print("Hello World")
|
28 |
|
29 |
-
|
30 |
audio_array = model.generate(**inputs)
|
31 |
audio_array = audio_array.cpu().numpy().squeeze()
|
32 |
sample_rate = model.generation_config.sample_rate
|
|
|
26 |
def submit(voice_preseter, filename, input_text):
|
27 |
print("Hello World")
|
28 |
|
29 |
+
inputs = processor(input_text, voice_preset=voice_preseter)
|
30 |
audio_array = model.generate(**inputs)
|
31 |
audio_array = audio_array.cpu().numpy().squeeze()
|
32 |
sample_rate = model.generation_config.sample_rate
|