voice-driven-npc

Provides a voice-driven NPC framework for UrhoX Lua games using HTTP-based ASR and TTS services.

Updated May 16, 2026
One-click install
npx skills add https://github.com/haitao2016/--Skill --skill voice-driven-npc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: voice-driven-npc
Source: https://github.com/haitao2016/--Skill/tree/main/voice-driven-npc
Command: npx skills add https://github.com/haitao2016/--Skill --skill voice-driven-npc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires http, asr, tts, intent-parser, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the creation of voice-driven NPC interactions in UrhoX Lua games, making it easier to build immersive and interactive experiences.

Core Features & Use Cases

  • Voice Input and Recognition: Integrate ASR and TTS services to handle voice input and text-to-speech output.
  • Intent Parsing: Extract user intent from voice input using local rules or integrate LLM for more complex parsing.
  • Use Case: Create a voice-activated RPG game where NPCs understand player commands and respond with voice or text.

Quick Start

Use the 'voice-driven-npc' skill to initialize the NPC 'Merchant' with the trigger keywords 'buy', 'sell', 'greet', and 'ask_info'.

Frequently Asked Questions about voice-driven-npc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add voice interaction and intent parsing to NPCs in UrhoX Lua games?

To add voice interaction in UrhoX Lua, this framework integrates HTTP endpoints for ASR and TTS services with local intent parsing to extract user commands and generate text or speech NPC responses. It handles both voice input recognition and speech output.

Can I use local rules for intent parsing without an LLM in my voice-driven NPC framework?

Yes, you can use local rules for intent parsing without an LLM. The framework supports extracting user intent and entities locally, while also offering the option to integrate an LLM for more complex voice command parsing if needed.

Do I need network access and HTTP client capabilities to run voice-driven NPCs?

Yes, network access and HTTP client capabilities are required to run voice-driven NPCs. The framework uses HTTP endpoints to communicate with external ASR and TTS services for processing voice input and generating speech output.

What's the best way to initialize a voice-activated NPC with specific trigger keywords?

The best way to initialize a voice-activated NPC is using the skill to set up a character, such as a 'Merchant', with specific trigger keywords like 'buy', 'sell', 'greet', and 'ask_info' to route voice commands.

Does voice-driven NPC interaction support both text and speech responses for game characters?

Yes, voice-driven NPC interaction supports both text and speech responses. After processing voice input through ASR and intent parsing, the framework can generate outputs using TTS services or display them as text.

When should I not use HTTP endpoints for ASR and TTS in my UrhoX Lua game?

You should not use HTTP endpoints for ASR and TTS if your UrhoX Lua game environment lacks network access or HTTP client capabilities, as this framework explicitly requires external service connectivity to function.