Voice-to-voice AI assistant using Gemini Live API. Speak to the AI and get spoken responses. Use when you want to have natural voice conversations with an AI assistant powered by Google's Gemini models.
由 Google Gemini Live API 驱动的语音到语音 AI 助手。与 AI 对话,它会以自然语音回应。
bash
cd ~/.openclaw/agents/kashif/skills/gemini-assistant && python3 handler.py 你的问题或消息
bash
cd ~/.openclaw/agents/kashif/skills/gemini-assistant && python3 handler.py --audio /path/to/audio.ogg 可选上下文
处理器返回 JSON 响应:
json
{
message: [[audioasvoice]]\nMEDIA:/tmp/geminivoicexxx.ogg,
text: 来自 Gemini 的文本响应
}
设置你的 Gemini API 密钥:
bash
export GEMINIAPIKEY=your-api-key-here
或者在技能目录中创建 .env 文件:
GEMINIAPIKEY=your-api-key-here
默认模型为 gemini-2.5-flash-native-audio-preview-12-2025,支持音频。
要使用其他模型,编辑 handler.py:
python
MODEL = gemini-2.0-flash-exp # 仅文本模式
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 gemini-voice-assistant-1776420045 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 gemini-voice-assistant-1776420045 技能
skillhub install gemini-voice-assistant-1776420045
文件大小: 4.68 KB | 发布时间: 2026-4-17 19:24