Spaces:
Running on Zero
Running on Zero
File size: 533 Bytes
88fe4e7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | class STTEngine:
"""Abstract interface for Speech-to-Text."""
def load(self):
"""Initialize the STT model/provider."""
pass
def transcribe(self, audio_file: str) -> str:
"""Transcribe an audio file into text."""
return ""
class MockSTT(STTEngine):
"""Fallback mock STT since we are focusing on UI/Vision first."""
def transcribe(self, audio_file: str) -> str:
return "describe the scene"
# Future integration with faster-whisper goes here.
|