Smart Pet with MCP

Smart Pet with MCP

site icon
2025.04.16 38
Vue智能宠物伴侣语音识别自然语言处理娱乐功能
Smart Pet with MCP 是一个基于 MCP(Model Context Protocol)协议的智能宠物伴侣应用,通过语音识别和自然语言处理技术,为宠物主人提供实时互动和服务。该应用是一个 MCP-Client 应用,可以自主无限搭配 MCP-Server 实现需求。
View on GitHub

Overview

基本能力

产品定位

Smart Pet with MCP 是一个智能宠物伴侣应用,旨在通过语音识别和自然语言处理技术,为宠物主人提供实时互动和服务。

核心功能

  • 智能交互:通过语音识别和自然语言处理实现智能对话
  • 精美界面:采用 Vue3 + Electron 构建的现代化界面
  • 实时响应:基于 MCP 协议实现快速响应
  • 宠物陪伴:提供虚拟宠物互动体验
  • 多平台支持:支持 Windows、macOS 和 Linux 系统

适用场景

  • 宠物主人希望与虚拟宠物进行互动
  • 需要语音识别和自然语言处理技术的应用
  • 多平台支持的智能伴侣应用

工具列表

  • FunASR Engine:用于语音识别
  • AI Models:支持 Anthropic、OpenAI 等大模型
  • File System:用于数据存储和管理

常见问题解答

  • 如何配置 FunASR 服务?
  • 如何启动 Docker 容器?
  • 如何构建应用?

使用教程

使用依赖

  • Node.js >= 16
  • pnpm >= 7
  • Docker (用于运行 FunASR)

安装教程

  1. 克隆项目
git clone https://github.com/yourusername/smart-pet-with-mcp.git
cd smart-pet-with-mcp
  1. 安装依赖
pnpm install
  1. 启动开发环境
pnpm dev

构建应用

# Windows
pnpm build:win

# macOS
pnpm build:mac

# Linux
pnpm build:linux

调试方式

  1. 启动 FunASR 服务
cd FunASR/runtime
nohup bash run_server_2pass.sh \
  --model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-onnx \
  --online-model-dir damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-online-onnx \
  --vad-dir damo/speech_fsmn_vad_zh-cn-16k-common-onnx \
  --punc-dir damo/punc_ct-transformer_zh-cn-common-vad_realtime-vocab272727-onnx \
  --lm-dir damo/speech_ngram_lm_zh-cn-ai-wesp-fst \
  --itn-dir thuduj12/fst_itn_zh \
  --certfile 0 \
  --hotword ../../hotwords.txt > log.txt 2>&1 &

许可证

该项目遵循 Other 开源许可条款,请参阅 Other 了解完整条款。