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 43cdf4a
Showing
5 changed files
with
117 additions
and
0 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 |
---|---|---|
@@ -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 | ||
|
||
from .listen import ListenClient | ||
from ..options import DeepgramClientOptions | ||
|
||
|
||
def listen(config: DeepgramClientOptions): | ||
return ListenClient(config) |
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,20 @@ | ||
# 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 ...options import DeepgramClientOptions | ||
|
||
|
||
def live_options(): | ||
return LiveOptions() | ||
|
||
|
||
def live(config: DeepgramClientOptions): | ||
return LiveClient(config) | ||
|
||
|
||
def asynclive(config: DeepgramClientOptions): | ||
return AsyncLiveClient(config) |
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,52 @@ | ||
# 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 | ||
|
||
|
||
def project_options(): | ||
return ProjectOptions() | ||
|
||
|
||
def key_options(): | ||
return KeyOptions() | ||
|
||
|
||
def scope_options(): | ||
return ScopeOptions() | ||
|
||
|
||
def invite_options(): | ||
return InviteOptions() | ||
|
||
|
||
def usage_request_options(): | ||
return UsageRequestOptions() | ||
|
||
|
||
def usage_summary_options(): | ||
return UsageSummaryOptions() | ||
|
||
|
||
def usage_fields_options(): | ||
return UsageFieldsOptions() | ||
|
||
|
||
def manage(config: DeepgramClientOptions): | ||
return ManageClient(config) | ||
|
||
|
||
def asyncmanage(config: DeepgramClientOptions): | ||
return AsyncManageClient(config) |
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,15 @@ | ||
# 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 | ||
|
||
|
||
def onprem(config: DeepgramClientOptions): | ||
return OnPremClient(config) | ||
|
||
|
||
def asynconprem(config: DeepgramClientOptions): | ||
return AsyncOnPremClient(config) |
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,20 @@ | ||
# 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 | ||
|
||
|
||
def prerecorded_options(): | ||
return PrerecordedOptions() | ||
|
||
|
||
def prerecorded(config: DeepgramClientOptions): | ||
return PreRecordedClient(config) | ||
|
||
|
||
def asyncprerecorded(config: DeepgramClientOptions): | ||
return AsyncPreRecordedClient(config) |