Spaces:
Runtime error
Runtime error
Fabrice-TIERCELIN
commited on
Commit
•
703e0c3
1
Parent(s):
9350c82
Fix variables
Browse files
app.py
CHANGED
@@ -113,17 +113,17 @@ def text2audio(
|
|
113 |
output_wave = tango.generate(prompt, steps, guidance, output_number)
|
114 |
|
115 |
output_filename_1 = "tmp1_.wav"
|
116 |
-
wavio.write(
|
117 |
|
118 |
if (2 <= output_number):
|
119 |
output_filename_2 = "tmp2_.wav"
|
120 |
-
wavio.write(
|
121 |
else:
|
122 |
output_filename_2 = None
|
123 |
|
124 |
if (output_number == 3):
|
125 |
output_filename_3 = "tmp3_.wav"
|
126 |
-
wavio.write(
|
127 |
else:
|
128 |
output_filename_3 = None
|
129 |
|
|
|
113 |
output_wave = tango.generate(prompt, steps, guidance, output_number)
|
114 |
|
115 |
output_filename_1 = "tmp1_.wav"
|
116 |
+
wavio.write(output_filename_1, output_wave[0], rate = 16000, sampwidth = 2)
|
117 |
|
118 |
if (2 <= output_number):
|
119 |
output_filename_2 = "tmp2_.wav"
|
120 |
+
wavio.write(output_filename_2, output_wave[1], rate = 16000, sampwidth = 2)
|
121 |
else:
|
122 |
output_filename_2 = None
|
123 |
|
124 |
if (output_number == 3):
|
125 |
output_filename_3 = "tmp3_.wav"
|
126 |
+
wavio.write(output_filename_3, output_wave[2], rate = 16000, sampwidth = 2)
|
127 |
else:
|
128 |
output_filename_3 = None
|
129 |
|