pi-meta-oauth 0.2.3 → 0.4.0

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 CHANGED
@@ -11,7 +11,7 @@ Meta Model API OAuth and Muse-style voice input for [pi](https://pi.dev).
11
11
  - Device authorization against `https://auth.meta.com`
12
12
  - Model API-key minting through `POST https://api.meta.ai/muse-code/key`
13
13
  - Dynamic Muse model catalog from `GET https://api.meta.ai/v1/models`
14
- - Toggle-based Meta voice dictation on macOS with a live green input meter
14
+ - Toggle-based Meta voice dictation on macOS and Windows with a live green input meter
15
15
 
16
16
  ## Install
17
17
 
@@ -41,7 +41,7 @@ The access key is re-minted daily.
41
41
 
42
42
  ## Voice input
43
43
 
44
- Voice mode currently requires macOS. It uses the same Meta credential managed by this provider; a separate Muse login is not required.
44
+ Voice mode runs on **macOS and Windows** (Linux is not yet supported). It uses the same Meta credential managed by this provider; a separate Muse login is not required.
45
45
 
46
46
  1. Press **Alt+V** once to start recording.
47
47
  2. Speak while the green microphone meter is visible in Pi's status bar.
@@ -54,7 +54,11 @@ Commands:
54
54
  - `/voice-on` — enable the Alt+V shortcut
55
55
  - `/voice-off` — disable voice input
56
56
 
57
- The first recording may trigger the macOS microphone permission prompt. Audio is captured only between the two Alt+V presses and streamed as 16 kHz mono PCM to Muse Code's internal Meta ASR endpoint. No local speech-recognition model is downloaded. The endpoint is undocumented and may change in a future Muse release.
57
+ Audio is captured only between the two Alt+V presses and streamed as 16 kHz mono PCM to Muse Code's internal Meta ASR endpoint. No local speech-recognition model is downloaded. The endpoint is undocumented and may change in a future Muse release.
58
+
59
+ **macOS:** uses `AVFoundation` via a Swift helper compiled with `xcrun swiftc` (first recording triggers the system microphone permission prompt).
60
+
61
+ **Windows:** uses `winmm.dll` `waveIn*` via a C# helper. On first run pi tries to compile `extensions/voice/windows-audio.cs` with `csc.exe` (in-box .NET Framework) to `~/.pi/agent/bin/pi-meta-oauth-voice-v1.exe` for best performance. If no compiler is found it falls back to `extensions/voice/windows-audio.ps1` executed with `powershell.exe -ExecutionPolicy Bypass` (PowerShell 5.1 inbox, or `pwsh` 7 if present) which compiles the same capture code at runtime via `Add-Type`. No extra install is required. If recording fails, check **Settings → Privacy & security → Microphone** that access is allowed for desktop apps.
58
62
 
59
63
  Optional overrides:
60
64