deepgram.clients.speak

 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 .enums import SpeakWebSocketEvents, SpeakWebSocketMessage
 6
 7# rest
 8from .client import (
 9    SpeakClient,  # backward compat
10    SpeakRESTClient,
11    AsyncSpeakRESTClient,
12)
13from .client import (
14    #### top level
15    SpeakRESTOptions,
16    SpeakOptions,
17    # common
18    TextSource,
19    BufferSource,
20    StreamSource,
21    FileSource,
22    # unique
23    SpeakSource,
24    SpeakRestSource,
25    SpeakRESTSource,
26)
27from .client import (
28    SpeakResponse,  # backward compat
29    SpeakRESTResponse,
30)
31
32# websocket
33from .client import (
34    SpeakWSOptions,
35)
36from .client import (
37    SpeakWebSocketClient,
38    AsyncSpeakWebSocketClient,
39    SpeakWSClient,
40    AsyncSpeakWSClient,
41)
42from .client import (
43    #### top level
44    SpeakWSMetadataResponse,
45    FlushedResponse,
46    ClearedResponse,
47    WarningResponse,
48    #### shared
49    OpenResponse,
50    CloseResponse,
51    UnhandledResponse,
52    ErrorResponse,
53)