Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def create_pronunciation_audio(word):
|
|
50 |
tts = gTTS(word)
|
51 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
52 |
tts.save(audio_file_path)
|
53 |
-
print(f"audio/{word}: {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
|
|
|
50 |
tts = gTTS(word)
|
51 |
audio_file_path = f"audio/{word}.mp3" # Save the audio to a file
|
52 |
tts.save(audio_file_path)
|
53 |
+
print(f"audio/{word}: {(os.path.abspath(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
|