Commit Graph

2 Commits

Author SHA1 Message Date
鄭沛軒 7c766c133d feat: 完成語音錯誤處理改進和音頻數據恢復策略
- 增強音頻處理異常的錯誤分類和診斷
- 改善音頻處理錯誤訊息,提供具體解決建議
- 添加音頻數據恢復策略(靜音移除、音量正規化、最小長度保證)
- 完善資源清理機制,確保 AudioInputStream 正確釋放
- 實現詳細的音頻驗證和品質檢測

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-09 18:13:13 +08:00
鄭沛軒 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