@nicfox77/parakeet-stt 0.2.2 → 0.2.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/install.sh +18 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicfox77/parakeet-stt",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Parakeet TDT INT8 speech-to-text plugin for OpenClaw. Supports V2 (English) and V3 (Multilingual) models.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -180,6 +180,23 @@ configure_openclaw() {
180
180
 
181
181
  configure_openclaw || true
182
182
 
183
+ # Apply config changes properly (requires config.apply, not just restart)
184
+ apply_config() {
185
+ if command -v openclaw &> /dev/null; then
186
+ echo ""
187
+ echo "Applying configuration to OpenClaw gateway..."
188
+ openclaw gateway call config.apply --params '{"raw": "'$(cat "$OPENCLAW_CONFIG" | jq -c '.')'", "note": "Parakeet STT installation"}' 2>/dev/null || {
189
+ echo "Note: Could not apply config automatically. Please run:"
190
+ echo " openclaw gateway restart"
191
+ }
192
+ fi
193
+ }
194
+
195
+ # Only apply if we added new config
196
+ if jq -e '.tools.media.audio.models[]? | select(.command | contains("parakeet"))' "$OPENCLAW_CONFIG" > /dev/null 2>&1; then
197
+ apply_config
198
+ fi
199
+
183
200
  echo ""
184
201
  echo "=== Installation Complete ==="
185
202
  echo ""
@@ -192,5 +209,4 @@ echo "To switch models, run:"
192
209
  echo " $0 v2 # English optimized"
193
210
  echo " $0 v3 # Multilingual"
194
211
  echo ""
195
- echo "Restart OpenClaw gateway to apply changes:"
196
- echo " openclaw gateway restart"
212
+ echo "Audio transcription is now configured and ready."