Spaces:
Runtime error
Runtime error
Add utterance playback
Browse files
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("
|
|
|
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 |
|