bel32123 commited on
Commit
3f0393b
1 Parent(s): 593bbe8

Add utterance playback

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -158,7 +158,8 @@ def mispronounciation_detection_section():
158
  st.write('#### What is next?')
159
 
160
  # display pronounciation e.g.
161
- st.write("Here is a pronounced sample")
 
162
  pronounced_sample = pronounce(text)
163
  st.audio(pronounced_sample, format="audio/wav", start_time=0)
164
 
 
158
  st.write('#### What is next?')
159
 
160
  # display pronounciation e.g.
161
+ st.write("Compare your pronunciation to pronounced sample")
162
+ st.audio(f'audio_files/{uploaded_file.name}', format="audio/wav", start_time=0)
163
  pronounced_sample = pronounce(text)
164
  st.audio(pronounced_sample, format="audio/wav", start_time=0)
165