Pay-per-use WebRTC, Speech-to-Text, and Text-to-Speech for AI agents via x402 and MPP payment protocols
Built on dTelecom DePIN — a decentralized real-time communication network. No API keys, no accounts. Any AI agent with a crypto wallet can discover, pay, and use these services autonomously. Accepts USDC on Solana/Base, USDC on Tempo (MPP), and USDT on TRON via Bank of AI.
LiveKit-based decentralized SFU with Solana node discovery
Real-time transcription with smart routing and clock-pause billing
High-quality neural synthesis with real-time streaming
WebRTC + STT + TTS in a single request — everything an AI voice agent needs
Send an x402 payment to POST /v1/credits/purchase (USDC on Solana/Base), an MPP payment to POST /v1/credits/purchase/mpp (USDC on Tempo), or an x402 payment to POST /v1/credits/purchase/tron (USDT on TRON).
Request a WebRTC, STT, TTS, or bundled Agent session. Credits are reserved upfront.
Use the returned token to connect. Billed for actual usage, unused credits refunded.
npm install @dtelecom/x402-client viem
import { createGateway } from "@dtelecom/x402-client";
const gw = createGateway({ wallet, chain: "base" });
// One call → WebRTC + STT + TTS
const session = await gw.createAgentSession({
durationMinutes: 5,
clientIdentity: "user-42",
});
// session.webrtc, session.stt, session.tts — ready to connect
Build voice agents with @dtelecom/agents-js — includes DtelecomSTT and DtelecomTTS providers.
| Voice Agent Stack | x402 Gateway | DIY (assemble yourself) |
|---|---|---|
| WebRTC audio (2 participants) | $0.002/min pay-as-you-go | Agora $0.002/min |
| ↳ Bundle option | from $0.0001/min cloud.dtelecom.org | $400/mo, unlimited minutes |
| STT | $0.006/min | Deepgram $0.0077/min |
| TTS (~500 chars/min) | ~$0.004/min | ElevenLabs ~$0.15/min |
| Total | ~$0.012/min or ~$0.010 w/ bundle | ~$0.16+/min (3 accounts, 3 APIs) |
One API call. One bill. Crypto-native. Pay via x402 (Solana/Base/TRON) or MPP (Tempo).
WebRTC + STT + TTS powered by x402 · Source on GitHub