mr2along commited on
Commit
10d7cf0
1 Parent(s): 1a15c77

Update app.py

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