🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
🚀 Introducing MARS8 Series — Four Powerful Variants | Available on All Major Clouds | Learn about the model here
Creates a task to process speech into readable text. Submit either an media file or a publicly accessible media URL.
curl --request POST \
--url https://client.camb.ai/apis/transcribe \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form language=1 \
--form 'project_name=<string>' \
--form 'project_description=<string>' \
--form folder_id=2 \
--form file='@example-file' \
--form media_file='@example-file' \
--form 'audio_url=<string>' \
--form 'media_url=<string>'{
"task_id": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://docs.camb.ai/llms.txt
Use this file to discover all available pages before exploring further.
1)54)76)31)139)88)4).mp3).wav).aac).flac).mp4).mov).mxf)curl -X POST "https://client.camb.ai/apis/transcribe" \
-H "x-api-key: YOUR_API_KEY" \
-F "language=1" \
-F "media_file=@/path/to/your/media_file.mp3"
curl -X POST "https://client.camb.ai/apis/transcribe" \
-H "x-api-key: YOUR_API_KEY" \
-F "language=1" \
-F "media_url=https://example.com/media_file.mp3"
requests library:
import requests
def create_transcription_task(api_key, language=1, media_file_path=None, media_url=None):
"""
Initiates a transcription task using either an media file or URL.
Args:
api_key (str): API authentication key
language (str): Language code (default: "en")
media_file_path (str, optional): Path to local media file
media_url (str, optional): URL of remote media resource
Returns:
dict: Response containing task_id for status tracking
"""
url = "https://client.camb.ai/apis/transcribe"
headers = {"x-api-key": api_key}
data = {"language": language}
files = None
# Validate input
if not (media_file_path or media_url):
raise ValueError("Must provide either media_file_path or media_url")
if media_file_path and media_url:
raise ValueError("Provide only one of media_file_path or media_url")
# Prepare request components
if media_file_path:
with open(media_file_path, "rb") as media_file:
files = {"media_file": (media_file_path.split("/")[-1], media_file)}
else:
data["media_url"] = media_url
# Execute request
response = requests.post(url, headers=headers, files=files, data=data)
if response.ok:
return response.json()
else:
print(f"Error {response.status_code}: {response.text}")
return None
# Example with file upload
file_result = create_transcription_task(
api_key="your_api_key",
media_file_path="meeting_recording.mp3",
language=1 # English (United States)
)
# Example with media URL
url_result = create_transcription_task(
api_key="your_api_key",
media_url="https://storage.example.com/interview.mp3",
language="54 # Spanish (Spain)
)
/transcribe/{task-id} endpoint to check your task’s statusSUCCESS, you can retrieve your full transcript.mp3, .wav, .aac, .flac, .mp4, .mov, .mxf)The x-api-key is a custom header required for authenticating requests to our API. Include this header in your request with the appropriate API key value to securely access our endpoints. You can find your API key(s) in the 'API' section of our studio website.
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 73, 74, 75, 76, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 139, 140, 141, 142, 143, 144, 145, 146, 148 Enter a distinctive name for your project that reflects its purpose or content. This name will be displayed in your CAMB.AI workspace dashboard and used to organize related assets, transcriptions, etc.. . Choose something memorable that helps you quickly identify this specific project among your other voice, audio and localization tasks.
3 - 255Provide details about your project's goals and specifications. Include information such as the target languages for translation or dubbing, desired voice characteristics, emotional tones to capture, or specific audio processing requirements, outlining the workflow here can serve as valuable documentation for organizational purposes.
3 - 5000Specify the organizational folder within your CAMB.AI workspace where this task should be created and stored. The folder must already exist in your workspace and be accessible through your current API key authentication. This helps maintain project organization by grouping related tasks together, making it easier to manage and locate your projects.
x >= 1Media file for transcription
Media file for transcription
Audio URL for transcription. (Supports both video and audio files)
Media URL for transcription. (Supports both video and audio files)
Successful Response
A JSON that contains unique identifier for the task. This is used to query the status of the transcription task that is running. It is returned when a create request is made to process speech into text.
curl --request POST \
--url https://client.camb.ai/apis/transcribe \
--header 'Content-Type: multipart/form-data' \
--header 'x-api-key: <api-key>' \
--form language=1 \
--form 'project_name=<string>' \
--form 'project_description=<string>' \
--form folder_id=2 \
--form file='@example-file' \
--form media_file='@example-file' \
--form 'audio_url=<string>' \
--form 'media_url=<string>'{
"task_id": "<string>"
}