Spaces:
Sleeping
Sleeping
Create LanguageBase
Browse files- LanguageBase +17 -0
LanguageBase
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class Language:
|
| 2 |
+
@abstractmethod
|
| 3 |
+
def __init__(self):
|
| 4 |
+
pass
|
| 5 |
+
|
| 6 |
+
@abstractmethod
|
| 7 |
+
def asr(self, audio):
|
| 8 |
+
pass
|
| 9 |
+
|
| 10 |
+
@abstractmethod
|
| 11 |
+
def compare(self, target_pron, user_pron):
|
| 12 |
+
pass
|
| 13 |
+
|
| 14 |
+
@property
|
| 15 |
+
@abstractmethod
|
| 16 |
+
def compare_colors(self):
|
| 17 |
+
pass
|