mirror of
https://github.com/yuga-hashimoto/openclaw-assistant.git
synced 2026-08-14 08:15:42 +00:00
0bf828dae810d9af2c025fcec8f8ca641e9b21e1
- Read PICOVOICE_ACCESS_KEY from local.properties at build time - Inject key into BuildConfig for automatic loading - Add gradlew and gradle-wrapper.jar for CLI builds - Add .gitignore to exclude sensitive files Note: Add your Picovoice Access Key to local.properties: PICOVOICE_ACCESS_KEY=your_key_here
OpenClaw Assistant
OpenClaw専用のAndroid音声アシスタントアプリ。
機能
- 🎤 ウェイクワード「OpenClaw」 - 音声だけで起動
- 🏠 ホームボタン長押し - システムアシスタントとして動作
- 🔄 連続会話 - セッションを維持して自然な対話
- 🔒 プライバシー重視 - 設定は暗号化保存
セットアップ
1. アプリのインストール
Android Studioでビルドするか、Releasesからapkをダウンロード。
2. 設定
- アプリを開く
- 右上の⚙️から設定画面へ
- 以下を入力:
- Webhook URL (必須): OpenClawのエンドポイント
- 認証トークン (任意): Bearer認証用
- Picovoice Access Key: https://console.picovoice.ai で無料取得
3. ウェイクワード「OpenClaw」の設定
- Picovoice Console にログイン
- Porcupine → Custom Keywords
- 「OpenClaw」と入力してキーワード作成
- Android用の
.ppnファイルをダウンロード app/src/main/assets/openclaw_android.ppnとして配置- アプリを再ビルド
4. システムアシスタントとして設定(任意)
- 端末の設定 → アプリ → デフォルトアプリ → アシスタントアプリ
- 「OpenClaw Assistant」を選択
- ホームボタン長押しで起動可能に
OpenClaw側の設定
リクエスト形式
POST /your-webhook-endpoint
Content-Type: application/json
Authorization: Bearer <token>
{
"message": "ユーザーの発話テキスト",
"session_id": "uuid-xxx-xxx",
"user_id": "optional"
}
レスポンス形式
以下のいずれかの形式でOK:
{"response": "応答テキスト"}
{"text": "応答テキスト"}
{"message": "応答テキスト"}
技術スタック
- Kotlin + Jetpack Compose
- VoiceInteractionService
- Picovoice Porcupine (ホットワード検知)
- Android SpeechRecognizer
- TextToSpeech
- OkHttp + Gson
- EncryptedSharedPreferences
必要な権限
RECORD_AUDIO- 音声認識INTERNET- API通信FOREGROUND_SERVICE- 常時聴取POST_NOTIFICATIONS- 通知表示
ライセンス
MIT License
Languages
F*
96.2%
Kotlin
3.6%
Python
0.2%