Spaces:
Runtime error
Runtime error
commit
Browse files
app.py
CHANGED
|
@@ -166,7 +166,7 @@ def process_text_to_audio(text, translatefrom="English", translateto="English",
|
|
| 166 |
api_name="/t2st"
|
| 167 |
)
|
| 168 |
filename = f"{filename_prefix}_{hash(text)}.wav"
|
| 169 |
-
audio_file_path = save_audio_data_to_file(audio_response, filename=filename)
|
| 170 |
return audio_file_path
|
| 171 |
|
| 172 |
def save_audio_data_to_file(audio_data, directory="audio_files", filename="output_audio.wav"):
|
|
|
|
| 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"):
|