Spaces:
Runtime error
Runtime error
Balachandar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def process_text_to_audio(text, translatefrom="English", translateto="English",
|
|
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
|
172 |
|
173 |
def save_audio_data_to_file(audio_data, directory="audio_files", filename="output_audio.wav"):
|
174 |
"""
|
|
|
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_response[0]
|
172 |
|
173 |
def save_audio_data_to_file(audio_data, directory="audio_files", filename="output_audio.wav"):
|
174 |
"""
|