Skip to main content

moneytools-transcripts

Pay-per-file speech-to-text for MoneyTools Transcripts, over x402 (USDC on Base).

  • $0.005 per started audio minute, no prepaid credits
  • Same REST shape as dTelecom's POST /v1/transcriptions/jobs + poll
  • Uses the official x402 Python client (x402[requests,evm]) to answer HTTP 402 automatically
  • CLI: mt-transcribe meeting.mp3

Install

pip install moneytools-transcripts

Usage

import os
from eth_account import Account
from moneytools_transcripts import TranscriptsClient

account = Account.from_key(os.environ["X402_PRIVATE_KEY"])  # Base wallet with a little USDC
tc = TranscriptsClient(account)  # https://speech.moneytools.dev, Base mainnet

job = tc.transcribe_file("meeting.mp3", language="en", idempotency_key="meeting-42")
done = tc.wait_for_job(job["id"])
print(done["result"]["text"])
print(tc.get_job(job["id"], fmt="srt"))

A public https media URL:

job = tc.transcribe_url("https://example.com/meeting.mp3", wait=True)

Unpaid price check (no signature):

quote = tc.quote_file("meeting.mp3")
print(quote["amountUsd"], quote["startedMinutes"])

Spend cap: TranscriptsClient(account, max_usd_per_request=0.05).

Settle (agent spend controls, pay-per-call)

from moneytools_transcripts import SettleClient
settle = SettleClient(account)  # or api_key="mts_..."; default cap 0.05 USDC per call
settle.spend_check(payer=account.address, amount_usd="0.40", host="api.example.com")

CLI

export X402_PRIVATE_KEY=0x...   # never pass this on a shared command line if you can avoid it
mt-transcribe meeting.mp3
mt-transcribe --format srt meeting.mp3 > meeting.srt
mt-transcribe --url https://example.com/episode.mp3
mt-transcribe --quote meeting.mp3    # HTTP 402 only; no key required

Drop-in names (dTelecom file transcription)

create_file_transcription, get_file_transcription, and delete_file_transcription match the public file-transcription surface of @dtelecom/x402-client / the dTelecom gateway (snake_case). There is no buy_credits — pay the 402 per file instead.

Migration notes: https://speech.moneytools.dev/migrate/dtelecom

Hosted raw examples (also not prepaid):

License

MIT

Metadata

Release files for moneytools-transcripts 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for moneytools-transcripts 0.1.0
File Size Uploaded Provenance Actions
moneytools_transcripts-0.1.0.tar.gz 8.5 kB Without provenance Details for moneytools_transcripts-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for moneytools-transcripts 0.1.0
File Interpreter ABI Platform Actions
moneytools_transcripts-0.1.0-py3-none-any.whl Python 3 none any Details for moneytools_transcripts-0.1.0-py3-none-any.whl

Total release size: 19.1 kB

Release files / moneytools_transcripts-0.1.0.tar.gz

Download URL moneytools_transcripts-0.1.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a0db3fa9765d2d9fd7ecd1d000ee63e2864e3228c31d28c12ee98d1ed4a71bce
BLAKE2b-256 checksum
How to use checksums
24be79c0d7a6fcf6f5d4c68408ee4d1e4fa419bbfb18faffb42ea46b9374b076
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / moneytools_transcripts-0.1.0-py3-none-any.whl

Download URL moneytools_transcripts-0.1.0-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efe7f7719c8931edbe99608f8f295b11dc05f6d125bbd113184f9469107be3e3
BLAKE2b-256 checksum
How to use checksums
a43166a87c64ffe2f776216b3ee342f3bfb98c98e7afba130b14c6301097cab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for moneytools-transcripts 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page