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.1.tar.gz (9.3 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.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: transcribe_api-0.1.1.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

Hashes for transcribe_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c0a7e6f99c0d5f515ced89a8ba457c1b655f27dcdb9126cbe262fe1b951ca0f2
MD5 63c5fe4975d7e55fea632ff426df794e
BLAKE2b-256 33e786bedc4d8e251d40f811a8278f012480d56b4bc54083083b00c831de0bd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: transcribe_api-0.1.1-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

Hashes for transcribe_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19121a1c43e9d5d561af8912d3a9a37e09937f3ba2e808fb2d6ef4b2149a53b8
MD5 066491589f3f19f71820d8d77e2c8035
BLAKE2b-256 55498dab47336727f372eb93df6ba34f92dda8350aa4c27afabd1766323ef355

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