Phonembewertung speichern und anzeigen

Azure-Phonemwerte in Versuchen sichern, schwache Laute im Fortschritt und Flowise-Kontext auswerten und die Web-Anzeige ergänzen. README dokumentiert Datenfluss, Betrieb und Grenzen der Funktion.
This commit is contained in:
Eugenius Naumenko
2026-10-10 17:59:44 +00:00
parent bac840e091
commit 82d8768a99
13 changed files with 451 additions and 59 deletions
+24 -10
View File
@@ -49,11 +49,24 @@ type Exercise struct {
}
type WordScore struct {
Word string `json:"word"`
Accuracy float64 `json:"accuracy"`
ErrorType string `json:"error_type,omitempty"`
Phonemes []string `json:"phonemes,omitempty"`
Highlight string `json:"highlight"`
Word string `json:"word"`
Accuracy float64 `json:"accuracy"`
ErrorType string `json:"error_type,omitempty"`
Phonemes []string `json:"phonemes,omitempty"`
PhonemeScores []PhonemeScore `json:"phoneme_scores,omitempty"`
Highlight string `json:"highlight"`
}
type PhonemeScore struct {
Phoneme string `json:"phoneme"`
Accuracy float64 `json:"accuracy"`
Highlight string `json:"highlight"`
}
type WeakPhoneme struct {
Word string `json:"word"`
Phoneme string `json:"phoneme"`
Accuracy float64 `json:"accuracy"`
}
type PronunciationResult struct {
@@ -84,11 +97,12 @@ type Attempt struct {
}
type ProgressSummary struct {
TotalAttempts int `json:"total_attempts"`
AverageScore float64 `json:"average_score"`
WeakWords []WordScore `json:"weak_words"`
RecentAttempts []Attempt `json:"recent_attempts"`
DailyGoalMinutes int `json:"daily_goal_minutes"`
TotalAttempts int `json:"total_attempts"`
AverageScore float64 `json:"average_score"`
WeakWords []WordScore `json:"weak_words"`
WeakPhonemes []WeakPhoneme `json:"weak_phonemes"`
RecentAttempts []Attempt `json:"recent_attempts"`
DailyGoalMinutes int `json:"daily_goal_minutes"`
}
type GeneratedExerciseRequest struct {