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.1

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.1
File Size Uploaded Provenance Actions
moneytools_transcripts-0.1.1.tar.gz 8.5 kB Without provenance Details for moneytools_transcripts-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 19.1 kB

Release files / moneytools_transcripts-0.1.1.tar.gz

Download URL moneytools_transcripts-0.1.1.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
de59dcd0e496f1a8efb42c62839b28c0bf6fc7ac38f44a6c8ac743d09666588d
BLAKE2b-256 checksum
How to use checksums
f195a4a01187653b6cfdc243336f813dae42f25f635ca7605987de30d6502c00
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.1-py3-none-any.whl

Download URL moneytools_transcripts-0.1.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b602539a238b7fe2f3980eddebcf935f7f27936826728e95626d1e3dc8ce2f82
BLAKE2b-256 checksum
How to use checksums
95a154cc2a2dbbfa88d087f40edb89f22c4776f7309e687dc1b882c07ace3a09
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.1

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