@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.
- package/package.json +1 -1
- package/scripts/install.sh +18 -2
package/package.json
CHANGED
package/scripts/install.sh
CHANGED
|
@@ -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 "
|
|
196
|
-
echo " openclaw gateway restart"
|
|
212
|
+
echo "Audio transcription is now configured and ready."
|