Skip to content

Commit 1a9acd0

Browse files
Updated Readme
Signed-off-by: Saransh-Shankar <saransh.shankar@camb.ai>
1 parent c5bb9b6 commit 1a9acd0

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

README.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The official Python SDK for interacting with Camb AI's powerful voice and audio
2222
Install the SDK using pip, ensure **Python 3.9+**:
2323

2424
```bash
25-
pip install camb-ai
25+
pip install camb-sdk
2626
````
2727

2828
Or through
@@ -156,7 +156,6 @@ except ApiException as e:
156156
```
157157
158158
---
159-
160159
### 3. Text-to-Audio (Sound Generation)
161160
162161
Generate sound effects or ambient audio from a descriptive prompt.
@@ -185,6 +184,43 @@ except ApiException as e:
185184
print(f"API Exception when calling text_to_audio: {e}\n")
186185
```
187186
187+
---
188+
### 4. End-to-End Dubbing
189+
190+
Dub videos into different languages with voice cloning and translation capabilities.
191+
192+
```python
193+
from cambai import CambAI
194+
from cambai.rest import ApiException
195+
196+
# Initialize client
197+
client = CambAI(api_key="YOUR_CAMB_API_KEY")
198+
199+
# Call all target languages
200+
print("Listing target languages...")
201+
target_languages = clinet.get_target_languages()
202+
print(f"Found {len(target_languages)} target languages:")
203+
for language in target_languages:
204+
print(f" - {language}")
205+
206+
try:
207+
print("Starting end-to-end dubbing process...")
208+
209+
result = client.end_to_end_dubbing(
210+
video_url="your_accesible_video_url",
211+
source_language=cambai.Languages.NUMBER_1, # English
212+
target_languages=[cambai.Languages.NUMBER_81], # Add more target languages as needed
213+
verbose=True
214+
)
215+
216+
print("Dubbing completed successfully!")
217+
# The result contains output_video_url, output_audio_url, and transcript information with timing and speaker details
218+
print(f"Result: {result}")
219+
220+
except ApiException as e:
221+
print(f"API Exception when calling end_to_end_dubbing: {e}\n")
222+
```
223+
188224
---
189225
190226
## ⚙️ Advanced Usage & Other Features

0 commit comments

Comments
 (0)