360 Secure SkillHub
360 安全技能中心

Voice Agent

这是一个纯客户端 Skill,通过 python3 脚本调用运行在 http://localhost:8000 的本地 Voice Agent API:用 transcribe 命令(本地 Whisper)把音频文件转成文本,用 synthesize 命令(AWS Polly)把文本合成为音频文件,并提供 health 健康检查;不负责启动或管理后端服务。

ricardotrevisan
ricardotrevisan
热度 91.61
最近更新 2026-05-17 11:08:33
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add voice-agent
Metadata
name
voice-agent
display-name
AI Voice Agent Backend
version
1.1.0
description
Local Voice Input/Output for Agents using the AI Voice Agent API.
author
trevisanricardo
homepage
https://github.com/ricardotrevisan/ai-conversational-skill
user-invocable
true
disable-model-invocation
false

Voice Agent

This skill allows you to speak and listen to the user using a local Voice Agent API. It is client-only and does not start containers or services. It uses local Whisper for Speech-to-Text transcription and AWS Polly for Text-to-Speech generation.

Prerequisite

Requires a running backend API at http://localhost:8000. Backend setup instructions are in this repository:

  • README.md
  • walkthrough.md
  • DOCKER_README.md

Behavior Guidelines

  • Audio First: When the user communicates via audio (files), your PRIMARY mode of response is Audio File.
  • Silent Delivery: When sending an audio response, DO NOT send a text explanation like "I sent an audio". Just send the audio file.
  • Workflow:
    1. User sends audio.
    2. Use transcribe to read it.
    3. You think of a response.
    4. Use synthesize to generate the audio file.
    5. You send the file.
    6. STOP. Do not add text commentary.
  • Failure Handling: If health fails or connection errors occur, do not attempt service management from this skill. Ask the user to start or fix the backend using the repository docs.

Tools

Transcribe File

To transcribe an audio file with local Whisper STT, run the client script with the transcribe command.

python3 {baseDir}/scripts/client.py transcribe "/path/to/audio/file.ogg"

Synthesize to File

To generate audio from text with AWS Polly TTS and save it to a file, run the client script with the synthesize command.

python3 {baseDir}/scripts/client.py synthesize "Text to speak" --output "/path/to/output.mp3"

Health Check

To check if the voice agent API is running and healthy:

python3 {baseDir}/scripts/client.py health