ClearScribe Python SDK
Requires Python 3.10 or newer.
Install from PyPI:
pip install clearscribe-sdk
Keep your Developer Dashboard API key in the server environment as CLEARSCRIBE_API_KEY.
Import ClearScribeClient from clearscribe_sdk. Create it with ClearScribeClient(os.environ["CLEARSCRIBE_API_KEY"]) and close it with a with block.
For example, call client.get_usage() to read usage or client.transcribe("meeting.wav") to upload audio. The client also supports jobs, summaries, action items, meeting minutes, transcript questions, exports, and meetings.
API failures raise ClearScribeApiError with status and code. Requests that may consume credits are not retried automatically.
Quick start
Set CLEARSCRIBE_API_KEY in your server environment:
import os
from clearscribe_sdk import ClearScribeClient, ClearScribeApiError
try:
with ClearScribeClient(os.environ["CLEARSCRIBE_API_KEY"]) as client:
result = client.summarize(
"Alex will send the revised plan on Friday.",
output_language="en",
)
print(result["summary"])
except ClearScribeApiError as error:
print(error.status, error.code, str(error))
Upload audio by passing a file path:
import os
from clearscribe_sdk import ClearScribeClient
with ClearScribeClient(os.environ["CLEARSCRIBE_API_KEY"]) as client:
result = client.transcribe("meeting.wav")
print(result["transcript"])
For longer recordings, create_transcription_job returns a job ID.
Check progress with get_transcription_job, then call
get_transcription_job_result after its status is completed.
Release files for clearscribe-sdk 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clearscribe_sdk-0.1.0.tar.gz | 10.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clearscribe_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.7 kB
Release files / clearscribe_sdk-0.1.0.tar.gz
| Download URL | clearscribe_sdk-0.1.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdd793b977f639ab7c92f8ca5ea88d739c4b6fa1ef8430e36b2ebbd09496ac93
|
|
BLAKE2b-256 checksum How to use checksums |
b1329787d7476f976304444db26df58fa063f3731dfd5e67ffd2afb3bebf048f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / clearscribe_sdk-0.1.0-py3-none-any.whl
| Download URL | clearscribe_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db331661df61000a9528044cc0482045b10f129ba3cfe78f9335f6ce1d976f59
|
|
BLAKE2b-256 checksum How to use checksums |
be194dbe29ef3255e79cd9ae43ef9933a0b69d6f0e4b81191c670d962e15975f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|