Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/palabra_ai/task/transcription.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from palabra_ai.task.io.base import Io

# from palabra_ai.task.realtime import Realtime
from palabra_ai.util.logger import debug, error
from palabra_ai.util.logger import debug, error, warning


@dataclass
Expand Down Expand Up @@ -69,6 +69,10 @@ async def _process_message(self, msg: Message):

callback = self._callbacks.get(msg.language.code)
if not callback:
warning(
f"No callback registered for language '{msg.language.code}'. "
f"Registered: {list(self._callbacks.keys())}"
)
return

# Call the callback
Expand Down