mr2along commited on
Commit
6d6d02d
1 Parent(s): bb8ed3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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