deepgram.clients.common.v1.websocket_events
1# Copyright 2024 Deepgram SDK contributors. All Rights Reserved. 2# Use of this source code is governed by a MIT license that can be found in the LICENSE file. 3# SPDX-License-Identifier: MIT 4 5from aenum import StrEnum 6 7# Constants mapping to events from the Deepgram API 8 9 10class WebSocketEvents(StrEnum): 11 """ 12 Enumerates the possible events that can be received from the Deepgram API 13 """ 14 15 Open: str = "Open" 16 Close: str = "Close" 17 Warning: str = "Warning" 18 Error: str = "Error" 19 Unhandled: str = "Unhandled"
class
WebSocketEvents(aenum._enum.StrEnum):
11class WebSocketEvents(StrEnum): 12 """ 13 Enumerates the possible events that can be received from the Deepgram API 14 """ 15 16 Open: str = "Open" 17 Close: str = "Close" 18 Warning: str = "Warning" 19 Error: str = "Error" 20 Unhandled: str = "Unhandled"
Enumerates the possible events that can be received from the Deepgram API