Skip to content

Commit

Permalink
Missing Exported Class Names
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvonthenen committed Jul 9, 2024
1 parent f294397 commit c5aea05
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
8 changes: 5 additions & 3 deletions deepgram/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@
ErrorResponse,
)

# live
# speect-to-text WS
from .client import LiveClient, AsyncLiveClient # backward compat
from .client import ListenWebSocketClient, AsyncListenWebSocketClient
from .client import LiveTranscriptionEvents
from .client import LiveClient, AsyncLiveClient
from .client import LiveOptions
from .client import (
# OpenResponse,
Expand All @@ -62,7 +63,8 @@
)

# prerecorded
from .client import PreRecordedClient, AsyncPreRecordedClient
from .client import PreRecordedClient, AsyncPreRecordedClient # backward compat
from .client import ListenRESTClient, AsyncListenRESTClient
from .client import (
PrerecordedOptions,
PreRecordedStreamSource,
Expand Down
10 changes: 8 additions & 2 deletions deepgram/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@
# listen client
from .clients import Listen, Read, Speak

# live
from .clients import LiveClient, AsyncLiveClient
# speech-to-text
from .clients import LiveClient, AsyncLiveClient # backward compat
from .clients import (
ListenRESTClient,
AsyncListenRESTClient,
ListenWebSocketClient,
AsyncListenWebSocketClient,
)
from .clients import (
LiveOptions,
LiveTranscriptionEvents,
Expand Down
14 changes: 9 additions & 5 deletions deepgram/clients/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
AsyncLiveClient,
)

# rest
# speech-to-text rest
from .listen import ListenRESTClient, AsyncListenRESTClient

## input
from .listen import (
PrerecordedOptions,
Expand All @@ -54,7 +56,9 @@
)


# websocket
# speech-to-text websocket
from .listen import ListenWebSocketClient, AsyncListenWebSocketClient

## input
from .listen import (
LiveOptions,
Expand Down Expand Up @@ -93,7 +97,7 @@
SyncAnalyzeResponse,
)

# speak
# text-to-speech
## common
from .speak import (
SpeakOptions,
Expand All @@ -104,7 +108,7 @@

from .speak import SpeakWebSocketEvents

## speak REST
## text-to-speech REST
from .speak import (
SpeakClient, # backward compat
SpeakRESTClient,
Expand All @@ -116,7 +120,7 @@
SpeakRESTResponse,
)

## speak WebSocket
## text-to-speech WebSocket
from .speak import (
SpeakWebSocketClient,
AsyncSpeakWebSocketClient,
Expand Down
2 changes: 2 additions & 0 deletions deepgram/clients/listen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

# clients
from .client import (
ListenRESTClient,
AsyncListenRESTClient,
ListenWebSocketClient,
AsyncListenWebSocketClient,
)
2 changes: 2 additions & 0 deletions deepgram/clients/listen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,7 @@


# clients
ListenRESTClient = ListenRESTClientLatest
AsyncListenRESTClient = AsyncListenRESTClientLatest
ListenWebSocketClient = ListenWebSocketClientLatest
AsyncListenWebSocketClient = AsyncListenWebSocketClientLatest

0 comments on commit c5aea05

Please sign in to comment.