Spaces:
Building
Building
Update stt_interface.py
Browse files- stt_interface.py +6 -2
stt_interface.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
"""
|
2 |
-
STT (Speech-to-Text) Interface
|
3 |
"""
|
4 |
-
|
5 |
from abc import ABC, abstractmethod
|
6 |
from typing import Optional, Dict, Any, AsyncIterator, List
|
7 |
from dataclasses import dataclass
|
@@ -73,4 +72,9 @@ class STTInterface(ABC):
|
|
73 |
@abstractmethod
|
74 |
def get_supported_languages(self) -> List[str]:
|
75 |
"""Get list of supported language codes"""
|
|
|
|
|
|
|
|
|
|
|
76 |
pass
|
|
|
1 |
"""
|
2 |
+
STT (Speech-to-Text) Interface for Flare
|
3 |
"""
|
|
|
4 |
from abc import ABC, abstractmethod
|
5 |
from typing import Optional, Dict, Any, AsyncIterator, List
|
6 |
from dataclasses import dataclass
|
|
|
72 |
@abstractmethod
|
73 |
def get_supported_languages(self) -> List[str]:
|
74 |
"""Get list of supported language codes"""
|
75 |
+
pass
|
76 |
+
|
77 |
+
@abstractmethod
|
78 |
+
def get_provider_name(self) -> str:
|
79 |
+
"""Get provider name for logging"""
|
80 |
pass
|