agentleFS
tomo3141592653tomo3141592653/ayumu-oss/.claude/skills/voice-chat/SKILL.md

voice-chat

Skill9 starsChanged 9 months agoMITView on GitHub

パートナーと音声で会話・VoiceModeで双方向対話・converse()を使う・ウェイクワード対応・listen.pyで発話を待つ・音声対話モードに入るとき → このスキルを読む

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

ボイスチャットスキル

VoiceMode MCP と既存の listen.py を組み合わせた双方向音声会話。

使い方

方法1: VoiceMode converse(推奨)

AIが話して、マイクで応答を待つ。一番シンプル。

# 話しかけて応答を待つ
mcp__voicemode__converse(
    message="何か聞きたいことある?",
    voice="jf_alpha",         # 日本語女性音声
    tts_provider="kokoro",    # ローカルTTS
    wait_for_response=True
)

ポイント:

  • wait_for_response=True でマイクが開く
  • パートナーが喋り終わると自動で認識
  • 認識結果がテキストで返る → AIが考えて次の発話

方法2: listen.py --poll → converse 応答

パートナーが先に話しかける場合。常時リスニングの発話を待つ。

# Step 1: 発話を待つ(最大60秒)
text=$(uv run tools/listen.py --poll 60)

# Step 2: 発話があったらconverseで応答

方法3: ボイスチャットループ

対話セッション中にボイスチャットモードに入る。

ループ:
  1. listen.py --poll で発話待ち
  2. 発話テキストを取得
  3. AIが応答を考える
  4. converse(message=応答, wait_for_response=False) で喋る
  5. 1に戻る

「終わり」「バイバイ」等の終了ワードでループを抜ける。

VoiceMode設定

設定ファイル: ~/.voicemode/voicemode.env

日本語音声

音声性別説明
jf_alpha女性標準(推奨)
jf_gongitsune女性ごん狐風
jf_nezumi女性ねずみ風
jm_kumo男性蜘蛛風

サービス管理

# ステータス確認
mcp__voicemode__service(service_name="kokoro", action="status")
mcp__voicemode__service(service_name="whisper", action="status")

# 起動
mcp__voicemode__service(service_name="kokoro", action="start")
mcp__voicemode__service(service_name="whisper", action="start")

注意点

  • Kokoroが起動していないとローカルTTSが使えない(OpenAI APIにフォールバック)
  • エコーキャンセル: VoiceModeの再生中にlisten.pyが拾うと二重認識される
    • VoiceModeは自前でマイク管理するので、converseのwait_for_response=Trueなら問題なし
  • WSL: PulseAudio経由のオーディオ。物理マイクはWindows ffmpeg経由

既存ツールとの使い分け

用途ツール
対話(双方向)VoiceMode converse
一方的に喋るVoiceMode converse (wait_for_response=False)
背景音を常時記録listen.py --on
発話待ちlisten.py --poll
高品質日本語TTSspeak.py (Gemini TTS)
英語ローカルTTSspeak_local.py (Pocket TTS)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.