File size: 518 Bytes
79b7942
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from pydantic import BaseModel


class SpeechAnalysisResponse(BaseModel):
    fluency_score: float
    pronunciation_score: float
    completeness_score: float
    accuracy_score: float
    grammar_score: float
    comprehension_score: float
    intonation_score: float
    pronunciation_feedback: str
    fluency_feedback: str
    accuracy_feedback: str
    grammar_feedback: str
    intonation_feedback: str
    comprehension_feedback: str
    grammar_errors: list
    mispronunced_words: list
    display_text: str