34 lines
1.2 KiB
C#
34 lines
1.2 KiB
C#
namespace DramaLing.Api.Models.DTOs;
|
|
|
|
public class PronunciationResult
|
|
{
|
|
public string AssessmentId { get; set; } = string.Empty;
|
|
public string FlashcardId { get; set; } = string.Empty;
|
|
public string ReferenceText { get; set; } = string.Empty;
|
|
public string TranscribedText { get; set; } = string.Empty;
|
|
|
|
public PronunciationScores Scores { get; set; } = new();
|
|
public List<WordLevelResult> WordLevelResults { get; set; } = new();
|
|
public List<string> Feedback { get; set; } = new();
|
|
|
|
public int ConfidenceLevel { get; set; }
|
|
public double ProcessingTime { get; set; }
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|
|
|
|
public class PronunciationScores
|
|
{
|
|
public double Overall { get; set; }
|
|
public double Accuracy { get; set; }
|
|
public double Fluency { get; set; }
|
|
public double Completeness { get; set; }
|
|
public double Prosody { get; set; }
|
|
}
|
|
|
|
public class WordLevelResult
|
|
{
|
|
public string Word { get; set; } = string.Empty;
|
|
public double AccuracyScore { get; set; }
|
|
public string ErrorType { get; set; } = string.Empty;
|
|
public string? Suggestion { get; set; }
|
|
} |