Conversion Endpoints
Audio Transcribe
Processes an audio file to generate a transcription of the spoken content with support for language detection, translation, and multiple output formats.
POST
/
audio_transcribe
Copy
import requests
url = "https://api.example.com/api/public/v1/transcribe"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}
# Option 1: URL with parameters
payload = {
"audio_url": "https://example.com/audio.mp3",
"language": "en",
"translate": True,
"transcription_format": "srt",
"word_timestamps": True
}
response = requests.post(url, headers=headers, json=payload)
# Option 2: File Upload
with open("audio.mp3", "rb") as f:
files = {"audio_file": f}
data = {
"language": "en",
"translate": False,
"transcription_format": "plain_text"
}
response = requests.post(url, headers=headers, files=files, data=data)
print(response.json())
Copy
{
"success": true,
"task_id": "transcribe123",
"conversion_id": "conv456",
"eta": -1,
"credit_estimate": 100.1,
"message": "Successfully published to queue"
}
Authorizations
Body
multipart/form-data
Response
200
application/json
Successfully initiated transcription
The response is of type object
.
Copy
import requests
url = "https://api.example.com/api/public/v1/transcribe"
headers = {"Authorization": "<API_KEY>", "accept": "application/json"}
# Option 1: URL with parameters
payload = {
"audio_url": "https://example.com/audio.mp3",
"language": "en",
"translate": True,
"transcription_format": "srt",
"word_timestamps": True
}
response = requests.post(url, headers=headers, json=payload)
# Option 2: File Upload
with open("audio.mp3", "rb") as f:
files = {"audio_file": f}
data = {
"language": "en",
"translate": False,
"transcription_format": "plain_text"
}
response = requests.post(url, headers=headers, files=files, data=data)
print(response.json())
Copy
{
"success": true,
"task_id": "transcribe123",
"conversion_id": "conv456",
"eta": -1,
"credit_estimate": 100.1,
"message": "Successfully published to queue"
}
Assistant
Responses are generated using AI and may contain mistakes.