Spaces:
Runtime error
Runtime error
EC2 Default User
commited on
Commit
•
f033335
1
Parent(s):
b27938b
change polly to real time
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def play_s3_voice(text):
|
|
168 |
audio_output_bucket_name = "lingo-audio-materials"
|
169 |
audio_output_s3_key = "answers/response.mp3"
|
170 |
|
171 |
-
s3.upload_file(
|
172 |
|
173 |
# Construct the S3 bucket URI
|
174 |
s3_uri = f"s3://{audio_output_bucket_name}/{audio_output_s3_key}"
|
|
|
168 |
audio_output_bucket_name = "lingo-audio-materials"
|
169 |
audio_output_s3_key = "answers/response.mp3"
|
170 |
|
171 |
+
s3.upload_file(output_file, audio_output_bucket_name, audio_output_s3_key)
|
172 |
|
173 |
# Construct the S3 bucket URI
|
174 |
s3_uri = f"s3://{audio_output_bucket_name}/{audio_output_s3_key}"
|