From 96eb400108321e31bcaa469c84a199555929c863 Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Thu, 9 Nov 2023 10:55:47 -0800 Subject: [PATCH 1/3] Restructure Python SDK v3 (Part 4) --- deepgram/types/transcription_options.py | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 deepgram/types/transcription_options.py diff --git a/deepgram/types/transcription_options.py b/deepgram/types/transcription_options.py new file mode 100644 index 00000000..06c9cbe8 --- /dev/null +++ b/deepgram/types/transcription_options.py @@ -0,0 +1,52 @@ +from typing import Union, List, TypedDict + +class PrerecordedOptions(TypedDict, total=False): + alternatives: int + callback: str + detect_entities: bool + detect_language: bool + detect_topics: bool + diarize: bool + keywords: Union[list, str] + language: str + model: str + multichannel: bool + numerals: bool + paragraphs: bool + profanity_filter: bool + punctuate: bool + redact: Union[List[str], bool, str] + replace: Union[list, str] + search: Union[list, str] + smart_format: bool + summarize: Union[bool, str] + tag: list + tier: str + utt_split: int + utterances: bool + version: str + + +class LiveOptions(TypedDict, total=False): + callback: str + channels: int + diarize: bool + encoding: str + endpointing: int + interim_results: bool + keywords: str + language: str + model: str + multichannel: bool + numerals: bool + punctuate: bool + profanity_filter: bool + redact: bool + replace: str + sample_rate: int + search: str + smart_format: bool + tag: list + tier: str + version: str + From e4d21a1ed2c5497695cf3d00735c21b57ef401d6 Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Thu, 9 Nov 2023 17:29:53 -0800 Subject: [PATCH 2/3] Restructure Python v3 (Part 4) --- deepgram/clients/abstract_restful_client.py | 1 - .../clients/prerecorded/prerecorded_client.py | 1 - deepgram/types/transcription_options.py | 52 ------------------- 3 files changed, 54 deletions(-) delete mode 100644 deepgram/types/transcription_options.py diff --git a/deepgram/clients/abstract_restful_client.py b/deepgram/clients/abstract_restful_client.py index 7f04bb4b..3fb30779 100644 --- a/deepgram/clients/abstract_restful_client.py +++ b/deepgram/clients/abstract_restful_client.py @@ -4,7 +4,6 @@ from ..errors import DeepgramApiError, DeepgramUnknownApiError, DeepgramUnknownError - class AbstractRestfulClient: """ An abstract base class for a RESTful HTTP client. diff --git a/deepgram/clients/prerecorded/prerecorded_client.py b/deepgram/clients/prerecorded/prerecorded_client.py index ea16dcd7..8f2e63b4 100644 --- a/deepgram/clients/prerecorded/prerecorded_client.py +++ b/deepgram/clients/prerecorded/prerecorded_client.py @@ -6,7 +6,6 @@ from .transcription_options import PrerecordedOptions from .prerecorded_response import AsyncPrerecordedResponse, SyncPrerecordedResponse - class PreRecordedClient(AbstractRestfulClient): """ A client class for handling pre-recorded audio data. Provides methods for transcribing audio from URLs and files. diff --git a/deepgram/types/transcription_options.py b/deepgram/types/transcription_options.py deleted file mode 100644 index 06c9cbe8..00000000 --- a/deepgram/types/transcription_options.py +++ /dev/null @@ -1,52 +0,0 @@ -from typing import Union, List, TypedDict - -class PrerecordedOptions(TypedDict, total=False): - alternatives: int - callback: str - detect_entities: bool - detect_language: bool - detect_topics: bool - diarize: bool - keywords: Union[list, str] - language: str - model: str - multichannel: bool - numerals: bool - paragraphs: bool - profanity_filter: bool - punctuate: bool - redact: Union[List[str], bool, str] - replace: Union[list, str] - search: Union[list, str] - smart_format: bool - summarize: Union[bool, str] - tag: list - tier: str - utt_split: int - utterances: bool - version: str - - -class LiveOptions(TypedDict, total=False): - callback: str - channels: int - diarize: bool - encoding: str - endpointing: int - interim_results: bool - keywords: str - language: str - model: str - multichannel: bool - numerals: bool - punctuate: bool - profanity_filter: bool - redact: bool - replace: str - sample_rate: int - search: str - smart_format: bool - tag: list - tier: str - version: str - From 4c80c526c358a4943896993013472185d0726b49 Mon Sep 17 00:00:00 2001 From: dvonthenen Date: Thu, 9 Nov 2023 17:38:33 -0800 Subject: [PATCH 3/3] Removes all __pycache__ Directories --- .env.example | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..5f10400b --- /dev/null +++ b/.env.example @@ -0,0 +1,8 @@ +DG_API_KEY="" +DG_API_KEY_MANAGE="" +DG_PROJECT_ID="85bb84f9-02d8-742a-df82-" +DG_API_KEY_ID="" +DG_MEMBER_ID="" +DG_REQUEST_ID="" +DG_BALANCE_ID="" +EMAIL="" \ No newline at end of file