Official Python SDK for Transcribe API.
Project description
Transcribe API Python SDK
Official Python SDK for Transcribe API.
Installation
pip install transcribe-api
Usage
from transcribe_api import TranscribeAPI
client = TranscribeAPI(api_key="YOUR_API_KEY")
transcript = client.transcribe(
file="audio.mp3",
)
async_job = client.transcribe(
file="long-audio.mp3",
)
batch_job = client.batch.transcribe(
files=["a.mp3", "b.wav"],
)
job = client.jobs.get(async_job["job_id"])
result_url = job.get("result_url")
remote_job = client.transcribe(
file={"url": "https://signed-get-url-from-s3-or-r2"},
)
remote_batch_job = client.batch.transcribe(
files=[
{"url": "https://signed-get-url-1"},
{"url": "https://signed-get-url-2"},
]
)
mixed_batch_job = client.batch.transcribe(
files=[
{"file_id": "episode_1", "file": "local.mp3"},
{"file_id": "episode_2", "url": "https://signed-get-url-2"},
]
)
Async uploads use signed R2 URLs returned by the API. Multipart upload is used automatically when the backend returns a multipart flow.
Async job creation now goes through POST /v1/transcribe for single-file and batch jobs. Batch calls can mix uploaded files and remote URLs in the same request, and the SDK sends reference_id, plus size_bytes for multipart candidates or url for remote files.
When polling async jobs, use GET /v1/transcribe/{job_id}. The response always includes the core job fields and adds result_url when job_status is completed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file transcribe_api-0.1.2.tar.gz.
File metadata
- Download URL: transcribe_api-0.1.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f017f187a1e5d61a61c470fe701621a08a962c1789cbbddeee59575c9a480f4
|
|
| MD5 |
40c18f20a424d2b2991f3282a4516f00
|
|
| BLAKE2b-256 |
dd3c513464efa394ed5f400f430cc0a940677470b3ab341b4123db883b8771e5
|
File details
Details for the file transcribe_api-0.1.2-py3-none-any.whl.
File metadata
- Download URL: transcribe_api-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc5f13938cdec417f4c20c669fba7843c0a6fa1e892839ce8c18a55d5e4ad570
|
|
| MD5 |
0f91f0fe1ad2743bb4215841923adcf8
|
|
| BLAKE2b-256 |
97e77d3e3d03c2883bb8b0b86977207a56b073d9ccbbd4be00c35a79aaa54c51
|