← Back to All Products
Customer Service · Sales AgentProduct Plan · Hardware-Software Prototype
📞

Auto Call Sales & Service Agent System

Hardware + Software · ESP32 HFP→SIP Upgrades Any Phone to a SIP Terminal for ~20 CNY

Turn "sales/service calls" into an autonomous voice agent: on the front end, an ESP32 add-on takes over any phone's call audio via Bluetooth using the HFP protocol with zero friction; on the back end, it pushes via SIP/WebRTC to the Rust-based active-call voice engine, where an LLM drives real-time dialogue, sales conversion, and auto-answer. Hardware BOM under 20 CNY, with offline ASR/TTS and cloud dual engines — privacy-compliant and plug-and-play.

Product Demo

Core Modules

🖥️

Sales/Service Call Agent · Real-Time Dialogue UI

PRODUCT MODULE
Sales/Service Call Agent · Real-Time Dialogue UI

Hardware · Software · Orchestration: Three-Layer Synergy

ESP32 HFP Bluetooth gateway + active-call Rust voice engine + Playbook Markdown orchestration, upgrading any phone into an AI call terminal.

📡

ESP32 HFP → SIP Bluetooth Gateway

20 CNY · Zero-Friction Hardware

The ESP32 module masquerades as a Bluetooth headset, capturing bidirectional call audio via HFP (Hands-Free Profile), then pushes to a SIP server over Wi-Fi. No root/jailbreak, no app install; covers Huawei / Xiaomi / OPPO / vivo / iPhone. Hardware BOM ~15-25 CNY, about the size of a Bluetooth dongle, clippable to a phone case or pocket.

⚙️

active-call Voice Engine (Rust)

High-Perf · Dual-Engine Dialogue

A Rust-based voice-agent engine (miuda-ai/active-call, MIT). Three audio entry points (SIP UDP/TCP/TLS/SIPS, WebRTC SRTP, WebSocket), dual dialogue engines: classic VAD→ASR→LLM→TTS pipeline + OpenAI/Azure Realtime full-duplex streaming. Built-in nnnoiseless denoise, WebRTC AGC2, barge-in, ambient mixing.

📋

Playbook Orchestration (Markdown)

Zero-Code Business Logic

Define persona / scene / flow in Markdown files, with Jinja2 templates, SIP-header extraction, DTMF collection, HTTP tool calls, variables, and human handoff. E.g. "after-sales scene" calls the CRM API, "order scene" uses <collect> for digits, "busy scene" uses <refer to="sip:agent@..."> to hand off to a human. Execution engine decoupled from the dialogue brain — strategy swappable wholesale.

🔒

Offline AI · Privacy First

ASR/TTS Fully Local

Optionally enable SenseVoice (zh/en/ja/ko/yue ASR) + Supertonic (en/ko/es/pt/fr TTS) offline models — no cloud API calls at all. Docker one-click model download (hf-mirror.com in mainland). Suited to finance / healthcare / government strong-compliance scenarios, and as a cloud-failure fallback.

Industry Pain Points

The harness industry has no shortage of CAD tools — what it lacks is a system that truly reads drawings, extracts BOMs, validates connections, and generates board diagrams.

🚫

OEMs Block Call Recording

Most domestic Android brands (Huawei, Xiaomi, OPPO, vivo) restrict third-party call recording at the system level for privacy compliance; users need root or flashing to bypass.

🍎

iOS Fully Closed

Apple iOS does not expose call-recording APIs to third-party apps; iPhone users can hardly record calls, losing key business info.

🔐

Complex Permissions

Even where supported, granting call-log, mic, notification permissions is a high bar for ordinary users; low adoption.

📉

Severe Info Loss

Sales reps forget ~30% of key call info daily (budget, promised delivery, etc.); memory or handwritten notes error-prone, costly to backfill.

⏱️

Inefficient Manual Organizing

Manual post-call organizing averages 5-10 min; reps with 10+ calls/day waste large amounts of time, with uneven quality.

Core Capabilities

Hardware Bluetooth gateway · Rust voice engine · Markdown orchestration · dual-engine dialogue

Multi-Protocol Audio Gateway

SIP (UDP/TCP/TLS/SIPS/WebSocket) + WebRTC (SRTP) + raw PCM WebSocket, three entry points unified; register to FreeSWITCH / Asterisk / RustPBX, or go PSTN via Twilio / Telnyx elastic relay.

Dual-Engine Dialogue

Classic pipeline (VAD→ASR→LLM→TTS) supports OpenAI/Alibaba/Azure/Tencent/Deepgram; OpenAI/Azure Realtime API gives full-duplex streaming, sub-1s first response for latency-sensitive service.

Playbook Orchestration

A Markdown file defines a stateful voice bot: scene switching, <http> tool calls, <collect> digit capture, <set_var> staging, <refer> handoff, <hangup_headers> SIP BYE writeback. Zero-code business integration.

High-Perf Media Core

TinySilero VAD: ~60ms for 60s audio (RTF 0.0010), 2.5× faster than ONNX Silero; codecs PCM16 / G.711 PCMU/PCMA / G.722 / Opus; built-in AGC2 + denoise + ambient mix + smart barge-in.

Full-Link Observability

tracing-based structured logs + /list, /events/{id} (SSE), /api/records call-event streams; TIMELINE multi-layer Gantt (USER/ASR/LLM/BOT) shows each call's event timing and latency live, aiding QA and optimization.

Offline/Cloud Dual Deploy

The default offline feature (SenseVoice + Supertonic) runs the full chain without cloud APIs; keep cloud-vendor switching for compliance, cost, latency flexibility. Docker one-click deploy + graceful shutdown.

Full Lifecycle of One Call

From phone dialing to cloud AI dialogue · 10-step closed loop

Engineering Flow
1
User Dials / Call In
Customer calls 13800138000 or agent initiates outbound; phone auto-pairs with the ESP32 gateway via Bluetooth, no extra operation.
2
ESP32 HFP Takes Over Audio
ESP32 establishes HFP as a Bluetooth headset, intercepting bidirectional audio (SCO/eSCO), buffering locally and pushing over Wi-Fi.
3
SIP / WebRTC Enters Session
Audio flows via SIP INVITE or WebRTC SRTP into the active-call engine, calling create_invitation_handler to create an ActiveCall session.
4
VAD Endpoint Detection
TinySilero VAD (~60ms/60s, RTF 0.0010) detects speech start/end in real time; silence timeout triggers followup / timeout strategy.
5
ASR Speech Recognition
SenseVoice (offline) / sonosonic·Alibaba·Tencent·Deepgram (cloud) transcribe to text, with zh/en/ja/ko multilingual and dialects.
6
LLM Dialogue Reasoning
Alibaba Qwen-Plus / OpenAI / Azure etc. generate replies with Playbook templates and context, supporting RAG and business tool calls.
7
TTS Speech Synthesis
CosyVoice / Alibaba·xiaoxiaoNeural / OpenAI / Supertonic synthesize voice; streaming output further cuts first-response latency.
8
Bidirectional Audio Return
Synthesized voice feeds back to ESP32 → phone Bluetooth → customer's ear; the customer's next sentence enters the next ASR loop.
9
Orchestration & Tool Calls
Playbook <http> CRM / <collect> DTMF / <set_var> staging / <refer> handoff extend LLM capability at runtime.
10
Recording & CDR Persistence
CDR + recording persisted via local/S3/Http; TIMELINE multi-layer event stream visualizes for QA, training, compliance audit.

Key Results

Crystallize technical capability into quantifiable, reusable outcomes.

15-25
Hardware BOM Cost
0.0010
VAD Inference RTF
<1s
Realtime API Latency
30%
Call Info Loss Down

Key Breakthroughs

The difficulty is not a single-point breakthrough, but engineering the breakthroughs into something stable and reusable.

📡

Zero-Friction Hardware

A 20-CNY ESP32 module turns any phone (incl. iPhone) into a SIP terminal, bypassing OEM and OS permission walls — no comparable same-price solution exists.

🧠

Execution Decoupled from Brain

PlaybookRunner only dispatches events and executes commands; DialogueHandler is the strategy implementation, swappable wholesale for rules/NLP/custom LLM without touching core call logic.

📋

Playbook Markdown Orchestration

<http> tool calls / <collect> DTMF / <set_var> variables / <refer> handoff / <hangup_headers> business writeback — zero-code integration with CRM, ticketing, knowledge base.

🔒

Offline ASR/TTS Fully Local

SenseVoice + Supertonic fully local inference, no cloud API; with Docker one-click deploy, meets finance / healthcare / government strong-compliance needs.

Business Value

Convert technical capability into quantifiable, reusable business value.

Improvements Delivered
Full-call transcription means sales reps no longer forget 30% of key info (budget, promised delivery, etc.).
Structured summary + action items generated immediately after the call — no manual organizing, saving 5-10 min per call.
When busy / driving / in meetings, the AI agent auto-answers per preset scripts and pushes the dialogue afterward.
Call transcripts enable sales-script review, locating winning talk tracks and weak points, empowering training and iteration.
Applicable Scenarios
Sales outbound: prospecting, price negotiation, order confirmation.
Service reception: after-sales Q&A, order lookup, returns/exchanges.
Order handling: DTMF capture / verification codes / order numbers + auto CRM ticketing.
Auto-answer: AI reception before transfer, smart routing or human handoff.
📌

Content Under Active Update

Product content has been published based on internal materials. The following areas are planned for further development:

Call demo video (call-agent real recordings and transcript replay)
CRM / ticketing integration cases and field mapping
Load-test data: concurrent calls / media performance / long-run stability
Human-bridge (<refer to="sip:agent@...">) battle-tested config
Contact Us

Start AI Partnership

Whether in government, finance, manufacturing, consumer, or content, we can customize vertical AI agent solutions for you.

📍

Address

Xiamen, Fujian · Wuhan OPC (planned)

🌐

Xianma AI

Xiamen Xianma Intelligent Technology Co., Ltd.

© 2024-2026 Xiamen Xianma Intelligent Technology Co., Ltd. · AI Agent Solutions · www.xianma.top

Products: 15active projects