Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def create_pronunciation_audio(word):
|
|
84 |
main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
|
85 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
86 |
tts.save(audio_file_path)
|
87 |
-
print(f"audio/{word}: {
|
88 |
return f"{main_url}{filePath}/{audio_file_path}" # Return the file path of the saved audio
|
89 |
|
90 |
# Step 3: Compare the transcribed text with the input paragraph
|
|
|
84 |
main_url="https://mr2along-speech-recognize.hf.space/gradio_api/file="
|
85 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
86 |
tts.save(audio_file_path)
|
87 |
+
print(f"audio/{word}: {main_url}{filePath}/{audio_file_path}")
|
88 |
return f"{main_url}{filePath}/{audio_file_path}" # Return the file path of the saved audio
|
89 |
|
90 |
# Step 3: Compare the transcribed text with the input paragraph
|