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

One line, no code: call MoneyTools with AgentCash

AgentCash (npx agentcash) pays from your own AgentCash wallet (USDC on Base, ~/.agentcash/wallet.json). No MoneyTools account. Failed calls are not charged.

# Wallet Risk Card, 0.02 USDC
npx agentcash fetch "https://tools.moneytools.dev/v1/wallet-risk?address=vitalik.eth&chain=base"
# Pay precheck before paying any x402 seller, 0.005 USDC (free daily tier first)
npx agentcash fetch "https://api.moneytools.dev/v1/precheck?url=https://example.com/paid&method=GET"
# See the price and input schema first, without paying
npx agentcash check "https://tools.moneytools.dev/v1/wallet-risk"

Metadata

Release files for moneytools-transcripts 0.1.2

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.2
File Size Uploaded Provenance Actions
moneytools_transcripts-0.1.2.tar.gz 8.8 kB Without provenance Details for moneytools_transcripts-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 19.7 kB

Release files / moneytools_transcripts-0.1.2.tar.gz

Download URL moneytools_transcripts-0.1.2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4ddb7f6645d8ca535a0fe05004d34c3facfd814f8cda5670d38df3d71d7520e4
BLAKE2b-256 checksum
How to use checksums
5ead79cb7afbb09a94579b259adac11c1862de42f5a59a70cbe09d858caf7c7c
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.2-py3-none-any.whl

Download URL moneytools_transcripts-0.1.2-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f97e77bacb27f54e42c4e471a4d4dbf82551c6c78611b17f36a5c0b296adb554
BLAKE2b-256 checksum
How to use checksums
ccf55b1ed5f083adf24058e8c78da3d875069110c32ec0a1711581aa8a273f08
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.2

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