Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

transcribe_api-0.1.4.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

transcribe_api-0.1.4-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file transcribe_api-0.1.4.tar.gz.

File metadata

  • Download URL: transcribe_api-0.1.4.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for transcribe_api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 44a95af7496ab779a1e0415df89cd24c55938224abd771c3d2ef1736b59c3f6f
MD5 72502221fe2e3dc9b5b3da9726619da3
BLAKE2b-256 4dc0842fb26d96a23df01d5d83e18878aac74cdb348abd904379099f40a95cee

See more details on using hashes here.

File details

Details for the file transcribe_api-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: transcribe_api-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for transcribe_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7c01483be4f0fbdd0da42746342839885134bfa0b5c798548c8495bbeceb520f
MD5 001d89161e42ebff08124815e2573883
BLAKE2b-256 e4e28c40d7a6150bfa111e7e90cf86ed677162e120ff2b0d03f5558a022f4d51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page