dTelecom

dTelecom x402 Gateway

Pay-per-use WebRTC, Speech-to-Text, and Text-to-Speech for AI agents via x402 and MPP payment protocols

x402 MPP WebRTC STT TTS Solana Base Tempo TRON 99+ languages Agent-native

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.

Services

WebRTC

LiveKit-based decentralized SFU with Solana node discovery

$0.001 / audio participant min
1 credit/min · per-second billing
  • Decentralized SFU nodes — Solana registry for discovery
  • SVC/simulcast, adaptive bitrate, E2EE
  • Ed25519 JWT signing, room-based multi-participant
  • SDKs: JavaScript, React with pre-built UI components

Speech-to-Text

Real-time transcription with smart routing and clock-pause billing

$0.006 / min
6 credits/min · per-second billing
  • Smart routing: Parakeet-TDT preferred (3-4x faster), Whisper fallback
  • Audio pipeline: Silero VAD → GTCRN noise reduction → hallucination filter
  • 99+ languages (25 via Parakeet, all via Whisper large-v3-turbo)
  • Clock-pause billing — reconnect without losing paid time

Text-to-Speech

High-quality neural synthesis with real-time streaming

$0.008 / 1K chars
8 credits/1K chars · per-character billing
  • Kokoro 82M model (MLX, Apple Silicon optimized)
  • 54 voices across 9 languages (EN, ES, FR, HI, IT, JA, PT, ZH, EN-GB)
  • Text with per-message voice/speed/language override
  • Voice blending, PCM16 48kHz mono, 20ms chunks, barge-in

Agent Session (Bundle)

WebRTC + STT + TTS in a single request — everything an AI voice agent needs

~$0.015 / min
WebRTC $0.001 + STT $0.006 + TTS $0.008/1K chars
  • One API call creates all three sessions
  • Both participants share one WebRTC room
  • Start testing for just $0.10 (~6.5 min of bundled voice)

How It Works

1

Buy Credits

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

2

Create Session

Request a WebRTC, STT, TTS, or bundled Agent session. Credits are reserved upfront.

3

Connect & Use

Use the returned token to connect. Billed for actual usage, unused credits refunded.

Quick Start

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 Pricing

Voice Agent Stackx402 GatewayDIY (assemble yourself)
WebRTC audio (2 participants)$0.002/min pay-as-you-goAgora $0.002/min
  ↳ Bundle optionfrom $0.0001/min cloud.dtelecom.org$400/mo, unlimited minutes
STT$0.006/minDeepgram $0.0077/min
TTS (~500 chars/min)~$0.004/minElevenLabs ~$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).

Built With This Stack

AI Language Tutor — Live Demo

WebRTC + STT + TTS powered by x402 · Source on GitHub