Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -51,6 +51,7 @@ def create_pronunciation_audio(word):
|
|
51 |
tts = gTTS(word)
|
52 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
53 |
tts.save(audio_file_path)
|
|
|
54 |
return audio_file_path # Return the file path of the saved audio
|
55 |
|
56 |
# Step 3: Compare the transcribed text with the input paragraph
|
|
|
51 |
tts = gTTS(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
|