Spaces:
Sleeping
Sleeping
Oviya commited on
Commit ·
dfd949c
1
Parent(s): f397c12
update pronvideo
Browse files- pronvideo.py +9 -9
pronvideo.py
CHANGED
|
@@ -80,15 +80,15 @@ def transcribe_audio(audio_path: str) -> str:
|
|
| 80 |
# -----------------------------
|
| 81 |
def static_video_for(kind: str):
|
| 82 |
mapping = {
|
| 83 |
-
"success": {"videoId": "video-success", "videoUrl": "/assets/feedback/success.mp4", "hint": "Great job! Keep going."},
|
| 84 |
-
"silence": {"videoId": "video-silence", "videoUrl": "/assets/feedback/silence.mp4", "hint": "Speak clearly into the mic for at least a second."},
|
| 85 |
-
"wrong_word": {"videoId": "video-wrong-word", "videoUrl": "/assets/feedback/wrongword.mp4", "hint": "Please say only the target word."},
|
| 86 |
-
"vowel": {"videoId": "video-vowel", "videoUrl": "/assets/feedback/vowel.mp4", "hint": "Work on vowel shape and length."},
|
| 87 |
-
"consonant": {"videoId": "video-consonant", "videoUrl": "/assets/feedback/consonant.mp4", "hint": "Focus on consonant articulation, especially start/end sounds."},
|
| 88 |
-
"stress": {"videoId": "video-stress", "videoUrl": "/assets/feedback/stress.mp4", "hint": "Emphasize the primary stressed syllable."},
|
| 89 |
-
"syllable": {"videoId": "video-syllable", "videoUrl": "/assets/feedback/syllable.mp4", "hint": "Match the number of syllables and rhythm."},
|
| 90 |
-
"ending": {"videoId": "video-ending", "videoUrl": "/assets/feedback/ending.mp4", "hint": "Work on the final sound—try to finish the word cleanly."},
|
| 91 |
-
"multipleword": {"videoId": "video-multipleword", "videoUrl": "/assets/feedback/multipleword.mp4", "hint": "Please say only the target word, not multiple words."},
|
| 92 |
|
| 93 |
}
|
| 94 |
return mapping.get(kind, {"videoId": None, "videoUrl": None, "hint": None})
|
|
|
|
| 80 |
# -----------------------------
|
| 81 |
def static_video_for(kind: str):
|
| 82 |
mapping = {
|
| 83 |
+
"success": {"videoId": "video-success", "videoUrl": "/assets/pronvideo/feedback/success.mp4", "hint": "Great job! Keep going."},
|
| 84 |
+
"silence": {"videoId": "video-silence", "videoUrl": "/assets/pronvideo/feedback/silence.mp4", "hint": "Speak clearly into the mic for at least a second."},
|
| 85 |
+
"wrong_word": {"videoId": "video-wrong-word", "videoUrl": "/assets/pronvideo/feedback/wrongword.mp4", "hint": "Please say only the target word."},
|
| 86 |
+
"vowel": {"videoId": "video-vowel", "videoUrl": "/assets/pronvideo/feedback/vowel.mp4", "hint": "Work on vowel shape and length."},
|
| 87 |
+
"consonant": {"videoId": "video-consonant", "videoUrl": "/assets/pronvideo/feedback/consonant.mp4", "hint": "Focus on consonant articulation, especially start/end sounds."},
|
| 88 |
+
"stress": {"videoId": "video-stress", "videoUrl": "/assets/pronvideo/feedback/stress.mp4", "hint": "Emphasize the primary stressed syllable."},
|
| 89 |
+
"syllable": {"videoId": "video-syllable", "videoUrl": "/assets/pronvideo/feedback/syllable.mp4", "hint": "Match the number of syllables and rhythm."},
|
| 90 |
+
"ending": {"videoId": "video-ending", "videoUrl": "/assets/pronvideo/feedback/ending.mp4", "hint": "Work on the final sound—try to finish the word cleanly."},
|
| 91 |
+
"multipleword": {"videoId": "video-multipleword", "videoUrl": "/assets/pronvideo/feedback/multipleword.mp4", "hint": "Please say only the target word, not multiple words."},
|
| 92 |
|
| 93 |
}
|
| 94 |
return mapping.get(kind, {"videoId": None, "videoUrl": None, "hint": None})
|