@codexstar/pi-listen 1.0.4 → 1.0.6
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 +11 -3
- package/package.json +1 -1
- package/scripts/setup-macos.sh +18 -3
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# pi-listen
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="assets/banner.png" alt="pi-listen — Voice input for the Pi coding agent" width="100%" />
|
|
5
|
+
</p>
|
|
6
|
+
|
|
3
7
|
**Voice input and side-channel conversations for [Pi](https://github.com/mariozechner/pi-coding-agent).**
|
|
4
8
|
|
|
5
9
|
[](https://www.npmjs.com/package/@codexstar/pi-listen)
|
|
@@ -33,11 +37,15 @@ pi-listen is a Pi extension that adds hands-free voice input and side-channel vo
|
|
|
33
37
|
pi install npm:@codexstar/pi-listen
|
|
34
38
|
```
|
|
35
39
|
|
|
36
|
-
|
|
40
|
+
### First-Time Setup
|
|
41
|
+
|
|
42
|
+
After installing, run the bootstrap script to install all system dependencies (Python, SoX, faster-whisper):
|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
```bash
|
|
45
|
+
curl -fsSL https://raw.githubusercontent.com/codexstar69/pi-listen/main/scripts/setup-macos.sh | bash
|
|
46
|
+
```
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
Once dependencies are installed, open pi and the onboarding wizard will walk you through backend selection:
|
|
41
49
|
|
|
42
50
|
```
|
|
43
51
|
? Set up pi-voice now?
|
package/package.json
CHANGED
package/scripts/setup-macos.sh
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
set -
|
|
2
|
+
set -eo pipefail
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
# When piped from curl, BASH_SOURCE is empty — detect and handle gracefully
|
|
5
|
+
if [[ -n "${BASH_SOURCE[0]:-}" && "${BASH_SOURCE[0]}" != "bash" ]]; then
|
|
6
|
+
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
|
7
|
+
PACKAGE_ROOT="$(cd -- "$SCRIPT_DIR/.." && pwd)"
|
|
8
|
+
else
|
|
9
|
+
SCRIPT_DIR=""
|
|
10
|
+
PACKAGE_ROOT=""
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
# Enable nounset after handling BASH_SOURCE
|
|
14
|
+
set -u
|
|
6
15
|
|
|
7
16
|
MODE="local"
|
|
8
17
|
BACKEND="faster-whisper"
|
|
@@ -171,6 +180,12 @@ PY
|
|
|
171
180
|
}
|
|
172
181
|
|
|
173
182
|
smoke_test() {
|
|
183
|
+
if [[ -z "$PACKAGE_ROOT" ]]; then
|
|
184
|
+
log "Skipping daemon smoke test (running via curl pipe — daemon.py not available locally)"
|
|
185
|
+
log "Run '/voice test' inside pi to verify the full pipeline"
|
|
186
|
+
return 0
|
|
187
|
+
fi
|
|
188
|
+
|
|
174
189
|
local backend model socket log_file err_file
|
|
175
190
|
backend="$(selected_backend)"
|
|
176
191
|
model="$(selected_model)"
|