Python SDK for dTelecom real-time speech-to-text with x402 micropayments
stt-client-python is an early-stage Python project in the AI payments / x402 ecosystem, focused on depin, real-time, speech-to-text, stt. It currently has 1 GitHub stars and 0 forks, and sits alongside related tools like stt-mcp, afara, rtp-spec, ClawRouter, Franklin, awesome-x402.
Python SDK for dTelecom real-time speech-to-text with x402 micropayments.
Pay-per-minute STT powered by Whisper and Parakeet, with automatic blockchain payments via USDC on Base or Solana.
pip install dtelecom-stt
import asyncio
from dtelecom_stt import STTClient
async def main():
# EVM wallet (Base)
client = STTClient(private_key="0x...")
# Or Solana wallet — detected automatically
# client = STTClient(private_key="base58...")
async with client.session(minutes=5, language="en") as stream:
async for t in stream.transcribe_file("meeting.wav"):
print(f"[{t.start:.1f}s] {t.text}")
asyncio.run(main())
import asyncio
from dtelecom_stt import STTClient
async def main():
client = STTClient(private_key="0x...") # or Solana base58 key
async with client.session(minutes=5, language="en") as stream:
# Callback-based
stream.on_transcription(lambda t: print(t.text))
# Send audio chunks (PCM16, 16kHz, mono)
await stream.send_audio(pcm_bytes)
# Or iterate asynchronously
async for t in stream.transcriptions():
print(t.text)
asyncio.run(main())
Sessions automatically buy more time when running low (enabled by default):
# 30-minute session that auto-extends
async with client.session(minutes=30, language="en") as stream:
# When <60s remaining, SDK buys 5 more minutes automatically
async for t in stream.transcriptions():
print(t.text)
# Disable auto-extend
async with client.session(minutes=5, auto_extend=False) as stream:
...
The server expects PCM16, 16kHz, mono audio. Convert with ffmpeg:
ffmpeg -i input.mp3 -ar 16000 -ac 1 -acodec pcm_s16le output.wav
info = await client.pricing()
print(f"${info.price_per_minute_usd}/min ({info.currency} on {info.network})")
Current pricing: $0.005/min (USDC on Base or Solana).
STTClient(private_key, url=None)Main client. Default URL: https://x402stt.dtelecom.org.
EVM key (hex, 0x-prefixed): pays with USDC on Base
Solana key (base58): pays with USDC on Solana
session(minutes=5, language="en", auto_extend=True) — Create a paid session (async context manager)
pricing() — Get pricing info
health() — Check server health
StreamReturned by client.session(). Async context manager.
send_audio(data: bytes) — Send raw PCM16 audiotranscriptions() — Async iterator of Transcription objectstranscribe_file(path) — Stream a WAV file and yield transcriptionson_transcription(callback) — Register callback for transcriptionsclose() — Close the streamTranscriptiontext: str — Transcribed textstart: float | None — Start time in secondsend: float | None — End time in secondsconfidence: float | None — Confidence scoreis_final: bool — Whether this is a final transcription25 languages via Parakeet-TDT (fast) with Whisper fallback:
English, Russian, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Czech, Romanian, Hungarian, Greek, Turkish, Ukrainian, Swedish, Norwegian, Danish, Finnish, Catalan, Croatian, Lithuanian, Slovenian, Latvian, Estonian.
from dtelecom_stt import PaymentError, SessionExpiredError, ConnectionError
try:
async with client.session(minutes=5) as stream:
async for t in stream.transcriptions():
print(t.text)
except PaymentError:
print("Payment failed — check wallet balance")
except SessionExpiredError:
print("Session time ran out")
except ConnectionError:
print("Cannot connect to server")
MIT
MCP server for dTelecom real-time speech-to-text with x402 micropayments
the onramp for pay-as-you-go decentralized storage on IPFS — SOL, USDFC, USDC, and x402 agent payments
Robot Task Protocol (RTP) — open standard for AI agents to discover, commission, and pay for physical robot tasks via x402
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
🚀 Curated list of x402 resources: HTTP 402 Payment Required protocol for blockchain payments, crypto micropayments, AI agents, API monetization. Includes SDKs (TypeScript, Python, Rust), examples, facilitators (Coinbase, Cloudflare), MCP integration, tutorials. Accept USDC payments with one line of code. Perfect for AI agent economy.
An open SDK for agentic payments. Let AI agents make payments, hold funds, and move money across chains with policy enforcement and human approval built in.
Golang SDK for A2A Protocol
Client SDK for the Vybe x402 API. Pay-per-call USDC over HTTP and prepaid-credit WebSocket streaming for Vybe's Solana analytics API. Built for AI agents.
Rust SDK for the Machine Payments Protocol
Building blocks for Agentic payments (x402, MPP, AP2) for TypeScript, Rust, Go, Python, Ruby, PHP, Lua, Kotlin and Swift.
Opinionated React Native crypto x AI chat app boilerplate with embedded wallet support, conversational AI, and dynamic UI component injection