| |
| |
| |
|
|
| |
| __version__ = "0.0.0" |
|
|
| |
| import logging |
| from .utils import VerboseLogger |
| from .utils import ( |
| NOTICE, |
| SPAM, |
| SUCCESS, |
| VERBOSE, |
| WARNING, |
| ERROR, |
| FATAL, |
| CRITICAL, |
| INFO, |
| DEBUG, |
| NOTSET, |
| ) |
|
|
| from .client import Deepgram, DeepgramClient |
| from .client import DeepgramClientOptions, ClientOptionsFromEnv |
| from .client import ( |
| DeepgramError, |
| DeepgramTypeError, |
| DeepgramModuleError, |
| DeepgramApiError, |
| DeepgramUnknownApiError, |
| ) |
| from .errors import DeepgramApiKeyError |
|
|
| |
| from .client import ListenRouter, ReadRouter, SpeakRouter, AgentRouter |
|
|
| |
| from .client import ( |
| TextSource, |
| BufferSource, |
| StreamSource, |
| FileSource, |
| UrlSource, |
| ) |
| from .client import BaseResponse |
| from .client import ( |
| Average, |
| Intent, |
| Intents, |
| IntentsInfo, |
| Segment, |
| SentimentInfo, |
| Sentiment, |
| Sentiments, |
| SummaryInfo, |
| Topic, |
| Topics, |
| TopicsInfo, |
| ) |
| from .client import ( |
| ModelInfo, |
| Hit, |
| Search, |
| ) |
| from .client import ( |
| OpenResponse, |
| CloseResponse, |
| UnhandledResponse, |
| ErrorResponse, |
| ) |
|
|
| |
| from .client import LiveClient, AsyncLiveClient |
| from .client import ListenWebSocketClient, AsyncListenWebSocketClient |
| from .client import LiveTranscriptionEvents |
| from .client import LiveOptions, ListenWebSocketOptions |
| from .client import ( |
| |
| LiveResultResponse, |
| ListenWSMetadataResponse, |
| SpeechStartedResponse, |
| UtteranceEndResponse, |
| |
| |
| |
| |
| |
| |
| ListenWSMetadata, |
| ListenWSAlternative, |
| ListenWSChannel, |
| ListenWSWord, |
| ) |
|
|
| |
| from .client import PreRecordedClient, AsyncPreRecordedClient |
| from .client import ListenRESTClient, AsyncListenRESTClient |
| from .client import ( |
| |
| |
| |
| |
| |
| |
| |
| PreRecordedStreamSource, |
| PrerecordedSource, |
| ListenRestSource, |
| SpeakRESTSource, |
| ) |
| from .client import ( |
| ListenRESTOptions, |
| PrerecordedOptions, |
| ) |
| from .client import ( |
| |
| AsyncPrerecordedResponse, |
| PrerecordedResponse, |
| SyncPrerecordedResponse, |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Entity, |
| Hit, |
| ListenRESTMetadata, |
| ModelInfo, |
| Paragraph, |
| Paragraphs, |
| ListenRESTResults, |
| Search, |
| Sentence, |
| Summaries, |
| SummaryV1, |
| SummaryV2, |
| Translation, |
| Utterance, |
| Warning, |
| ListenRESTAlternative, |
| ListenRESTChannel, |
| ListenRESTWord, |
| ) |
|
|
| |
| from .client import ReadClient, AsyncReadClient |
| from .client import AnalyzeClient, AsyncAnalyzeClient |
| from .client import ( |
| AnalyzeOptions, |
| AnalyzeStreamSource, |
| AnalyzeSource, |
| ) |
| from .client import ( |
| |
| AsyncAnalyzeResponse, |
| SyncAnalyzeResponse, |
| AnalyzeResponse, |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| AnalyzeMetadata, |
| AnalyzeResults, |
| AnalyzeSummary, |
| ) |
|
|
| |
| |
| from .client import ( |
| |
| SpeakRESTOptions, |
| SpeakOptions, |
| |
| |
| |
| |
| |
| |
| SpeakSource, |
| SpeakRestSource, |
| ) |
|
|
| from .client import ( |
| SpeakClient, |
| SpeakRESTClient, |
| AsyncSpeakRESTClient, |
| ) |
|
|
| from .client import ( |
| SpeakResponse, |
| SpeakRESTResponse, |
| ) |
|
|
| |
| from .client import SpeakWebSocketEvents, SpeakWebSocketMessage |
|
|
| from .client import ( |
| SpeakWSOptions, |
| ) |
|
|
| from .client import ( |
| SpeakWebSocketClient, |
| AsyncSpeakWebSocketClient, |
| SpeakWSClient, |
| AsyncSpeakWSClient, |
| ) |
|
|
| from .client import ( |
| |
| SpeakWSMetadataResponse, |
| FlushedResponse, |
| ClearedResponse, |
| WarningResponse, |
| |
| |
| |
| |
| |
| ) |
|
|
| |
| from .client import ManageClient, AsyncManageClient |
| from .client import ( |
| ProjectOptions, |
| KeyOptions, |
| ScopeOptions, |
| InviteOptions, |
| UsageRequestOptions, |
| UsageSummaryOptions, |
| UsageFieldsOptions, |
| ) |
|
|
| |
| from .client import ( |
| |
| Message, |
| ProjectsResponse, |
| ModelResponse, |
| ModelsResponse, |
| MembersResponse, |
| KeyResponse, |
| KeysResponse, |
| ScopesResponse, |
| InvitesResponse, |
| UsageRequest, |
| UsageResponse, |
| UsageRequestsResponse, |
| UsageSummaryResponse, |
| UsageFieldsResponse, |
| BalancesResponse, |
| |
| Project, |
| STTDetails, |
| TTSMetadata, |
| TTSDetails, |
| Member, |
| Key, |
| Invite, |
| Config, |
| STTUsageDetails, |
| Callback, |
| TokenDetail, |
| SpeechSegment, |
| TTSUsageDetails, |
| STTTokens, |
| TTSTokens, |
| UsageSummaryResults, |
| Resolution, |
| UsageModel, |
| Balance, |
| ) |
|
|
| |
| from .client import ( |
| OnPremClient, |
| AsyncOnPremClient, |
| SelfHostedClient, |
| AsyncSelfHostedClient, |
| ) |
|
|
|
|
| |
| from .client import AgentWebSocketEvents |
|
|
| |
| from .client import ( |
| AgentWebSocketClient, |
| AsyncAgentWebSocketClient, |
| ) |
|
|
| from .client import ( |
| |
| |
| |
| |
| |
| |
| WelcomeResponse, |
| SettingsAppliedResponse, |
| ConversationTextResponse, |
| UserStartedSpeakingResponse, |
| AgentThinkingResponse, |
| FunctionCallRequest, |
| AgentStartedSpeakingResponse, |
| AgentAudioDoneResponse, |
| InjectionRefusedResponse, |
| ) |
|
|
| from .client import ( |
| |
| SettingsOptions, |
| UpdatePromptOptions, |
| UpdateSpeakOptions, |
| InjectAgentMessageOptions, |
| FunctionCallResponse, |
| AgentKeepAlive, |
| |
| Listen, |
| ListenProvider, |
| Speak, |
| SpeakProvider, |
| Header, |
| Item, |
| Properties, |
| Parameters, |
| Function, |
| Think, |
| ThinkProvider, |
| Agent, |
| Input, |
| Output, |
| Audio, |
| Endpoint, |
| ) |
|
|
| |
| |
| from .audio import Microphone, DeepgramMicrophoneError |
| from .audio import ( |
| INPUT_LOGGING, |
| INPUT_CHANNELS, |
| INPUT_RATE, |
| INPUT_CHUNK, |
| ) |
|
|
| LOGGING = INPUT_LOGGING |
| CHANNELS = INPUT_CHANNELS |
| RATE = INPUT_RATE |
| CHUNK = INPUT_CHUNK |
|
|
| from .audio import Speaker |
| from .audio import ( |
| OUTPUT_LOGGING, |
| OUTPUT_CHANNELS, |
| OUTPUT_RATE, |
| OUTPUT_CHUNK, |
| ) |
|
|
| |
|
|