Commit Graph

2 Commits

Author SHA1 Message Date
鄭沛軒 9bebe78740 feat: 完整實現 Azure Speech Services 例句口說練習功能
🎤 Azure Speech Services 整合:
- 安裝 Microsoft.CognitiveServices.Speech v1.38.0
- 實現 IPronunciationAssessmentService 和 AzurePronunciationAssessmentService
- 創建 SpeechController API 端點 (/api/speech/pronunciation-assessment)
- 更新 PronunciationAssessment 資料庫實體和 Migration
- 完整的多維度評分系統 (準確度/流暢度/完整度/韻律)

🖥️ 前端例句口說練習:
- 實現 AudioRecorder 共用組件 (Web Audio API 錄音)
- 創建 speechAssessmentService.ts API 客戶端
- 完整的 SentenceSpeakingQuiz 組件含錄音/評分/結果顯示
- 擴展複習系統支援第3種題目類型 (sentence-speaking)

🔧 系統修復和優化:
- 修復 FlashcardReviewRepository Include 關聯查詢問題
- 修復 ReviewService 圖片 URL 處理邏輯
- 更新 appsettings.json Azure Speech 配置
- 修復 Swagger 文檔生成問題
- 完善依賴注入和服務註冊

📱 用戶體驗:
- 響應式錄音 UI 含進度條和計時
- 智能評分結果展示和改善建議
- 完整的錯誤處理和狀態管理
- 圖片輔助的語境理解

現在 DramaLing 具備完整的 AI 驅動三合一學習系統:
翻卡記憶 → 詞彙選擇 → 例句口說練習 🎉

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 02:45:11 +08:00
鄭沛軒 6b66c56adc refactor: 移除冗餘接口文件,簡化架構並重新組織測試結構
- 刪除重複的接口定義文件,採用具體實現類
- 重新組織測試項目結構,建立 Unit 測試分類
- 新增 Contracts 目錄統一管理資料契約
- 更新服務注入配置,簡化依賴關係
- 修復相關控制器和服務的類型引用

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-07 23:45:25 +08:00