generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e85f25
commit 2bfa612
Showing
20 changed files
with
182 additions
and
969 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
*.egg-info | ||
__pycache__ | ||
dist/ | ||
# general | ||
|
||
# environment artifacts | ||
.venv | ||
.env | ||
venv/ | ||
venv.bak/ | ||
.vscode/ | ||
|
||
# python artifacts | ||
__pycache__ | ||
*.egg-info | ||
dist/ | ||
|
||
# build | ||
build/ | ||
.vscode/ | ||
poetry.lock |
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,6 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .microphone import Microphone | ||
from .microphone import LOGGING, CHANNELS, RATE, CHUNK |
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,6 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .microphone import Microphone | ||
from .constants import LOGGING, CHANNELS, RATE, CHUNK |
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 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
import logging, verboselogs | ||
|
||
LOGGING = logging.WARNING | ||
CHANNELS = 1 | ||
RATE = 16000 | ||
CHUNK = 8194 |
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,35 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
# live | ||
from .live import LiveClient | ||
from .live import AsyncLiveClient | ||
from .live import LiveOptions | ||
from .live import LiveTranscriptionEvents | ||
from ..options import DeepgramClientOptions | ||
|
||
# prerecorded | ||
from .prerecorded import PreRecordedClient | ||
from .prerecorded import AsyncPreRecordedClient | ||
from .prerecorded import PrerecordedOptions | ||
from ..options import DeepgramClientOptions | ||
|
||
# onprem | ||
from .onprem import OnPremClient | ||
from .onprem import AsyncOnPremClient | ||
from ..options import DeepgramClientOptions | ||
|
||
# manage | ||
from .manage import ManageClient | ||
from .manage import AsyncManageClient | ||
from .manage import ( | ||
ProjectOptions, | ||
KeyOptions, | ||
ScopeOptions, | ||
InviteOptions, | ||
UsageRequestOptions, | ||
UsageSummaryOptions, | ||
UsageFieldsOptions, | ||
) | ||
from ..options import DeepgramClientOptions |
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,9 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .v1.client import LiveClient | ||
from .v1.async_client import AsyncLiveClient | ||
from .v1.options import LiveOptions | ||
from .enums import LiveTranscriptionEvents | ||
from ...options import DeepgramClientOptions |
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,8 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .client import LiveClient | ||
from .async_client import AsyncLiveClient | ||
from .options import LiveOptions | ||
from ....options import DeepgramClientOptions |
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,16 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .v1.client import ManageClient | ||
from .v1.async_client import AsyncManageClient | ||
from .v1.options import ( | ||
ProjectOptions, | ||
KeyOptions, | ||
ScopeOptions, | ||
InviteOptions, | ||
UsageRequestOptions, | ||
UsageSummaryOptions, | ||
UsageFieldsOptions, | ||
) | ||
from ...options import DeepgramClientOptions |
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,16 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .client import ManageClient | ||
from .async_client import AsyncManageClient | ||
from .options import ( | ||
ProjectOptions, | ||
KeyOptions, | ||
ScopeOptions, | ||
InviteOptions, | ||
UsageRequestOptions, | ||
UsageSummaryOptions, | ||
UsageFieldsOptions, | ||
) | ||
from ....options import DeepgramClientOptions |
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,7 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .v1.client import OnPremClient | ||
from .v1.async_client import AsyncOnPremClient | ||
from ...options import DeepgramClientOptions |
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,7 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .client import OnPremClient | ||
from .async_client import AsyncOnPremClient | ||
from ....options import DeepgramClientOptions |
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,8 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .v1.client import PreRecordedClient | ||
from .v1.async_client import AsyncPreRecordedClient | ||
from .v1.options import PrerecordedOptions | ||
from ...options import DeepgramClientOptions |
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,8 @@ | ||
# Copyright 2023 Deepgram SDK contributors. All Rights Reserved. | ||
# Use of this source code is governed by a MIT license that can be found in the LICENSE file. | ||
# SPDX-License-Identifier: MIT | ||
|
||
from .client import PreRecordedClient | ||
from .async_client import AsyncPreRecordedClient | ||
from .options import PrerecordedOptions | ||
from ....options import DeepgramClientOptions |
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,7 @@ | ||
# pip install -r requirements-examples.txt | ||
|
||
# general | ||
python-dotenv | ||
|
||
# streaming libs | ||
pyaudio |
Oops, something went wrong.