| name | speak-debug-bundle |
| description | Collect diagnostic information for Speak API issues: auth verification, audio format validation, session inspection, and network testing.
Use when implementing debug bundle features,
or troubleshooting Speak language learning integration issues.
Trigger with phrases like "speak debug bundle", "speak debug bundle".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(curl:*), Grep |
| version | 1.14.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","speak","debugging"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Speak Debug Bundle
Overview
Collect diagnostic information for Speak API issues: auth verification, audio format validation, session inspection, and network testing.
Prerequisites
- Completed
speak-install-auth setup
- Valid API credentials configured
- ffmpeg installed for audio processing
Instructions
Current State
!node --version 2>/dev/null || echo 'N/A'
!ffmpeg -version 2>/dev/null | head -1 || echo 'ffmpeg not installed'
Step 1: Auth Diagnostic
#!/bin/bash
set -euo pipefail
echo "=== Speak Debug Bundle ==="
echo "Time: $(date -u)"
echo -e "\n--- Auth Check ---"
STATUS=$(curl -s -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer $SPEAK_API_KEY" \
https://api.speak.com/v1/languages)
echo "API Key Status: HTTP $STATUS"
[ "$STATUS" = "200" ] && echo " Auth: OK" || echo " Auth: FAILED"
echo -e "\n--- Environment ---"
echo "SPEAK_API_KEY set: $([ -n \"${SPEAK_API_KEY:-}\" ] && echo 'yes' || echo 'no')"
echo "SPEAK_APP_ID set: $([ -n \"${SPEAK_APP_ID:-}\" ] && echo 'yes' || echo 'no')"
Step 2: Audio Format Validator
import { execSync } from 'child_process';
function validateAudio(): { : ; : [] } {
: [] = [];
{
info = .((
,
{ : }
));
stream = info.[];
(stream. !== ) issues.();
((stream.) !== ) issues.();
(stream. !== ) issues.();
size = ((, { : }));
(size > * * ) issues.();
(size < ) issues.();
} (e) {
issues.();
}
{ : issues. === , issues };
}