Token导航 LogoToken导航TokenDH.com
AI 工具external-servicegithub未标认证来源可访问clear审计通过

voice-ai-integration语音 AI 集成

Agent Skill

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

总安装

2,928

周安装

122

GitHub Stars

5

下载量

976
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/qodex-ai/ai-agent-skills --skill voice-ai-integration

简介

用于辅助音频、音乐、语音转写、语音合成或声音素材处理,适合生成配乐说明或整理音频流程。

  • 适用于调用语音工具、处理播客和视频配音素材等场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用。
  • 使用时需确认输入音频来源、输出格式及时长限制,注意版权合规边界。
  • voice-ai-integration 属于AI 工具类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Voice AI Integration

Build intelligent voice-enabled AI applications that understand spoken language and respond naturally through audio, creating seamless voice-first user experiences.

Overview

Voice AI systems combine three key capabilities:

  1. Speech Recognition - Convert audio input to text
  2. Natural Language Processing - Understand intent and context
  3. Text-to-Speech - Generate natural-sounding responses

Speech Recognition Providers

See examples/speech_recognition_providers.py for implementations:

  • Google Cloud Speech-to-Text: High accuracy with automatic punctuation
  • OpenAI Whisper: Robust multilingual speech recognition
  • Azure Speech Services: Enterprise-grade speech recognition
  • AssemblyAI: Async processing with high accuracy

Text-to-Speech Providers

See examples/text_to_speech_providers.py for implementations:

  • Google Cloud TTS: Natural voices with multiple language support
  • OpenAI TTS: Simple integration with high-quality output
  • Azure Speech Services: Enterprise TTS with neural voices
  • Eleven Labs: Premium voices with emotional control

Voice Assistant Architecture

See examples/voice_assistant.py for VoiceAssistant:

  • Complete voice pipeline: STT → NLP → TTS
  • Conversation history management
  • Multi-provider support (OpenAI, Google, Azure, etc.)
  • Async processing for responsive interactions

Real-Time Voice Processing

See examples/realtime_voice_processor.py for RealTimeVoiceProcessor:

  • Stream audio input from microphone
  • Stream audio output to speakers
  • Voice Activity Detection (VAD)
  • Configurable sample rates and chunk sizes

Voice Agent Applications

Voice-Controlled Smart Home

class SmartHomeVoiceAgent:
    def __init__(self):
        self.voice_assistant = VoiceAssistant()
        self.devices = {
            "lights": SmartLights(),
            "temperature": SmartThermostat(),
            "security": SecuritySystem()
        }

    async def handle_voice_command(self, audio_input):
        # Get text from voice
        command_text = await self.voice_assistant.process_voice_input(audio_input)

        # Parse intent
        intent = parse_smart_home_intent(command_text)

        # Execute command
        if intent.action == "turn_on_lights":
            self.devices["lights"].turn_on(intent.room)
        elif intent.action == "set_temperature":
            self.devices["temperature"].set(intent.value)

        # Confirm with voice
        response = f"I've {intent.action_description}"
        audio_output = await self.voice_assistant.synthesize_response(response)

        return audio_output

Voice Meeting Transcription

class VoiceMeetingRecorder:
    def __init__(self):
        self.processor = RealTimeVoiceProcessor()
        self.transcripts = []

    async def record_and_transcribe_meeting(self, duration_seconds=3600):
        audio_stream = self.processor.stream_audio_input()

        buffer = []
        chunk_duration = 30  # Transcribe every 30 seconds

        for audio_chunk in audio_stream:
            buffer.append(audio_chunk)

            if sum(len(chunk) for chunk in buffer) >= chunk_duration * 16000:
                # Transcribe chunk
                transcript = transcribe_audio_whisper(buffer)
                self.transcripts.append({
                    "timestamp": datetime.now(),
                    "text": transcript
                })
                buffer = []

        return self.transcripts

Best Practices

Audio Quality

  • ✓ Use 16kHz sample rate for speech recognition
  • ✓ Handle background noise filtering
  • ✓ Implement voice activity detection (VAD)
  • ✓ Normalize audio levels
  • ✓ Use appropriate audio format (WAV for quality)

Latency Optimization

  • ✓ Use low-latency STT models
  • ✓ Implement streaming transcription
  • ✓ Cache common responses
  • ✓ Use async processing
  • ✓ Minimize network round trips

Error Handling

  • ✓ Handle network failures gracefully
  • ✓ Implement fallback voices/providers
  • ✓ Log audio processing failures
  • ✓ Validate audio quality before processing
  • ✓ Implement retry logic

Privacy & Security

  • ✓ Encrypt audio in transit
  • ✓ Delete audio after processing
  • ✓ Implement user consent mechanisms
  • ✓ Log access to audio data
  • ✓ Comply with data regulations (GDPR, CCPA)

Common Challenges & Solutions

Challenge: Accents and Dialects

Solutions:

  • Use multilingual models
  • Fine-tune on regional data
  • Implement language detection
  • Use domain-specific vocabularies

Challenge: Background Noise

Solutions:

  • Implement noise filtering
  • Use beamforming techniques
  • Pre-process audio with noise removal
  • Deploy microphone arrays

Challenge: Long Audio Files

Solutions:

  • Implement chunked processing
  • Use streaming APIs
  • Split into speaker turns
  • Implement caching

Frameworks & Libraries

Speech Recognition

  • OpenAI Whisper
  • Google Cloud Speech-to-Text
  • Azure Speech Services
  • AssemblyAI
  • DeepSpeech

Text-to-Speech

  • Google Cloud Text-to-Speech
  • OpenAI TTS
  • Azure Text-to-Speech
  • Eleven Labs
  • Tacotron 2

Getting Started

  1. Choose STT and TTS providers
  2. Set up authentication
  3. Build basic voice pipeline
  4. Add conversation management
  5. Implement error handling
  6. Test with real users
  7. Monitor and optimize latency

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.25%
按下载量换算285

Codex

22.13%
按下载量换算216

github-copilot

16.23%
按下载量换算158

trae

11.49%
按下载量换算112

OpenCode

8.22%
按下载量换算80

Antigravity

2.95%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills