camb-sdk 1.0.0__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/METADATA +266 -0
- camb_sdk-1.0.0.dist-info/RECORD +64 -0
- camb_sdk-1.0.0.dist-info/WHEEL +5 -0
- camb_sdk-1.0.0.dist-info/licenses/LICENSE +21 -0
- camb_sdk-1.0.0.dist-info/top_level.txt +1 -0
- cambai/__init__.py +145 -0
- cambai/api/__init__.py +12 -0
- cambai/api/apis_api.py +10291 -0
- cambai/api/audio_separation_api.py +837 -0
- cambai/api/dictionaries_api.py +286 -0
- cambai/api/dub_api.py +906 -0
- cambai/api/stories_api.py +1511 -0
- cambai/api/text_to_audio_api.py +835 -0
- cambai/api/text_to_speech_api.py +574 -0
- cambai/api/text_to_voice_api.py +840 -0
- cambai/api_client.py +801 -0
- cambai/api_response.py +21 -0
- cambai/configuration.py +603 -0
- cambai/exceptions.py +216 -0
- cambai/models/__init__.py +58 -0
- cambai/models/audio_output_file_url_response.py +87 -0
- cambai/models/audio_output_type.py +39 -0
- cambai/models/audio_separation_run_info_response.py +89 -0
- cambai/models/body_translate_translate_post.py +103 -0
- cambai/models/create_api_key_request_payload.py +89 -0
- cambai/models/create_custom_voice_out.py +87 -0
- cambai/models/create_text_to_audio_request_payload.py +89 -0
- cambai/models/create_text_to_voice_request_payload.py +89 -0
- cambai/models/create_translated_story_request_payload.py +88 -0
- cambai/models/create_translated_tts_request_payload.py +120 -0
- cambai/models/create_translation_stream_request_payload.py +108 -0
- cambai/models/create_tts_request_payload.py +102 -0
- cambai/models/create_tts_stream_request_payload.py +100 -0
- cambai/models/dialogue_item.py +93 -0
- cambai/models/dictionary.py +96 -0
- cambai/models/dub_alt_format_response_body.py +92 -0
- cambai/models/dubbed_output_in_alt_format_request_payload.py +91 -0
- cambai/models/end_to_end_dubbing_request_payload.py +99 -0
- cambai/models/expire_api_key_request_payload.py +87 -0
- cambai/models/formalities.py +37 -0
- cambai/models/gender.py +39 -0
- cambai/models/http_validation_error.py +95 -0
- cambai/models/language_item.py +91 -0
- cambai/models/languages.py +183 -0
- cambai/models/orchestrator_pipeline_result.py +95 -0
- cambai/models/output_api_key.py +105 -0
- cambai/models/output_format.py +134 -0
- cambai/models/output_type.py +37 -0
- cambai/models/request_dubbed_output_in_alt_format200_response.py +137 -0
- cambai/models/run_info_response.py +101 -0
- cambai/models/story_run_info_response.py +99 -0
- cambai/models/task_id.py +87 -0
- cambai/models/task_status.py +40 -0
- cambai/models/text_to_voice_run_info_response.py +87 -0
- cambai/models/transcript_data_type.py +37 -0
- cambai/models/transcript_file_format.py +38 -0
- cambai/models/translation_result.py +87 -0
- cambai/models/tts_stream_output_format.py +40 -0
- cambai/models/validation_error.py +99 -0
- cambai/models/validation_error_loc_inner.py +138 -0
- cambai/models/video_output_type_without_avi.py +38 -0
- cambai/models/voice_item.py +102 -0
- cambai/py.typed +0 -0
- cambai/rest.py +258 -0
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: camb-sdk
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Camb AI Python SDK for Text-to-Speech, Voice Generation, and Audio APIs
|
|
5
|
+
Author-email: Camb AI <support@camb.ai>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Repository, https://github.com/Camb-ai/cambai-python-sdk
|
|
8
|
+
Project-URL: Documentation, https://docs.camb.ai
|
|
9
|
+
Keywords: AI,Dubbing,Text-to-Speech,Voice,Audio,SDK
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Requires-Dist: urllib3<3.0.0,>=2.1.0
|
|
14
|
+
Requires-Dist: python-dateutil>=2.8.2
|
|
15
|
+
Requires-Dist: pydantic>=2
|
|
16
|
+
Requires-Dist: typing-extensions>=4.7.1
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# Camb AI Python SDK 🎙️
|
|
20
|
+
|
|
21
|
+
[](https://pypi.org/project/camb-ai-sdk/)
|
|
22
|
+
[](https://github.com/your-org/camb-ai-python-sdk/blob/main/LICENSE)
|
|
23
|
+
[](https://github.com/your-org/camb-ai-python-sdk/actions)
|
|
24
|
+
|
|
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
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## ✨ Features
|
|
30
|
+
- **Dubbing**: Dub your videos into multiple languages with voice cloning!
|
|
31
|
+
- **Expressive Text-to-Speech**: Convert text into natural-sounding speech using a wide range of pre-existing voices.
|
|
32
|
+
- **Generative Voices**: Create entirely new, unique voices from text prompts and descriptions.
|
|
33
|
+
- **Soundscapes from Text**: Generate ambient audio and sound effects from textual descriptions.
|
|
34
|
+
- Access to voice cloning, translation, and more (refer to full API documentation).
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 📦 Installation
|
|
39
|
+
|
|
40
|
+
Install the SDK using pip, ensure **Python 3.9+**:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install camb-sdk
|
|
44
|
+
````
|
|
45
|
+
|
|
46
|
+
Or through
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pip install git+https://github.com/Camb-ai/cambai-python-sdk
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## 🔑 Authentication
|
|
55
|
+
|
|
56
|
+
To use the Camb AI SDK, you'll need an API key. You can authenticate in either of the following ways:
|
|
57
|
+
|
|
58
|
+
### 1. Pass the API key directly
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from cambai import CambAI
|
|
62
|
+
|
|
63
|
+
client = CambAI(api_key="YOUR_CAMB_API_KEY")
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### 2. Use an environment variable
|
|
67
|
+
Set your API key as an environment variable named `CAMB_API_KEY`:
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
export CAMB_API_KEY="your_actual_api_key_here"
|
|
71
|
+
```
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 🚀 Getting Started: Examples
|
|
75
|
+
|
|
76
|
+
### 1. Text-to-Speech (TTS)
|
|
77
|
+
|
|
78
|
+
Convert text into spoken audio using one of Camb AI's high-quality voices.
|
|
79
|
+
|
|
80
|
+
#### a) Get an Audio URL
|
|
81
|
+
|
|
82
|
+
This is useful if you want to play the audio in a web application or share a link.
|
|
83
|
+
|
|
84
|
+
```python
|
|
85
|
+
from cambai import CambAI
|
|
86
|
+
from cambai.rest import ApiException
|
|
87
|
+
|
|
88
|
+
# Initialize client (ensure API key is set)
|
|
89
|
+
client = CambAI(api_key="YOUR_CAMB_API_KEY")
|
|
90
|
+
|
|
91
|
+
try:
|
|
92
|
+
print("Generating speech and getting audio URL...")
|
|
93
|
+
audio_url = client.text_to_speech(
|
|
94
|
+
text="Hello from Camb AI! This is a test of our Text-to-Speech API.",
|
|
95
|
+
voice_id=20303 # Example voice ID, find more with client.list_voices()
|
|
96
|
+
)
|
|
97
|
+
print(f"Success! Your audio is ready at: {audio_url}")
|
|
98
|
+
|
|
99
|
+
except ApiException as e:
|
|
100
|
+
print(f"API Exception when calling text_to_speech: {e}\n")
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
#### b) Save Audio Directly to a File
|
|
104
|
+
|
|
105
|
+
Generate speech and save it as an MP3 file (or other supported formats).
|
|
106
|
+
|
|
107
|
+
```python
|
|
108
|
+
from cambai import CambAI
|
|
109
|
+
from cambai.models.output_type import OutputType
|
|
110
|
+
from cambai.rest import ApiException
|
|
111
|
+
|
|
112
|
+
# Initialize client
|
|
113
|
+
client = CambAI(api_key="YOUR_CAMB_API_KEY")
|
|
114
|
+
|
|
115
|
+
file_path = "my_generated_speech.mp3"
|
|
116
|
+
|
|
117
|
+
try:
|
|
118
|
+
print(f"Generating speech and saving to {file_path}...")
|
|
119
|
+
|
|
120
|
+
client.text_to_speech(
|
|
121
|
+
text="This is another test, saving directly to a file.",
|
|
122
|
+
voice_id=20303, # Example voice ID
|
|
123
|
+
output_type=OutputType.RAW_BYTES, # Specify raw bytes for direct saving
|
|
124
|
+
save_to_file=file_path,
|
|
125
|
+
verbose=True # For more detailed logging from the SDK
|
|
126
|
+
)
|
|
127
|
+
print(f"Success! Audio saved to {file_path}")
|
|
128
|
+
|
|
129
|
+
except ApiException as e:
|
|
130
|
+
print(f"API Exception when calling text_to_speech (save to file): {e}\n")
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
#### c) List Available Voices
|
|
134
|
+
|
|
135
|
+
You can list available voices to find a `voice_id` that suits your needs:
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
try:
|
|
139
|
+
voices = client.list_voices()
|
|
140
|
+
print(f"Found {len(voices)} voices:")
|
|
141
|
+
for voice in voices[:5]: # Print first 5 as an example
|
|
142
|
+
print(f" - ID: {voice.id}, Name: {voice.voice_name}, Gender: {voice.gender}, Language: {voice.language}")
|
|
143
|
+
except ApiException as e:
|
|
144
|
+
print(f"Could not list voices: {e}")
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
### 2. Text-to-Voice (Generative Voice)
|
|
150
|
+
|
|
151
|
+
Create completely new and unique voices from a textual description of the desired voice characteristics.
|
|
152
|
+
|
|
153
|
+
```python
|
|
154
|
+
from cambai import CambAI
|
|
155
|
+
from cambai.rest import ApiException
|
|
156
|
+
|
|
157
|
+
# Initialize client
|
|
158
|
+
client = CambAI(api_key="YOUR_CAMB_API_KEY")
|
|
159
|
+
|
|
160
|
+
output_file = "generated_voice_output.mp3"
|
|
161
|
+
|
|
162
|
+
try:
|
|
163
|
+
print("Generating a new voice and speech...")
|
|
164
|
+
# The 'text_to_voice' method returns a dict consisting of 3 sample URLs
|
|
165
|
+
result = client.text_to_voice(
|
|
166
|
+
text="Crafting a unique voice with a hint of mystery and warmth.",
|
|
167
|
+
voice_description="A smooth, baritone voice with a slight echo, perfect for storytelling.",
|
|
168
|
+
verbose=True
|
|
169
|
+
)
|
|
170
|
+
print(result)
|
|
171
|
+
|
|
172
|
+
except ApiException as e:
|
|
173
|
+
print(f"API Exception when calling text_to_voice: {e}\n")
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
### 3. Text-to-Audio (Sound Generation)
|
|
178
|
+
|
|
179
|
+
Generate sound effects or ambient audio from a descriptive prompt.
|
|
180
|
+
|
|
181
|
+
```python
|
|
182
|
+
from cambai import CambAI
|
|
183
|
+
from cambai.rest import ApiException
|
|
184
|
+
|
|
185
|
+
# Initialize client
|
|
186
|
+
client = CambAI(api_key="YOUR_CAMB_API_KEY")
|
|
187
|
+
|
|
188
|
+
output_file = "generated_sound_effect.mp3"
|
|
189
|
+
|
|
190
|
+
try:
|
|
191
|
+
print(f"Generating sound effect and saving to {output_file}...")
|
|
192
|
+
|
|
193
|
+
client.text_to_audio(
|
|
194
|
+
prompt="A gentle breeze rustling through autumn leaves in a quiet forest.",
|
|
195
|
+
duration=10,
|
|
196
|
+
save_to_file=output_file,
|
|
197
|
+
verbose=True
|
|
198
|
+
)
|
|
199
|
+
print(f"Success! Sound effect saved to {output_file}")
|
|
200
|
+
|
|
201
|
+
except ApiException as e:
|
|
202
|
+
print(f"API Exception when calling text_to_audio: {e}\n")
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
---
|
|
206
|
+
### 4. End-to-End Dubbing
|
|
207
|
+
|
|
208
|
+
Dub videos into different languages with voice cloning and translation capabilities.
|
|
209
|
+
|
|
210
|
+
```python
|
|
211
|
+
from cambai import CambAI
|
|
212
|
+
from cambai.rest import ApiException
|
|
213
|
+
|
|
214
|
+
# Initialize client
|
|
215
|
+
client = CambAI(api_key="YOUR_CAMB_API_KEY")
|
|
216
|
+
|
|
217
|
+
# Call all target languages
|
|
218
|
+
print("Listing target languages...")
|
|
219
|
+
target_languages = clinet.get_target_languages()
|
|
220
|
+
print(f"Found {len(target_languages)} target languages:")
|
|
221
|
+
for language in target_languages:
|
|
222
|
+
print(f" - {language}")
|
|
223
|
+
|
|
224
|
+
try:
|
|
225
|
+
print("Starting end-to-end dubbing process...")
|
|
226
|
+
|
|
227
|
+
result = client.end_to_end_dubbing(
|
|
228
|
+
video_url="your_accesible_video_url",
|
|
229
|
+
source_language=cambai.Languages.NUMBER_1, # English
|
|
230
|
+
target_languages=[cambai.Languages.NUMBER_81], # Add more target languages as needed
|
|
231
|
+
verbose=True
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
print("Dubbing completed successfully!")
|
|
235
|
+
# The result contains output_video_url, output_audio_url, and transcript information with timing and speaker details
|
|
236
|
+
print(f"Result: {result}")
|
|
237
|
+
|
|
238
|
+
except ApiException as e:
|
|
239
|
+
print(f"API Exception when calling end_to_end_dubbing: {e}\n")
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## ⚙️ Advanced Usage & Other Features
|
|
245
|
+
|
|
246
|
+
The Camb AI SDK offers a wide range of capabilities beyond these examples, including:
|
|
247
|
+
|
|
248
|
+
* Voice Cloning
|
|
249
|
+
* Translated TTS
|
|
250
|
+
* Audio Dubbing
|
|
251
|
+
* Transcription
|
|
252
|
+
* And more!
|
|
253
|
+
|
|
254
|
+
Please refer to the [**Official Camb AI API Documentation**](https://docs.camb.ai/introduction) for a comprehensive list of features and advanced usage patterns.
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## License
|
|
259
|
+
|
|
260
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
camb_sdk-1.0.0.dist-info/licenses/LICENSE,sha256=wVE3pAs9Te7Joa1AmJJ0JVd8CNgNmslblQaNgbozkiU,1063
|
|
2
|
+
cambai/__init__.py,sha256=IWEE0yN9dLLq-E1BCVkcOCypzw2XNXX5Ybvk6GAbqnE,7245
|
|
3
|
+
cambai/api_client.py,sha256=YZhog2TzYjTilrhh3QV_mzZU3zdXA1fQcFXOiEYUNVs,27660
|
|
4
|
+
cambai/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
5
|
+
cambai/configuration.py,sha256=CZpW7p_C-4S6S5FtXaI3uQjh8dgpnHyyw2s40E83Tgs,18898
|
|
6
|
+
cambai/exceptions.py,sha256=upZXBQh1bx93N8JIPJh89j67pArS4oxcCmZ_cfdK2XU,6471
|
|
7
|
+
cambai/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
cambai/rest.py,sha256=n3SSWXErpiSqlEvu6lEkTiJQLxjbrFkhZC1rF7biJJQ,9460
|
|
9
|
+
cambai/api/__init__.py,sha256=IndnP-ftH1sQhRfojuX4VOhQ33JSFfGYP6Ns6YZ0y6k,460
|
|
10
|
+
cambai/api/apis_api.py,sha256=WV0HAyfcUE_nt4tXAaxiMiRvfOGoBePo3HLycrwCO_M,413969
|
|
11
|
+
cambai/api/audio_separation_api.py,sha256=sN9JsmRsQIk6cAvVY5v5J52oKUcRVxysXfFJ0gwXZTE,32210
|
|
12
|
+
cambai/api/dictionaries_api.py,sha256=2Sfhiy7hJg8_nyE2zj0jjaKhf4Ze2sWyYmmN1KDqYTU,10548
|
|
13
|
+
cambai/api/dub_api.py,sha256=iWh7VvFGpqXEvfbpLgdeIavVHXKz5q4prDRLUNSMJLQ,36856
|
|
14
|
+
cambai/api/stories_api.py,sha256=PrhkUR8l0zxx2DGEKNj-V0IeU2ODzzjdJvbPHNWRHHk,62092
|
|
15
|
+
cambai/api/text_to_audio_api.py,sha256=1i6ylgfqcRBl6AthgAFvRqaWRCy1enHqB5De7_61laM,32880
|
|
16
|
+
cambai/api/text_to_speech_api.py,sha256=ACI2QV9RQ4OMwrq81KLu1GnPMF9DGAUNfar36wWRUdw,21484
|
|
17
|
+
cambai/api/text_to_voice_api.py,sha256=QXqTSp-9BnQE0JNHJlRj72ILhPXwCY2Zmtvn1zjYw4U,33281
|
|
18
|
+
cambai/models/__init__.py,sha256=GsdbPmtg_NZ4YJEboQbQ6t_IMHc3Nf0x9aUw_eMh68s,3423
|
|
19
|
+
cambai/models/audio_output_file_url_response.py,sha256=QJHmwvf03zIkjUlMppTLMqi-1xU0cg_Y7VkL86ePUmg,2662
|
|
20
|
+
cambai/models/audio_output_type.py,sha256=WY9zdNlSFpq8GAQH4MnHKxOmNlgOHJ8Z9DSlXIjOUwY,780
|
|
21
|
+
cambai/models/audio_separation_run_info_response.py,sha256=iqL361fqETtZjOHCAKxhy88slY30rRkNU6A3ezFlWI4,3000
|
|
22
|
+
cambai/models/body_translate_translate_post.py,sha256=g1y0x4QH9OVhVLgAcacvVF-uPDCU2utTSBIbbh3tk-g,3809
|
|
23
|
+
cambai/models/create_api_key_request_payload.py,sha256=4Sh0tUCu_5ubet5OUq4UB8tXlziBGseBOxvh4oOsrDw,2608
|
|
24
|
+
cambai/models/create_custom_voice_out.py,sha256=kan7x6LU_ENmu2N12V0nHTY9meg94riZs9_jtazNKtk,2539
|
|
25
|
+
cambai/models/create_text_to_audio_request_payload.py,sha256=v2zj0M5rcYPoD1u79iD2YUyRwEu-5lyilXzx5gyjDeY,2904
|
|
26
|
+
cambai/models/create_text_to_voice_request_payload.py,sha256=lWpg96mPitrJpfJmuFWm7gZKRsUJv3OTaqEvZrdjaYY,3002
|
|
27
|
+
cambai/models/create_translated_story_request_payload.py,sha256=7-FZPFXa6YHo5FYvP0phzoyOdZvX7Mi6ColpkZobEYg,2708
|
|
28
|
+
cambai/models/create_translated_tts_request_payload.py,sha256=nVyesEkwJTBw9nJ06xBU3GQZkITbG9HCDW3gP0v3Gkw,4320
|
|
29
|
+
cambai/models/create_translation_stream_request_payload.py,sha256=2peStTfSHCOZXHqEJeSXhcLIqsdfQg_syTb68gyMLUk,3545
|
|
30
|
+
cambai/models/create_tts_request_payload.py,sha256=fAIrZ2GIsL10xPlrxGQptJ0ShuFn7UeNdrSIWwr1q5U,3341
|
|
31
|
+
cambai/models/create_tts_stream_request_payload.py,sha256=hC3MXCgYf7S4EHOj7RLMmLS_A29Msra4FVm2vlEg9RU,4197
|
|
32
|
+
cambai/models/dialogue_item.py,sha256=O8924oVwbrOVd7bIgj6awhA5C2PepRanHNcU6-JvQ5E,3261
|
|
33
|
+
cambai/models/dictionary.py,sha256=_YlX3YWNShL4IH6rFoaClaUVa2fLCCEGU_lPbaz4eOs,3290
|
|
34
|
+
cambai/models/dub_alt_format_response_body.py,sha256=kovDfvIISuj35drZN5dCLndb5i3Kacxg7HCqIgLv35s,2769
|
|
35
|
+
cambai/models/dubbed_output_in_alt_format_request_payload.py,sha256=JdKx6lYEisob-sWlknpR23RufIJUZjm-FXx3Wa07nEI,2904
|
|
36
|
+
cambai/models/end_to_end_dubbing_request_payload.py,sha256=vZHVbWYgTO2_o-MWhDCd8hKoPNkf6RQbZyrigT8CHJI,4481
|
|
37
|
+
cambai/models/expire_api_key_request_payload.py,sha256=HYxOnlw3CuGm2S7_LpguAjb2Y8UJDnmfqXImDPD1pUI,2544
|
|
38
|
+
cambai/models/formalities.py,sha256=tBTHNknrnsurO5bCUVZuNnDdF0TDN9IbcJWgi3s0tco,736
|
|
39
|
+
cambai/models/gender.py,sha256=J5sraf7nb4_TO1snveKO2wQ6J-W8cdk1zruwjcBl4cY,775
|
|
40
|
+
cambai/models/http_validation_error.py,sha256=Lk1OXxkv4EQsMQopFvZJKDplRByZa3XvDVNcJgf8DnU,2996
|
|
41
|
+
cambai/models/language_item.py,sha256=lfu226ZVZv3DVu8YyRFDVBtUIFvE1NLyGzscXxnBX0Q,3165
|
|
42
|
+
cambai/models/languages.py,sha256=qgPr0lkrmloZ_z-DsHlOQG2sT0eXc18rxUrbM5UDyO0,3588
|
|
43
|
+
cambai/models/orchestrator_pipeline_result.py,sha256=QrGsXUqOd5mka8rzXohXsmgPgQTFqBJq9Ng1TI6ILuE,2902
|
|
44
|
+
cambai/models/output_api_key.py,sha256=E5GlvctrIP92j996sIbSsqeB-CJ_Ito-Z9VPMEoMaGU,3280
|
|
45
|
+
cambai/models/output_format.py,sha256=o51AXquN0ePi1bRwNy0WrPHvi-_uhjYoafS9r3qDSqE,5074
|
|
46
|
+
cambai/models/output_type.py,sha256=72OLvqA4ng3-NKNjET-lhN9-Lf-PWd0YkaGMml8hfl4,753
|
|
47
|
+
cambai/models/request_dubbed_output_in_alt_format200_response.py,sha256=lq2pw7IQkmjhfAOLEOLaSrYFUtN2UNcPxBpeuC75shU,5954
|
|
48
|
+
cambai/models/run_info_response.py,sha256=Q9PMgKb5gzoCPMwpdL3mcLSpb9dXPckR0PqH_rySAFY,3843
|
|
49
|
+
cambai/models/story_run_info_response.py,sha256=NSQIPGh5_-fAqb3fj8TmFGhN4m0_VgqOXz5Bdt8pto0,3572
|
|
50
|
+
cambai/models/task_id.py,sha256=WyurJZhXEPQLA18HBlaqxGIzwo8jitlBbvWTkdFLBCI,2479
|
|
51
|
+
cambai/models/task_status.py,sha256=yY0R86J-fAyx88ZQrbMGAxcrJ7mcu-z4iQ0QWn9PSXI,833
|
|
52
|
+
cambai/models/text_to_voice_run_info_response.py,sha256=lSE7r1PBEOOnahcy4knmQVYXhroLJJvEkC_AI9yAEW0,2889
|
|
53
|
+
cambai/models/transcript_data_type.py,sha256=7lFiwE_ElFJkBA6zwGmn516IkH_-zt5U4A-uiZVgfNc,767
|
|
54
|
+
cambai/models/transcript_file_format.py,sha256=nCtKPWXzvBMxVydLBecKxSoySBxAQ66EzOvbhV-kODs,777
|
|
55
|
+
cambai/models/translation_result.py,sha256=dxlhDmRpVTq4wqnkZUkr-z2XlfgDj0s598LRtux-CBw,2676
|
|
56
|
+
cambai/models/tts_stream_output_format.py,sha256=29-ZM6WiOKznVZJqIKryMCZwMaZuXT0yjFYaLXEOkQU,840
|
|
57
|
+
cambai/models/validation_error.py,sha256=Usdc8EC3OVyDc3KnPaQk_t6CUMVHUVrHltlbJv9zwmo,3088
|
|
58
|
+
cambai/models/validation_error_loc_inner.py,sha256=wHiW_qKw46E2pUdOnesgpdnuqpTX9IQTaEOVDgph5_E,4885
|
|
59
|
+
cambai/models/video_output_type_without_avi.py,sha256=DvyuKHAv7K-Y_RbO-y2TDI4R7qbsEs_SE_g4f0CpSOs,792
|
|
60
|
+
cambai/models/voice_item.py,sha256=V-7EmmVLFzISlu2xZVUfQuD-kOg-08DuGyePY7YyWK0,4070
|
|
61
|
+
camb_sdk-1.0.0.dist-info/METADATA,sha256=-J82ImgPYUj70Gk1BDYVvBQlHGg5M9RFlUGFZD7-UBY,7776
|
|
62
|
+
camb_sdk-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
63
|
+
camb_sdk-1.0.0.dist-info/top_level.txt,sha256=iqT9vxFBtFsESik9PDn3hFfTRpAl_ULmIbRDX90XaY0,7
|
|
64
|
+
camb_sdk-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Camb AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cambai
|
cambai/__init__.py
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
FastAPI
|
|
7
|
+
|
|
8
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 0.1.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"CambAI",
|
|
22
|
+
"AudioSeparationApi",
|
|
23
|
+
"DictionariesApi",
|
|
24
|
+
"DubApi",
|
|
25
|
+
"StoriesApi",
|
|
26
|
+
"TextToAudioApi",
|
|
27
|
+
"TextToSpeechApi",
|
|
28
|
+
"TextToVoiceApi",
|
|
29
|
+
"ApiResponse",
|
|
30
|
+
"ApiClient",
|
|
31
|
+
"Configuration",
|
|
32
|
+
"OpenApiException",
|
|
33
|
+
"ApiTypeError",
|
|
34
|
+
"ApiValueError",
|
|
35
|
+
"ApiKeyError",
|
|
36
|
+
"ApiAttributeError",
|
|
37
|
+
"ApiException",
|
|
38
|
+
"AudioOutputFileURLResponse",
|
|
39
|
+
"AudioOutputType",
|
|
40
|
+
"AudioSeparationRunInfoResponse",
|
|
41
|
+
"BodyTranslateTranslatePost",
|
|
42
|
+
"CreateAPIKeyRequestPayload",
|
|
43
|
+
"CreateCustomVoiceOut",
|
|
44
|
+
"CreateTTSRequestPayload",
|
|
45
|
+
"CreateTTSStreamRequestPayload",
|
|
46
|
+
"CreateTextToAudioRequestPayload",
|
|
47
|
+
"CreateTextToVoiceRequestPayload",
|
|
48
|
+
"CreateTranslatedStoryRequestPayload",
|
|
49
|
+
"CreateTranslatedTTSRequestPayload",
|
|
50
|
+
"CreateTranslationStreamRequestPayload",
|
|
51
|
+
"DialogueItem",
|
|
52
|
+
"Dictionary",
|
|
53
|
+
"DubAltFormatResponseBody",
|
|
54
|
+
"DubbedOutputInAltFormatRequestPayload",
|
|
55
|
+
"EndToEndDubbingRequestPayload",
|
|
56
|
+
"ExpireAPIKeyRequestPayload",
|
|
57
|
+
"Formalities",
|
|
58
|
+
"Gender",
|
|
59
|
+
"HTTPValidationError",
|
|
60
|
+
"LanguageItem",
|
|
61
|
+
"Languages",
|
|
62
|
+
"OrchestratorPipelineResult",
|
|
63
|
+
"OutputAPIKey",
|
|
64
|
+
"OutputFormat",
|
|
65
|
+
"OutputType",
|
|
66
|
+
"RequestDubbedOutputInAltFormat200Response",
|
|
67
|
+
"RunInfoResponse",
|
|
68
|
+
"StoryRunInfoResponse",
|
|
69
|
+
"TTSStreamOutputFormat",
|
|
70
|
+
"TaskID",
|
|
71
|
+
"TaskStatus",
|
|
72
|
+
"TextToVoiceRunInfoResponse",
|
|
73
|
+
"TranscriptDataType",
|
|
74
|
+
"TranscriptFileFormat",
|
|
75
|
+
"TranslationResult",
|
|
76
|
+
"ValidationError",
|
|
77
|
+
"ValidationErrorLocInner",
|
|
78
|
+
"VideoOutputTypeWithoutAVI",
|
|
79
|
+
"VoiceItem",
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
# import apis into sdk package
|
|
83
|
+
from cambai.api.apis_api import CambAI as CambAI
|
|
84
|
+
from cambai.api.audio_separation_api import AudioSeparationApi as AudioSeparationApi
|
|
85
|
+
from cambai.api.dictionaries_api import DictionariesApi as DictionariesApi
|
|
86
|
+
from cambai.api.dub_api import DubApi as DubApi
|
|
87
|
+
from cambai.api.stories_api import StoriesApi as StoriesApi
|
|
88
|
+
from cambai.api.text_to_audio_api import TextToAudioApi as TextToAudioApi
|
|
89
|
+
from cambai.api.text_to_speech_api import TextToSpeechApi as TextToSpeechApi
|
|
90
|
+
from cambai.api.text_to_voice_api import TextToVoiceApi as TextToVoiceApi
|
|
91
|
+
|
|
92
|
+
# import ApiClient
|
|
93
|
+
from cambai.api_response import ApiResponse as ApiResponse
|
|
94
|
+
from cambai.api_client import ApiClient as ApiClient
|
|
95
|
+
from cambai.configuration import Configuration as Configuration
|
|
96
|
+
from cambai.exceptions import OpenApiException as OpenApiException
|
|
97
|
+
from cambai.exceptions import ApiTypeError as ApiTypeError
|
|
98
|
+
from cambai.exceptions import ApiValueError as ApiValueError
|
|
99
|
+
from cambai.exceptions import ApiKeyError as ApiKeyError
|
|
100
|
+
from cambai.exceptions import ApiAttributeError as ApiAttributeError
|
|
101
|
+
from cambai.exceptions import ApiException as ApiException
|
|
102
|
+
|
|
103
|
+
# import models into sdk package
|
|
104
|
+
from cambai.models.audio_output_file_url_response import AudioOutputFileURLResponse as AudioOutputFileURLResponse
|
|
105
|
+
from cambai.models.audio_output_type import AudioOutputType as AudioOutputType
|
|
106
|
+
from cambai.models.audio_separation_run_info_response import AudioSeparationRunInfoResponse as AudioSeparationRunInfoResponse
|
|
107
|
+
from cambai.models.body_translate_translate_post import BodyTranslateTranslatePost as BodyTranslateTranslatePost
|
|
108
|
+
from cambai.models.create_api_key_request_payload import CreateAPIKeyRequestPayload as CreateAPIKeyRequestPayload
|
|
109
|
+
from cambai.models.create_custom_voice_out import CreateCustomVoiceOut as CreateCustomVoiceOut
|
|
110
|
+
from cambai.models.create_tts_request_payload import CreateTTSRequestPayload as CreateTTSRequestPayload
|
|
111
|
+
from cambai.models.create_tts_stream_request_payload import CreateTTSStreamRequestPayload as CreateTTSStreamRequestPayload
|
|
112
|
+
from cambai.models.create_text_to_audio_request_payload import CreateTextToAudioRequestPayload as CreateTextToAudioRequestPayload
|
|
113
|
+
from cambai.models.create_text_to_voice_request_payload import CreateTextToVoiceRequestPayload as CreateTextToVoiceRequestPayload
|
|
114
|
+
from cambai.models.create_translated_story_request_payload import CreateTranslatedStoryRequestPayload as CreateTranslatedStoryRequestPayload
|
|
115
|
+
from cambai.models.create_translated_tts_request_payload import CreateTranslatedTTSRequestPayload as CreateTranslatedTTSRequestPayload
|
|
116
|
+
from cambai.models.create_translation_stream_request_payload import CreateTranslationStreamRequestPayload as CreateTranslationStreamRequestPayload
|
|
117
|
+
from cambai.models.dialogue_item import DialogueItem as DialogueItem
|
|
118
|
+
from cambai.models.dictionary import Dictionary as Dictionary
|
|
119
|
+
from cambai.models.dub_alt_format_response_body import DubAltFormatResponseBody as DubAltFormatResponseBody
|
|
120
|
+
from cambai.models.dubbed_output_in_alt_format_request_payload import DubbedOutputInAltFormatRequestPayload as DubbedOutputInAltFormatRequestPayload
|
|
121
|
+
from cambai.models.end_to_end_dubbing_request_payload import EndToEndDubbingRequestPayload as EndToEndDubbingRequestPayload
|
|
122
|
+
from cambai.models.expire_api_key_request_payload import ExpireAPIKeyRequestPayload as ExpireAPIKeyRequestPayload
|
|
123
|
+
from cambai.models.formalities import Formalities as Formalities
|
|
124
|
+
from cambai.models.gender import Gender as Gender
|
|
125
|
+
from cambai.models.http_validation_error import HTTPValidationError as HTTPValidationError
|
|
126
|
+
from cambai.models.language_item import LanguageItem as LanguageItem
|
|
127
|
+
from cambai.models.languages import Languages as Languages
|
|
128
|
+
from cambai.models.orchestrator_pipeline_result import OrchestratorPipelineResult as OrchestratorPipelineResult
|
|
129
|
+
from cambai.models.output_api_key import OutputAPIKey as OutputAPIKey
|
|
130
|
+
from cambai.models.output_format import OutputFormat as OutputFormat
|
|
131
|
+
from cambai.models.output_type import OutputType as OutputType
|
|
132
|
+
from cambai.models.request_dubbed_output_in_alt_format200_response import RequestDubbedOutputInAltFormat200Response as RequestDubbedOutputInAltFormat200Response
|
|
133
|
+
from cambai.models.run_info_response import RunInfoResponse as RunInfoResponse
|
|
134
|
+
from cambai.models.story_run_info_response import StoryRunInfoResponse as StoryRunInfoResponse
|
|
135
|
+
from cambai.models.tts_stream_output_format import TTSStreamOutputFormat as TTSStreamOutputFormat
|
|
136
|
+
from cambai.models.task_id import TaskID as TaskID
|
|
137
|
+
from cambai.models.task_status import TaskStatus as TaskStatus
|
|
138
|
+
from cambai.models.text_to_voice_run_info_response import TextToVoiceRunInfoResponse as TextToVoiceRunInfoResponse
|
|
139
|
+
from cambai.models.transcript_data_type import TranscriptDataType as TranscriptDataType
|
|
140
|
+
from cambai.models.transcript_file_format import TranscriptFileFormat as TranscriptFileFormat
|
|
141
|
+
from cambai.models.translation_result import TranslationResult as TranslationResult
|
|
142
|
+
from cambai.models.validation_error import ValidationError as ValidationError
|
|
143
|
+
from cambai.models.validation_error_loc_inner import ValidationErrorLocInner as ValidationErrorLocInner
|
|
144
|
+
from cambai.models.video_output_type_without_avi import VideoOutputTypeWithoutAVI as VideoOutputTypeWithoutAVI
|
|
145
|
+
from cambai.models.voice_item import VoiceItem as VoiceItem
|
cambai/api/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from cambai.api.apis_api import CambAI
|
|
5
|
+
from cambai.api.audio_separation_api import AudioSeparationApi
|
|
6
|
+
from cambai.api.dictionaries_api import DictionariesApi
|
|
7
|
+
from cambai.api.dub_api import DubApi
|
|
8
|
+
from cambai.api.stories_api import StoriesApi
|
|
9
|
+
from cambai.api.text_to_audio_api import TextToAudioApi
|
|
10
|
+
from cambai.api.text_to_speech_api import TextToSpeechApi
|
|
11
|
+
from cambai.api.text_to_voice_api import TextToVoiceApi
|
|
12
|
+
|