deepgram.clients.listen.enums

 1# Copyright 2023-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 LiveTranscriptionEvents(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    Transcript: str = "Results"
18    Metadata: str = "Metadata"
19    UtteranceEnd: str = "UtteranceEnd"
20    SpeechStarted: str = "SpeechStarted"
21    Finalize: str = "Finalize"
22    Error: str = "Error"
23    Unhandled: str = "Unhandled"
24    Warning: str = "Warning"
class LiveTranscriptionEvents(aenum._enum.StrEnum):
11class LiveTranscriptionEvents(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    Transcript: str = "Results"
19    Metadata: str = "Metadata"
20    UtteranceEnd: str = "UtteranceEnd"
21    SpeechStarted: str = "SpeechStarted"
22    Finalize: str = "Finalize"
23    Error: str = "Error"
24    Unhandled: str = "Unhandled"
25    Warning: str = "Warning"

Enumerates the possible events that can be received from the Deepgram API

Open: str = <LiveTranscriptionEvents.Open: 'Open'>
Close: str = <LiveTranscriptionEvents.Close: 'Close'>
Transcript: str = <LiveTranscriptionEvents.Transcript: 'Results'>
Metadata: str = <LiveTranscriptionEvents.Metadata: 'Metadata'>
UtteranceEnd: str = <LiveTranscriptionEvents.UtteranceEnd: 'UtteranceEnd'>
SpeechStarted: str = <LiveTranscriptionEvents.SpeechStarted: 'SpeechStarted'>
Finalize: str = <LiveTranscriptionEvents.Finalize: 'Finalize'>
Error: str = <LiveTranscriptionEvents.Error: 'Error'>
Unhandled: str = <LiveTranscriptionEvents.Unhandled: 'Unhandled'>
Warning: str = <LiveTranscriptionEvents.Warning: 'Warning'>