camb-sdk 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of camb-sdk might be problematic. Click here for more details.
- {camb_sdk-1.0.0.dist-info → camb_sdk-1.0.1.dist-info}/METADATA +4 -4
- {camb_sdk-1.0.0.dist-info → camb_sdk-1.0.1.dist-info}/RECORD +6 -6
- cambai/api/apis_api.py +12 -9
- {camb_sdk-1.0.0.dist-info → camb_sdk-1.0.1.dist-info}/WHEEL +0 -0
- {camb_sdk-1.0.0.dist-info → camb_sdk-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {camb_sdk-1.0.0.dist-info → camb_sdk-1.0.1.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: camb-sdk
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.1
|
|
4
4
|
Summary: Camb AI Python SDK for Text-to-Speech, Voice Generation, and Audio APIs
|
|
5
5
|
Author-email: Camb AI <support@camb.ai>
|
|
6
6
|
License: MIT
|
|
@@ -18,9 +18,9 @@ Dynamic: license-file
|
|
|
18
18
|
|
|
19
19
|
# Camb AI Python SDK 🎙️
|
|
20
20
|
|
|
21
|
-
[](https://pypi.org/project/camb-sdk/)
|
|
22
|
+
[](https://github.com/Camb-ai/cambai-python-sdk/blob/master/LICENSE)
|
|
23
|
+
[](https://github.com/Camb-ai/cambai-python-sdk/actions/workflows/python.yml)
|
|
24
24
|
|
|
25
25
|
The official Python SDK for interacting with Camb AI's powerful voice and audio generation APIs. Create expressive speech, unique voices, and rich soundscapes with just a few lines of Python.
|
|
26
26
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
camb_sdk-1.0.
|
|
1
|
+
camb_sdk-1.0.1.dist-info/licenses/LICENSE,sha256=wVE3pAs9Te7Joa1AmJJ0JVd8CNgNmslblQaNgbozkiU,1063
|
|
2
2
|
cambai/__init__.py,sha256=IWEE0yN9dLLq-E1BCVkcOCypzw2XNXX5Ybvk6GAbqnE,7245
|
|
3
3
|
cambai/api_client.py,sha256=YZhog2TzYjTilrhh3QV_mzZU3zdXA1fQcFXOiEYUNVs,27660
|
|
4
4
|
cambai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
@@ -7,7 +7,7 @@ cambai/exceptions.py,sha256=upZXBQh1bx93N8JIPJh89j67pArS4oxcCmZ_cfdK2XU,6471
|
|
|
7
7
|
cambai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
cambai/rest.py,sha256=n3SSWXErpiSqlEvu6lEkTiJQLxjbrFkhZC1rF7biJJQ,9460
|
|
9
9
|
cambai/api/__init__.py,sha256=IndnP-ftH1sQhRfojuX4VOhQ33JSFfGYP6Ns6YZ0y6k,460
|
|
10
|
-
cambai/api/apis_api.py,sha256=
|
|
10
|
+
cambai/api/apis_api.py,sha256=gRaotyB2VQBYq-jMFEN4dvEAuEHxNb0dODU7Rc5TrBA,414232
|
|
11
11
|
cambai/api/audio_separation_api.py,sha256=sN9JsmRsQIk6cAvVY5v5J52oKUcRVxysXfFJ0gwXZTE,32210
|
|
12
12
|
cambai/api/dictionaries_api.py,sha256=2Sfhiy7hJg8_nyE2zj0jjaKhf4Ze2sWyYmmN1KDqYTU,10548
|
|
13
13
|
cambai/api/dub_api.py,sha256=iWh7VvFGpqXEvfbpLgdeIavVHXKz5q4prDRLUNSMJLQ,36856
|
|
@@ -58,7 +58,7 @@ cambai/models/validation_error.py,sha256=Usdc8EC3OVyDc3KnPaQk_t6CUMVHUVrHltlbJv9
|
|
|
58
58
|
cambai/models/validation_error_loc_inner.py,sha256=wHiW_qKw46E2pUdOnesgpdnuqpTX9IQTaEOVDgph5_E,4885
|
|
59
59
|
cambai/models/video_output_type_without_avi.py,sha256=DvyuKHAv7K-Y_RbO-y2TDI4R7qbsEs_SE_g4f0CpSOs,792
|
|
60
60
|
cambai/models/voice_item.py,sha256=V-7EmmVLFzISlu2xZVUfQuD-kOg-08DuGyePY7YyWK0,4070
|
|
61
|
-
camb_sdk-1.0.
|
|
62
|
-
camb_sdk-1.0.
|
|
63
|
-
camb_sdk-1.0.
|
|
64
|
-
camb_sdk-1.0.
|
|
61
|
+
camb_sdk-1.0.1.dist-info/METADATA,sha256=OvJ-wvxKmcqJsLuP3W138CdctGSBJRt0y99Dt8WWIgo,7751
|
|
62
|
+
camb_sdk-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
63
|
+
camb_sdk-1.0.1.dist-info/top_level.txt,sha256=iqT9vxFBtFsESik9PDn3hFfTRpAl_ULmIbRDX90XaY0,7
|
|
64
|
+
camb_sdk-1.0.1.dist-info/RECORD,,
|
cambai/api/apis_api.py
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
import os
|
|
14
14
|
import time
|
|
15
15
|
import warnings
|
|
16
|
+
import json
|
|
16
17
|
# Constants for API operations
|
|
17
18
|
TIMEOUT = 60
|
|
18
19
|
POLL_INTERVAL = 5
|
|
@@ -66,10 +67,9 @@ class CambAI:
|
|
|
66
67
|
def __init__(self, api_client=None, api_key: Optional[str] = None) -> None:
|
|
67
68
|
if api_client is None:
|
|
68
69
|
configuration = Configuration()
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
configuration.api_key['APIKeyHeader'] = os.environ.get("CAMB_API_KEY")
|
|
70
|
+
configuration.api_key['APIKeyHeader'] = api_key or os.environ.get("CAMB_API_KEY")
|
|
71
|
+
if configuration.api_key['APIKeyHeader'] is None:
|
|
72
|
+
raise ValueError("API key not provided. Please provide api_key or set CAMB_API_KEY environment variable.")
|
|
73
73
|
api_client = ApiClient(configuration=configuration)
|
|
74
74
|
self.api_client = api_client
|
|
75
75
|
|
|
@@ -437,7 +437,6 @@ class CambAI:
|
|
|
437
437
|
if verbose:
|
|
438
438
|
print(f"Processing complete! Run ID: {result.run_id}")
|
|
439
439
|
print("Retrieving dubbing result...")
|
|
440
|
-
|
|
441
440
|
response = self.get_dubbed_run_info_by_id(result.run_id)
|
|
442
441
|
return response
|
|
443
442
|
|
|
@@ -5087,10 +5086,14 @@ class CambAI:
|
|
|
5087
5086
|
_request_timeout=_request_timeout
|
|
5088
5087
|
)
|
|
5089
5088
|
response_data.read()
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5089
|
+
raw_data = json.loads(response_data.data.decode('utf-8'))
|
|
5090
|
+
|
|
5091
|
+
from cambai.models.run_info_response import RunInfoResponse
|
|
5092
|
+
return RunInfoResponse(
|
|
5093
|
+
output_video_url=raw_data.get('video_url'),
|
|
5094
|
+
output_audio_url=raw_data.get('audio_url'),
|
|
5095
|
+
transcript=raw_data.get('transcript')
|
|
5096
|
+
)
|
|
5094
5097
|
|
|
5095
5098
|
|
|
5096
5099
|
@validate_call
|
|
File without changes
|
|
File without changes
|
|
File without changes
|