pi-voice 0.1.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/out/cli/cli.js +18311 -450
- package/out/main/index.js +142 -88
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# pi-voice
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Headless voice interface for the [Pi Coding Agent](https://github.com/badlogic/pi-mono). Hold a key, speak, and pi executes your instructions with voice feedback.
|
|
4
|
+
|
|
5
|
+
https://github.com/user-attachments/assets/06a0c56f-76bf-48cb-9de3-f9ca48a7245d
|
|
4
6
|
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
@@ -50,16 +52,26 @@ You can configure pi-voice in `.pi/pi-voice.json`:
|
|
|
50
52
|
| Key | Description |
|
|
51
53
|
| --- | --- |
|
|
52
54
|
| `key` | Push-to-talk shortcut. Combine modifiers (`ctrl`, `shift`, `alt`/`opt`, `meta`/`cmd`) and a main key with `+`. Examples: `"ctrl+t"`, `"alt+space"`, `"ctrl+shift+r"`. Default: `"meta+shift+i"`. |
|
|
53
|
-
| `provider` | Speech provider for STT & TTS. `"local"`, `"gemini"` (Vertex AI), or `"openai"`. Default: `"local"`. |
|
|
55
|
+
| `provider` | Speech provider for STT & TTS. `"local"`, `"gemini"` (Vertex AI or Gemini API), or `"openai"`. Default: `"local"`. |
|
|
54
56
|
|
|
55
57
|
### Environment variables
|
|
56
58
|
|
|
57
59
|
| Provider | Required variables |
|
|
58
60
|
| --- | --- |
|
|
59
61
|
| `local` | None (model is auto-downloaded on first launch). Optional: `WHISPER_MODEL_PATH` (custom model path), `WHISPER_MODEL` (model name, default `medium-q5_0`), `SAY_VOICE` (macOS `say` voice name, e.g. `"Kyoko"`). |
|
|
60
|
-
| `gemini` | `GOOGLE_CLOUD_PROJECT`, `GOOGLE_CLOUD_LOCATION` (optional, default `us-central1`) |
|
|
62
|
+
| `gemini` | **Vertex AI:** `GOOGLE_CLOUD_PROJECT`, `GOOGLE_CLOUD_LOCATION` (optional, default `us-central1`). **Gemini API:** `GEMINI_API_KEY` or `GOOGLE_API_KEY`. If `GOOGLE_CLOUD_PROJECT` is set, Vertex AI is used; set `GOOGLE_GENAI_USE_VERTEXAI=false` to force API key mode. |
|
|
61
63
|
| `openai` | `OPENAI_API_KEY` |
|
|
62
64
|
|
|
65
|
+
#### Logging
|
|
66
|
+
|
|
67
|
+
The daemon writes structured JSON logs to both the console and a log file. The default log file path is `$XDG_CONFIG_HOME/pi-voice/daemon.log` (falls back to `~/.config/pi-voice/daemon.log`).
|
|
68
|
+
|
|
69
|
+
To override the log file path:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
export PI_VOICE_LOG_PATH=/path/to/custom.log
|
|
73
|
+
```
|
|
74
|
+
|
|
63
75
|
#### Whisper model (local provider)
|
|
64
76
|
|
|
65
77
|
The `local` provider uses [Whisper](https://github.com/openai/whisper) for STT and the macOS `say` command for TTS. On first launch, a ggml-format Whisper model (`medium-q5_0`, ~514 MB) is automatically downloaded to `~/.pi-agent/whisper/` and cached for subsequent runs.
|