Xpersona
V

Virtual voice builder

CLAWHUB · Unverified

Wires a real microphone through an AI brain (STT → LLM → TTS) and routes the output to a virtual audio cable so apps like Google Meet hear the processed voic... Skill: Virtual voice builder Owner: suhas12345685-pro Summary: Wires a real microphone through an AI brain (STT → LLM → TTS) and routes the output to a virtual audio cable so apps like Google Meet hear the processed voic... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-03-29T16:08:53.175Z | user Initial release of virtual-voice-ai skill. - Guides users through building a real-time audio interception pipeline in N

62
Rank
84
Safety
967
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 967 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17abdwncj5c6fetqnszj56zh983t0n4:virtual-voice-ai
  1. Node.js workspace detected. Install dependencies securely: run `npm ci --ignore-scripts` to prevent post-install lifecycle triggers from running arbitrary code, then selectively audit the dependency tree.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-suhas12345685-pro-virtual-voice-ai/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

17,306 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

Skill.md

---
name: voice-pipeline
description: Wires a real microphone through an AI brain (STT → LLM → TTS) and routes the output to a virtual audio cable so apps like Google Meet hear the processed voice. Use when building a real-time voice interception layer in a Node.js project.
requires:
  env:
    - DEEPGRAM_API_KEY
    - LLM_PROVIDER
    - LLM_API_KEY
    - LLM_MODEL
    - TTS_PROVIDER
    - TTS_API_KEY
    - VIRTUAL_CABLE_NAME
  system:
    - ffmpeg (must be in PATH)
    - VB-Audio Cable (Windows) or BlackHole 2ch (macOS)
---

# Voice Pipeline Skill

Guide the user through building a real-time audio interception pipeline in Node.js.
The pipeline: Mic → ffmpeg resample → Deepgram STT → LLM → Sentence chunker → TTS → PCM decode → VB-Cable.

## Capabilities

1. **OS Prep**: Walk through virtual audio driver install and ffmpeg setup.
2. **Device Discovery**: Run `scripts/01_list_devices.js` to find the exact VB-Cable name.
3. **Step-by-step build**: Execute scripts 01–07 in order, stress-testing each before proceeding.
4. **Kill switch**: Export a `stop()` function the host app calls to instantly halt the pipeline.
5. **Env wiring**: Write required keys to the project's `.env` file.

## Critical Rules

- Never use `naudiodon` or `electron` — both are incompatible with a portable Node.js skill.
- Always resample to 16kHz mono PCM before sending to Deepgram.
- Never stream raw LLM tokens to TTS — buffer to sentence boundaries first.
- TTS output (MP3) must be decoded to PCM before writing to VB-Cable.
- The kill switch must be IPC-based, not `globalShortcut` (Electron-only).

## Execution Order

Run each script independently to stress-test before wiring together.

```
Step 1 → OS prep (no code, see references/step_by_step.md)
Step 2 → scripts/package.json + npm install
Step 3 → node scripts/01_list_devices.js
Step 4 → node scripts/02_capture_resample.js
Step 5 → node scripts/03_deepgram_ws.js
Step 6 → node scripts/04_llm_stream.js + scripts/05_sentence_chunker.js
Step 7 → node scripts/06_tts_ws.js + scripts/07_pcm_write.js
```

## Progressive Loading

For architecture diagram and signal flow: read `references/architecture.md`.
For full corrected step-by-step: read `references/step_by_step.md`.
For all required env vars: read `references/env_schema.md`.

readme.md

# voice-pipeline

A Node.js skill that intercepts your real microphone, runs it through an AI brain (Speech-to-Text → LLM → Text-to-Speech), and routes the processed voice output to a virtual audio cable — so any meeting app (Google Meet, Zoom, Teams) hears the AI voice instead.

## What it does

```
Real Mic → ffmpeg (resample) → Deepgram STT → LLM → Sentence Chunker → TTS → PCM Decode → VB-Cable → Meeting App
```

## Requirements

- Node.js 18+
- ffmpeg installed and in PATH
- VB-Audio Cable (Windows) or BlackHole 2ch (macOS)
- API keys: Deepgram, an LLM provider (Groq/OpenAI/etc), a TTS provider (ElevenLabs/Cartesia)

## Usage

> "Set up the voice pipeline skill in my project"
> "Run step 3 of the voice pipeline"
> "My Deepgram transcripts aren't appearing, debug the pipeline"
> "Wire the kill switch into my app"

## Install

Add to your project's `.env`:

```env
DEEPGRAM_API_KEY=
LLM_PROVIDER=groq
LLM_API_KEY=
LLM_MODEL=llama3-8b-8192
TTS_PROVIDER=elevenlabs
TTS_API_KEY=
VIRTUAL_CABLE_NAME=CABLE Input
```

## Skill files

| File | Purpose |
|---|---|
| `scripts/01_list_devices.js` | Find your VB-Cable device name |
| `scripts/02_capture_resample.js` | Mic capture + 16kHz resample |
| `scripts/03_deepgram_ws.js` | STT WebSocket |
| `scripts/04_llm_stream.js` | LLM token stream |
| `scripts/05_sentence_chunker.js` | Buffer tokens to sentence boundaries |
| `scripts/06_tts_ws.js` | TTS WebSocket |
| `scripts/07_pcm_write.js` | Decode + write to VB-Cable |

_meta.json

{
  "ownerId": "kn77f6e01cm3cq4ygdemn7qzp583t8v7",
  "slug": "virtual-voice-ai",
  "version": "1.0.0",
  "publishedAt": 1774800533175
}

scripts/Package.json

{
  "name": "voice-pipeline",
  "version": "1.0.0",
  "description": "Real-time mic → AI brain → virtual cable audio pipeline",
  "main": "index.js",
  "scripts": {
    "list-devices": "node scripts/01_list_devices.js",
    "test-capture": "node scripts/02_capture_resample.js",
    "test-stt": "node scripts/03_deepgram_ws.js",
    "test-llm": "node scripts/04_llm_stream.js",
    "test-tts": "node scripts/06_tts_ws.js",
    "start": "node index.js"
  },
  "dependencies": {
    "dotenv": "^16.0.0",
    "ws": "^8.0.0",
    "node-fetch": "^3.0.0"
  }
}

reference/archetecture.md

# Pipeline Architecture

## Signal Flow

```
[Real Mic]
    │  (44.1kHz stereo, raw)
    ▼
[ffmpeg process]          ← spawned as child_process, stdout = PCM stream
    │  (16kHz mono PCM)
    ▼
[Deepgram WebSocket]      ← wss://api.deepgram.com/v1/listen
    │  (text transcript)
    ▼
[LLM stream]              ← Groq / OpenAI / local (streaming mode)
    │  (token stream)
    ▼
[Sentence chunker]        ← custom buffer, flushes on . ? ! or 30 words
    │  (full sentence strings)
    ▼
[TTS WebSocket]           ← ElevenLabs / Cartesia streaming endpoint
    │  (MP3 audio chunks)
    ▼
[PCM decoder]             ← ffmpeg spawned per chunk, stdin=MP3, stdout=PCM
    │  (raw PCM)
    ▼
[VB-Cable write]          ← ffmpeg -f s16le piped to virtual audio device
    │
    ▼
[Google Meet / Zoom]      ← reads from VB-Cable output as microphone
```

## Layer Color Code

- **Audio infra** (teal): ffmpeg processes, VB-Cable write
- **AI services** (purple): Deepgram, LLM, TTS
- **Custom logic** (amber): Sentence chunker — the one piece you write from scratch

## Audio Format Contract

Every layer boundary has a strict format:

| Boundary | Format | Why |
|---|---|---|
| Mic → ffmpeg | OS default (44.1kHz stereo) | Whatever the OS provides |
| ffmpeg → Deepgram | 16kHz, 16-bit, mono, PCM | Deepgram requirement |
| LLM → chunker | UTF-8 text tokens | Standard streaming format |
| Chunker → TTS | UTF-8 string (15–30 words) | TTS minimum viable input |
| TTS → decoder | MP3 binary stream | ElevenLabs/Cartesia default |
| Decoder → VB-Cable | 44.1kHz, 16-bit, stereo, PCM | VB-Cable default input format |

## WebSocket Reconnection Strategy

Both Deepgram and TTS sockets must implement:
1. `close` event → wait 1s → reconnect
2. `error` event → log + reconnect
3. Max 5 reconnect attempts before emitting `pipeline:error` to host app

## Kill Switch Contract

The skill exports a `stop()` function. When called:
1. Destroy the TTS audio buffer immediately (silence starts now)
2. Abort the active LLM fetch request
3. Close Deepgram socket gracefully
4. Kill ffmpeg child processes

Host app wires `stop()` to whatever trigger it uses (hotkey, IPC message, API call).

Sponsored

Ads related to Virtual voice builder and adjacent AI workflows.