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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user