Skip to content

Exceptions

STTWebsocketConnectionError

Bases: AgentsException

Exception raised when the STT websocket connection fails.

Source code in src/agents/voice/exceptions.py
4
5
6
7
8
class STTWebsocketConnectionError(AgentsException):
    """Exception raised when the STT websocket connection fails."""

    def __init__(self, message: str):
        self.message = message