Skip to content

Commit 2862f0b

Browse files
Missing Exported Class Names
1 parent f294397 commit 2862f0b

File tree

29 files changed

+216
-118
lines changed

29 files changed

+216
-118
lines changed

deepgram/__init__.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@
4646
ErrorResponse,
4747
)
4848

49-
# live
49+
# speect-to-text WS
50+
from .client import LiveClient, AsyncLiveClient # backward compat
51+
from .client import ListenWebSocketClient, AsyncListenWebSocketClient
5052
from .client import LiveTranscriptionEvents
51-
from .client import LiveClient, AsyncLiveClient
52-
from .client import LiveOptions
53+
from .client import LiveOptions, ListenWebSocketOptions
5354
from .client import (
5455
# OpenResponse,
5556
LiveResultResponse,
@@ -62,11 +63,14 @@
6263
)
6364

6465
# prerecorded
65-
from .client import PreRecordedClient, AsyncPreRecordedClient
66+
from .client import PreRecordedClient, AsyncPreRecordedClient # backward compat
67+
from .client import ListenRESTClient, AsyncListenRESTClient
6668
from .client import (
69+
ListenRESTOptions,
6770
PrerecordedOptions,
6871
PreRecordedStreamSource,
6972
PrerecordedSource,
73+
ListenRestSource,
7074
)
7175
from .client import (
7276
AsyncPrerecordedResponse,
@@ -91,8 +95,10 @@
9195
# speak
9296
from .client import (
9397
SpeakOptions,
98+
SpeakRESTOptions,
99+
SpeakWebSocketOptions,
94100
# FileSource,
95-
SpeakWebSocketSource,
101+
SpeakRestSource,
96102
SpeakSource,
97103
)
98104
from .client import SpeakWebSocketEvents

deepgram/client.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,16 @@
3232
# listen client
3333
from .clients import Listen, Read, Speak
3434

35-
# live
36-
from .clients import LiveClient, AsyncLiveClient
35+
# speech-to-text
36+
from .clients import LiveClient, AsyncLiveClient # backward compat
3737
from .clients import (
38+
ListenRESTClient,
39+
AsyncListenRESTClient,
40+
ListenWebSocketClient,
41+
AsyncListenWebSocketClient,
42+
)
43+
from .clients import (
44+
ListenWebSocketOptions,
3845
LiveOptions,
3946
LiveTranscriptionEvents,
4047
)
@@ -57,9 +64,11 @@
5764
AsyncPreRecordedClient,
5865
)
5966
from .clients import (
67+
ListenRESTOptions,
6068
PrerecordedOptions,
6169
PreRecordedStreamSource,
6270
PrerecordedSource,
71+
ListenRestSource,
6372
)
6473

6574
# prerecorded client responses
@@ -88,8 +97,10 @@
8897
# speak
8998
from .clients import (
9099
SpeakOptions,
100+
SpeakRESTOptions,
101+
SpeakWebSocketOptions,
91102
# FileSource,
92-
SpeakWebSocketSource,
103+
SpeakRestSource,
93104
SpeakSource,
94105
)
95106
from .clients import SpeakWebSocketEvents

deepgram/clients/__init__.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,18 @@
3636
AsyncLiveClient,
3737
)
3838

39-
# rest
39+
# speech-to-text rest
40+
from .listen import ListenRESTClient, AsyncListenRESTClient
41+
4042
## input
4143
from .listen import (
44+
ListenRESTOptions,
4245
PrerecordedOptions,
4346
PreRecordedStreamSource,
4447
# UrlSource,
4548
# FileSource,
4649
PrerecordedSource,
50+
ListenRestSource,
4751
)
4852

4953
## output
@@ -54,9 +58,12 @@
5458
)
5559

5660

57-
# websocket
61+
# speech-to-text websocket
62+
from .listen import ListenWebSocketClient, AsyncListenWebSocketClient
63+
5864
## input
5965
from .listen import (
66+
ListenWebSocketOptions,
6067
LiveOptions,
6168
)
6269

@@ -93,18 +100,20 @@
93100
SyncAnalyzeResponse,
94101
)
95102

96-
# speak
103+
# text-to-speech
97104
## common
98105
from .speak import (
99106
SpeakOptions,
107+
SpeakRESTOptions,
108+
SpeakWebSocketOptions,
100109
# FileSource,
101-
SpeakWebSocketSource,
110+
SpeakRestSource,
102111
SpeakSource,
103112
)
104113

105114
from .speak import SpeakWebSocketEvents
106115

107-
## speak REST
116+
## text-to-speech REST
108117
from .speak import (
109118
SpeakClient, # backward compat
110119
SpeakRESTClient,
@@ -116,7 +125,7 @@
116125
SpeakRESTResponse,
117126
)
118127

119-
## speak WebSocket
128+
## text-to-speech WebSocket
120129
from .speak import (
121130
SpeakWebSocketClient,
122131
AsyncSpeakWebSocketClient,

deepgram/clients/listen/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
# rest
1717
## input
1818
from .client import (
19+
ListenRESTOptions,
1920
PrerecordedOptions,
2021
PreRecordedStreamSource,
2122
UrlSource,
2223
FileSource,
2324
PrerecordedSource,
25+
ListenRestSource,
2426
)
2527

2628
## output
@@ -34,6 +36,7 @@
3436
# websocket
3537
## input
3638
from .client import (
39+
ListenWebSocketOptions,
3740
LiveOptions,
3841
)
3942

@@ -51,6 +54,8 @@
5154

5255
# clients
5356
from .client import (
57+
ListenRESTClient,
58+
AsyncListenRESTClient,
5459
ListenWebSocketClient,
5560
AsyncListenWebSocketClient,
5661
)

deepgram/clients/listen/client.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@
1010
ListenRESTClient as ListenRESTClientLatest,
1111
AsyncListenRESTClient as AsyncListenRESTClientLatest,
1212
)
13-
from .v1 import PrerecordedOptions as PrerecordedOptionsLatest
13+
from .v1 import (
14+
PrerecordedOptions as PrerecordedOptionsLatest,
15+
ListenRESTOptions as ListenRESTOptionsLatest,
16+
)
1417

1518
from .v1 import (
1619
UrlSource as UrlSourceLatest,
1720
FileSource as FileSourceLatest,
1821
PreRecordedStreamSource as PreRecordedStreamSourceLatest,
1922
PrerecordedSource as PrerecordedSourceLatest,
23+
ListenRestSource as ListenRestSourceLatest,
2024
)
2125
from .v1 import (
2226
AsyncPrerecordedResponse as AsyncPrerecordedResponseLatest,
@@ -29,7 +33,10 @@
2933
ListenWebSocketClient as ListenWebSocketClientLatest,
3034
AsyncListenWebSocketClient as AsyncListenWebSocketClientLatest,
3135
)
32-
from .v1 import LiveOptions as LiveOptionsLatest, LiveOptions as SteamingOptionsLatest
36+
from .v1 import (
37+
LiveOptions as LiveOptionsLatest,
38+
ListenWebSocketOptions as ListenWebSocketOptionsLatest,
39+
)
3340
from .v1 import (
3441
OpenResponse as OpenResponseLatest,
3542
LiveResultResponse as LiveResultResponseLatest,
@@ -53,11 +60,13 @@
5360

5461
# rest
5562
## input
63+
ListenRESTOptions = ListenRESTOptionsLatest
5664
PrerecordedOptions = PrerecordedOptionsLatest
5765
PreRecordedStreamSource = PreRecordedStreamSourceLatest
5866
UrlSource = UrlSourceLatest
5967
FileSource = FileSourceLatest
6068
PrerecordedSource = PrerecordedSourceLatest
69+
ListenRestSource = ListenRestSourceLatest
6170

6271
## output
6372
AsyncPrerecordedResponse = AsyncPrerecordedResponseLatest
@@ -67,6 +76,7 @@
6776

6877
# websocket
6978
## input
79+
ListenWebSocketOptions = ListenWebSocketOptionsLatest
7080
LiveOptions = LiveOptionsLatest
7181

7282
## output
@@ -81,5 +91,7 @@
8191

8292

8393
# clients
94+
ListenRESTClient = ListenRESTClientLatest
95+
AsyncListenRESTClient = AsyncListenRESTClientLatest
8496
ListenWebSocketClient = ListenWebSocketClientLatest
8597
AsyncListenWebSocketClient = AsyncListenWebSocketClientLatest

deepgram/clients/listen/v1/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@
1616

1717
# rest
1818
from .rest import ListenRESTClient, AsyncListenRESTClient
19-
from .rest import PrerecordedOptions
19+
from .rest import ListenRESTOptions, PrerecordedOptions
2020
from .rest import (
2121
UrlSource,
2222
FileSource,
2323
PreRecordedStreamSource,
2424
PrerecordedSource,
25+
ListenRestSource,
2526
)
2627
from .rest import (
2728
AsyncPrerecordedResponse,
@@ -31,7 +32,7 @@
3132

3233
# websocket
3334
from .websocket import ListenWebSocketClient, AsyncListenWebSocketClient
34-
from .websocket import LiveOptions, LiveOptions as SteamingOptions
35+
from .websocket import LiveOptions, ListenWebSocketOptions
3536
from .websocket import (
3637
OpenResponse,
3738
LiveResultResponse,

deepgram/clients/listen/v1/rest/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
from .client import ListenRESTClient
66
from .async_client import AsyncListenRESTClient
77
from .options import (
8+
ListenRESTOptions,
89
PrerecordedOptions,
910
FileSource,
1011
UrlSource,
1112
PreRecordedStreamSource,
1213
PrerecordedSource,
14+
ListenRestSource,
1315
)
1416
from .response import (
1517
AsyncPrerecordedResponse,

0 commit comments

Comments
 (0)