Spaces:
Runtime error
Runtime error
Balachandar
commited on
Commit
•
f93e86f
1
Parent(s):
4130ea3
Update app.py
Browse files
app.py
CHANGED
@@ -165,9 +165,10 @@ def process_text_to_audio(text, translatefrom="English", translateto="English",
|
|
165 |
translateto,
|
166 |
api_name="/t2st"
|
167 |
)
|
168 |
-
filename = f"{filename_prefix}_{hash(text)}.wav"
|
169 |
-
audio_file_path = save_audio_data_to_file(audio_response[0], filename=filename)
|
170 |
-
return audio_file_path
|
|
|
171 |
|
172 |
def save_audio_data_to_file(audio_data, directory="audio_files", filename="output_audio.wav"):
|
173 |
"""
|
|
|
165 |
translateto,
|
166 |
api_name="/t2st"
|
167 |
)
|
168 |
+
# filename = f"{filename_prefix}_{hash(text)}.wav"
|
169 |
+
# audio_file_path = save_audio_data_to_file(audio_response[0], filename=filename)
|
170 |
+
# return audio_file_path
|
171 |
+
return audio_respons[0]
|
172 |
|
173 |
def save_audio_data_to_file(audio_data, directory="audio_files", filename="output_audio.wav"):
|
174 |
"""
|