diff --git a/frontend/app/learn/page.tsx b/frontend/app/learn/page.tsx index 36ecd86..4ab6f01 100644 --- a/frontend/app/learn/page.tsx +++ b/frontend/app/learn/page.tsx @@ -937,42 +937,12 @@ export default function LearnPage() { - {/* Example Image */} - {currentCard.exampleImage && ( -
-
- Example illustration setModalImage(currentCard.exampleImage)} - /> -
-
- )} - -

- 請看例句圖片並大聲說出完整的例句: -

- -
- {/* Example Sentence */} -
-

例句

-
-

"{currentCard.example}"

-
- -
-
-

"{currentCard.exampleTranslation}"

-
- -
- -
+
{ // 簡化處理:直接顯示結果 handleSpeakingAnswer(currentCard.example) @@ -981,21 +951,13 @@ export default function LearnPage() {
{showResult && ( -
-

- 錄音完成!系統正在評估你的發音... +

+

+ 錄音完成! +

+

+ 系統正在評估你的發音...

-
-

- 目標單字:{currentCard.word} -

-

- 發音:{currentCard.pronunciation} -

-
- -
-
)}
diff --git a/frontend/components/VoiceRecorder.tsx b/frontend/components/VoiceRecorder.tsx index 9c72d95..c90e26c 100644 --- a/frontend/components/VoiceRecorder.tsx +++ b/frontend/components/VoiceRecorder.tsx @@ -24,6 +24,7 @@ export interface VoiceRecorderProps { targetText: string; targetTranslation?: string; exampleImage?: string; + instructionText?: string; onScoreReceived?: (score: PronunciationScore) => void; onRecordingComplete?: (audioBlob: Blob) => void; maxDuration?: number; @@ -35,6 +36,7 @@ export default function VoiceRecorder({ targetText, targetTranslation, exampleImage, + instructionText, onScoreReceived, onRecordingComplete, maxDuration = 30, // 30 seconds default @@ -245,13 +247,23 @@ export default function VoiceRecorder({ {/* Example Image */} {exampleImage && (
- Example context -
點擊圖片可放大查看
+
+ Example context +
+
+ )} + + {/* Instruction Text */} + {instructionText && ( +
+

+ {instructionText} +

)}