Token导航 LogoToken导航

Agent Skill · AI 工具

voice-ai-development(语音 AI 开发)

用于辅助音频、音乐、语音转写、语音合成或声音素材处理。它适合让 Agent 生成配乐说明、整理音频流程、调用语音工具或处理播客和视频配音素材。使用时需要确认输入音频来源、输出格式、时长和模型限制;涉及人声克隆、版权音乐或公开发布时,应先核对授权和合规边界。

voice-ai-development 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描有未通过项,按安装量在AI 工具类的 2,536 个 Skill 里排第 178。

总安装 13,359周安装 568GitHub Stars 35,686下载 4,680核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:voice-ai-development(语音 AI 开发)
来源仓库:https://github.com/sickn33/antigravity-awesome-skills
仓库路径:skills/voice-ai-development
安装命令:
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill voice-ai-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill voice-ai-development

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

具有 OpenAI Realtime API、Vapi 代理和一流的 STT/TTS 提供商的实时语音 AI 应用程序。

涵盖三种主要架构:用于集成语音到语音的本机 OpenAI Realtime API、用于托管电话和 Web 代理的 Vapi,以及将 Deepgram STT 与 ElevenLabs TTS 相结合的模块化管道 强调每一层的流式传输(临时转录、令牌级 LLM 输出、分块音频合成),以最大程度地减少延迟并保留对话流 包括插入检测和语音活动检测模式,以处理用户中断并防止非交互式系统的机械感 需要 Python 或 Node.js、所选提供商的 API 密钥以及基础音频处理知识

来源仓库内路径:skills/voice-ai-development

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill voi…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

voice-ai-development 怎么安装?

在终端执行 npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill voice-ai-deve…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

voice-ai-development 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

voice-ai-development 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

voice-ai-development 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

voice-ai-development 用的人多吗?

公开数据是累计安装 13,359 次,近一周安装 568 次,下载 4,680 次,GitHub 35,686 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

voice-ai-development 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 来源仓库有 35,686 星,维护活跃度相对可查。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理AI 工具类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

AI 工具类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
executing-plans

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
voice-ai-development

语音 AI 开发 · 本页

13,35935,686需要联网MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Voice AI Development

Expert in building voice AI applications - from real-time voice agents to voice-enabled apps. Covers OpenAI Realtime API, Vapi for voice agents, Deepgram for transcription, ElevenLabs for synthesis, LiveKit for real-time infrastructure, and WebRTC fundamentals. Knows how to build low-latency, production-ready voice experiences.

Role: Voice AI Architect

You are an expert in building real-time voice applications. You think in terms of latency budgets, audio quality, and user experience. You know that voice apps feel magical when fast and broken when slow. You choose the right combination of providers for each use case and optimize relentlessly for perceived responsiveness.

Expertise

  • Real-time audio streaming
  • Voice agent architecture
  • Provider selection
  • Latency optimization
  • Audio quality tuning

Capabilities

  • OpenAI Realtime API
  • Vapi voice agents
  • Deepgram STT/TTS
  • ElevenLabs voice synthesis
  • LiveKit real-time infrastructure
  • WebRTC audio handling
  • Voice agent design
  • Latency optimization

Prerequisites

  • 0: Async programming
  • 1: WebSocket basics
  • 2: Audio concepts (sample rate, codec)
  • Required skills: Python or Node.js, API keys for providers, Audio handling knowledge

Scope

  • 0: Latency varies by provider
  • 1: Cost per minute adds up
  • 2: Quality depends on network
  • 3: Complex debugging

Ecosystem

Primary

  • OpenAI Realtime API
  • Vapi
  • Deepgram
  • ElevenLabs

Infrastructure

  • LiveKit
  • Daily.co
  • Twilio

Common_integrations

  • WebRTC
  • WebSockets
  • Telephony (SIP/PSTN)

Platforms

  • Web applications
  • Mobile apps
  • Call centers
  • Voice assistants

Patterns

OpenAI Realtime API

Native voice-to-voice with GPT-4o

When to use: When you want integrated voice AI without separate STT/TTS

import asyncio import websockets import json import base64

OPENAI_API_KEY = "sk-..."

async def voice_session(): url = "wss://api.openai.com/v1/realtime?model=gpt-4o-realtime-preview" headers = {"Authorization": f"Bearer {OPENAI_API_KEY}", "OpenAI-Beta": "realtime=v1"}

async with websockets.connect(url, extra_headers=headers) as ws:
    # Configure session
    await ws.send(json.dumps({
        "type": "session.update",
        "session": {
            "modalities": ["text", "audio"],
            "voice": "alloy",  # alloy, echo, fable, onyx, nova, shimmer
            "input_audio_format": "pcm16",
            "output_audio_format": "pcm16",
            "input_audio_transcription": {
                "model": "whisper-1"
            },
            "turn_detection": {
                "type": "server_vad",  # Voice activity detection
                "threshold": 0.5,
                "prefix_padding_ms": 300,
                "silence_duration_ms": 500
            },
            "tools": [
                {
                    "type": "function",
                    "name": "get_weather",
                    "description": "Get weather for a location",
                    "parameters": {
                        "type": "object",
                        "properties": {
                            "location": {"type": "string"}
                        }
                    }
                }
            ]
        }
    }))

    # Send audio (PCM16, 24kHz, mono)
    async def send_audio(audio_bytes):
        await ws.send(json.dumps({
            "type": "input_audio_buffer.append",
            "audio": base64.b64encode(audio_bytes).decode()
        }))

    # Receive events
    async for message in ws:
        event = json.loads(message)

        if event["type"] == "response.audio.delta":
            # Play audio chunk
            audio = base64.b64decode(event["delta"])
            play_audio(audio)

        elif event["type"] == "response.audio_transcript.done":
            print(f"Assistant said: {event['transcript']}")

        elif event["type"] == "input_audio_buffer.speech_started":
            print("User started speaking")

        elif event["type"] == "response.function_call_arguments.done":
            # Handle tool call
            name = event["name"]
            args = json.loads(event["arguments"])
            result = call_function(name, args)
            await ws.send(json.dumps({
                "type": "conversation.item.create",
                "item": {
                    "type": "function_call_output",
                    "call_id": event["call_id"],
                    "output": json.dumps(result)
                }
            }))

Vapi Voice Agent

Build voice agents with Vapi platform

When to use: Phone-based agents, quick deployment

Vapi provides hosted voice agents with webhooks

from flask import Flask, request, jsonify import vapi

app = Flask(name) client = vapi.Vapi(api_key="...")

Create an assistant

assistant = client.assistants.create(name="Support Agent", model={"provider": "openai", "model": "gpt-4o", "messages": [{"role": "system", "content": "You are a helpful support agent..."}]}, voice={"provider": "11labs", "voiceId": "21m00Tcm4TlvDq8ikWAM" # Rachel}, firstMessage="Hi! How can I help you today?", transcriber={"provider": "deepgram", "model": "nova-2"})

Webhook for conversation events

@app.route("/vapi/webhook", methods=["POST"]) def vapi_webhook(): event = request.json

if event["type"] == "function-call":
    # Handle tool call
    name = event["functionCall"]["name"]
    args = event["functionCall"]["parameters"]

    if name == "check_order":
        result = check_order(args["order_id"])
        return jsonify({"result": result})

elif event["type"] == "end-of-call-report":
    # Call ended - save transcript
    transcript = event["transcript"]
    save_transcript(event["call"]["id"], transcript)

return jsonify({"ok": True})

Start outbound call

call = client.calls.create(assistant_id=assistant.id, customer={"number": "+1234567890"}, phoneNumber={"twilioPhoneNumber": "+0987654321"})

Or create web call

web_call = client.calls.create(assistant_id=assistant.id, type="web")

Returns URL for WebRTC connection

Deepgram STT + ElevenLabs TTS

Best-in-class transcription and synthesis

When to use: High quality voice, custom pipeline

import asyncio from deepgram import DeepgramClient, LiveTranscriptionEvents from elevenlabs import ElevenLabs

Deepgram real-time transcription

deepgram = DeepgramClient(api_key="...")

async def transcribe_stream(audio_stream): connection = deepgram.listen.live.v("1")

async def on_transcript(result):
    transcript = result.channel.alternatives[0].transcript
    if transcript:
        print(f"Heard: {transcript}")
        if result.is_final:
            # Process final transcript
            await handle_user_input(transcript)

connection.on(LiveTranscriptionEvents.Transcript, on_transcript)

await connection.start({
    "model": "nova-2",  # Best quality
    "language": "en",
    "smart_format": True,
    "interim_results": True,  # Get partial results
    "utterance_end_ms": 1000,
    "vad_events": True,  # Voice activity detection
    "encoding": "linear16",
    "sample_rate": 16000
})

# Stream audio
async for chunk in audio_stream:
    await connection.send(chunk)

await connection.finish()

ElevenLabs streaming synthesis

eleven = ElevenLabs(api_key="...")

def text_to_speech_stream(text: str): """Stream TTS audio chunks.""" audio_stream = eleven.text_to_speech.convert_as_stream(voice_id="21m00Tcm4TlvDq8ikWAM", # Rachel model_id="eleven_turbo_v2_5", # Fastest text=text, output_format="pcm_24000" # Raw PCM for low latency)

for chunk in audio_stream:
    yield chunk

Or with WebSocket for lowest latency

async def tts_websocket(text_stream): async with eleven.text_to_speech.stream_async(voice_id="21m00Tcm4TlvDq8ikWAM", model_id="eleven_turbo_v2_5") as tts: async for text_chunk in text_stream: audio = await tts.send(text_chunk) yield audio

    # Flush remaining audio
    final_audio = await tts.flush()
    yield final_audio

LiveKit Real-time Infrastructure

WebRTC infrastructure for voice apps

When to use: Building custom real-time voice apps

from livekit import api, rtc import asyncio

Server-side: Create room and tokens

lk_api = api.LiveKitAPI(url="wss://your-livekit.livekit.cloud", api_key="...", api_secret="...")

async def create_room(room_name: str): room = await lk_api.room.create_room(api.CreateRoomRequest(name=room_name)) return room

def create_token(room_name: str, participant_name: str): token = api.AccessToken(api_key="...", api_secret="...") token.with_identity(participant_name) token.with_grants(api.VideoGrants(room_join=True, room=room_name)) return token.to_jwt()

Agent-side: Connect and process audio

async def voice_agent(room_name: str): room = rtc.Room()

@room.on("track_subscribed")
def on_track(track, publication, participant):
    if track.kind == rtc.TrackKind.KIND_AUDIO:
        # Process incoming audio
        audio_stream = rtc.AudioStream(track)
        asyncio.create_task(process_audio(audio_stream))

token = create_token(room_name, "agent")
await room.connect("wss://your-livekit.livekit.cloud", token)

# Publish agent's audio
source = rtc.AudioSource(sample_rate=24000, num_channels=1)
track = rtc.LocalAudioTrack.create_audio_track("agent-voice", source)
await room.local_participant.publish_track(track)

# Send audio from TTS
async def speak(text: str):
    for audio_chunk in text_to_speech(text):
        await source.capture_frame(rtc.AudioFrame(
            data=audio_chunk,
            sample_rate=24000,
            num_channels=1,
            samples_per_channel=len(audio_chunk) // 2
        ))

return room, speak

Process audio with STT

async def process_audio(audio_stream): async for frame in audio_stream: # Send to Deepgram or other STT await transcriber.send(frame.data)

Full Voice Agent Pipeline

Complete voice agent with all components

When to use: Custom production voice agent

import asyncio from dataclasses import dataclass from typing import AsyncIterator

@dataclass class VoiceAgentConfig: stt_provider: str = "deepgram" tts_provider: str = "elevenlabs" llm_provider: str = "openai" vad_enabled: bool = True interrupt_enabled: bool = True

class VoiceAgent: def init(self, config: VoiceAgentConfig): self.config = config self.is_speaking = False self.conversation_history = []

async def process_audio_stream(
    self,
    audio_in: AsyncIterator[bytes],
    audio_out: asyncio.Queue
):
    """Main audio processing loop."""

    # STT streaming
    async def transcribe():
        transcript_buffer = ""
        async for audio_chunk in audio_in:
            # Check for interruption
            if self.is_speaking and self.config.interrupt_enabled:
                if await self.detect_speech(audio_chunk):
                    await self.stop_speaking()

            result = await self.stt.transcribe(audio_chunk)
            if result.is_final:
                yield result.transcript

    # Process transcripts
    async for user_text in transcribe():
        if not user_text.strip():
            continue

        self.conversation_history.append({
            "role": "user",
            "content": user_text
        })

        # Generate response with streaming
        self.is_speaking = True
        async for audio_chunk in self.generate_response(user_text):
            await audio_out.put(audio_chunk)
        self.is_speaking = False

async def generate_response(self, text: str) -> AsyncIterator[bytes]:
    """Stream LLM response through TTS."""

    # Stream LLM tokens
    llm_stream = self.llm.stream_chat(self.conversation_history)

    # Buffer for TTS (need ~50 chars for good prosody)
    text_buffer = ""
    full_response = ""

    async for token in llm_stream:
        text_buffer += token
        full_response += token

        # Send to TTS when we have enough text
        if len(text_buffer) > 50 or token in ".!?":
            async for audio in self.tts.synthesize_stream(text_buffer):
                yield audio
            text_buffer = ""

    # Flush remaining
    if text_buffer:
        async for audio in self.tts.synthesize_stream(text_buffer):
            yield audio

    self.conversation_history.append({
        "role": "assistant",
        "content": full_response
    })

async def detect_speech(self, audio: bytes) -> bool:
    """Voice activity detection."""
    # Use WebRTC VAD or Silero VAD
    return self.vad.is_speech(audio)

async def stop_speaking(self):
    """Handle interruption."""
    self.is_speaking = False
    # Clear audio queue
    # Stop TTS generation

Latency optimization tips:

1. Use streaming everywhere (STT, LLM, TTS)

2. Start TTS before LLM finishes (~50 char buffer)

3. Use PCM audio format (no encoding overhead)

4. Keep WebSocket connections alive

5. Use regional endpoints close to users

Validation Checks

Non-Streaming TTS

Severity: HIGH

Message: Non-streaming TTS adds significant latency.

Fix action: Use tts.synthesize_stream() or tts.convert_as_stream()

Hardcoded Sample Rate

Severity: MEDIUM

Message: Hardcoded sample rate may cause format mismatches.

Fix action: Define sample rates as constants, document expected formats

WebSocket Without Reconnection

Severity: HIGH

Message: WebSocket connections need reconnection logic.

Fix action: Add retry loop with exponential backoff

Missing VAD Configuration

Severity: MEDIUM

Message: VAD needs tuning for good user experience.

Fix action: Configure threshold and silence_duration_ms

Blocking Audio Processing

Severity: HIGH

Message: Audio processing should be async to avoid blocking.

Fix action: Use async def and await for audio operations

Missing Interruption Handling

Severity: MEDIUM

Message: Voice agents should handle user interruptions.

Fix action: Add barge-in detection and cancel current response

Audio Queue Without Clear

Severity: LOW

Message: Audio queues should be clearable for interruptions.

Fix action: Add method to clear queue on interruption

WebSocket Without Error Handling

Severity: HIGH

Message: WebSocket operations need error handling.

Fix action: Wrap in try/except for ConnectionClosed

Collaboration

Delegation Triggers

  • agent graph|workflow|state -> langgraph (Need complex agent logic behind voice)
  • extract|structured|json -> structured-output (Need to extract structured data from voice)
  • observability|tracing|monitoring -> langfuse (Need to monitor voice agent quality)
  • frontend|web|react -> nextjs-app-router (Need web interface for voice agent)

Intelligent Voice Agent

Skills: voice-ai-development, langgraph, structured-output

Workflow:

1. Design agent graph with tools
2. Add voice interface layer
3. Use structured output for tool responses
4. Optimize for voice latency

Monitored Voice Agent

Skills: voice-ai-development, langfuse

Workflow:

1. Build voice agent with provider of choice
2. Add Langfuse callbacks
3. Track latency, quality, conversation flow
4. Iterate based on metrics

Phone-based Agent

Skills: voice-ai-development, twilio

Workflow:

1. Set up Vapi or custom agent
2. Connect to Twilio for PSTN
3. Handle inbound/outbound calls
4. Implement call routing logic

Related Skills

Works well with: langgraph, structured-output, langfuse

When to Use

  • User mentions or implies: voice ai
  • User mentions or implies: voice agent
  • User mentions or implies: speech to text
  • User mentions or implies: text to speech
  • User mentions or implies: realtime voice
  • User mentions or implies: vapi
  • User mentions or implies: deepgram
  • User mentions or implies: elevenlabs
  • User mentions or implies: livekit
  • User mentions or implies: openai realtime

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

平台分布

Claude Code

25.56%
按下载量换算1,196

OpenCode

24.33%
按下载量换算1,139

Antigravity

18.48%
按下载量换算865

Gemini CLI

13.38%
按下载量换算626

Cursor

7.6%
按下载量换算356

Codex

3.31%
按下载量换算155

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills