Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def transcribe_audio(audio):
|
|
47 |
|
48 |
# Step 2: Create pronunciation audio for incorrect words
|
49 |
def create_pronunciation_audio(word):
|
50 |
-
time.sleep(
|
51 |
tts = gTTS(word)
|
52 |
main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
|
53 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
|
|
47 |
|
48 |
# Step 2: Create pronunciation audio for incorrect words
|
49 |
def create_pronunciation_audio(word):
|
50 |
+
time.sleep(1) # Chờ 5 giây
|
51 |
tts = gTTS(word)
|
52 |
main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
|
53 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|