generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from dvonthenen/restructure-project-part3
Restructure Python v3 (Part 3) - Separation of Concerns
- Loading branch information
Showing
19 changed files
with
69 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
deepgram/clients/listen_client.py → deepgram/clients/listen.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
deepgram/clients/live_client.py → deepgram/clients/live/live_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from typing import Union, List, TypedDict | ||
|
||
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 | ||
|
4 changes: 2 additions & 2 deletions
4
deepgram/clients/manage_client.py → deepgram/clients/manage/manage_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
deepgram/clients/onprem_client.py → deepgram/clients/onprem/onprem_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from .prerecorded_source import PrerecordedSource | ||
|
||
def is_buffer_source(provided_source: PrerecordedSource) -> bool: | ||
return "buffer" in provided_source | ||
|
||
def is_readstream_source(provided_source: PrerecordedSource) -> bool: | ||
return "stream" in provided_source | ||
|
||
def is_url_source(provided_source: PrerecordedSource) -> bool: | ||
return "url" in provided_source |
14 changes: 7 additions & 7 deletions
14
deepgram/clients/prerecorded_client.py → ...clients/prerecorded/prerecorded_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters