Spaces:
Runtime error
Runtime error
Commit
·
ccec0f4
1
Parent(s):
d349042
T2S update
Browse files
app.py
CHANGED
|
@@ -293,7 +293,8 @@ def text_to_speech_2(text):
|
|
| 293 |
print ("File Name ", audio.name)
|
| 294 |
# print (audio)
|
| 295 |
Audio_output.append(audio.name)
|
| 296 |
-
return audio.name
|
|
|
|
| 297 |
except requests.exceptions.RequestException as e:
|
| 298 |
print(f"Error: {e}")
|
| 299 |
return None
|
|
|
|
| 293 |
print ("File Name ", audio.name)
|
| 294 |
# print (audio)
|
| 295 |
Audio_output.append(audio.name)
|
| 296 |
+
# return audio.name
|
| 297 |
+
return response.content
|
| 298 |
except requests.exceptions.RequestException as e:
|
| 299 |
print(f"Error: {e}")
|
| 300 |
return None
|