Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def create_pronunciation_audio(word):
|
|
52 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
53 |
tts.save(audio_file_path)
|
54 |
print(f"audio/{word}: {audio_file_path}")
|
55 |
-
return audio_file_path # Return the file path of the saved audio
|
56 |
|
57 |
# Step 3: Compare the transcribed text with the input paragraph
|
58 |
def compare_texts(reference_text, transcribed_text):
|
|
|
52 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
53 |
tts.save(audio_file_path)
|
54 |
print(f"audio/{word}: {audio_file_path}")
|
55 |
+
return f"https://mr2along-speech-recognize.hf.space/gradio_api/file=/tmp/gradio/5d60d2cd7d4e43b37a59c8cbb5f0c3e18ce1e30b9f6a80213c72628106c16553/{audio_file_path}" # Return the file path of the saved audio
|
56 |
|
57 |
# Step 3: Compare the transcribed text with the input paragraph
|
58 |
def compare_texts(reference_text, transcribed_text):
|