Transcribe an audio file via Speechmatics' async batch API. Submits a job, polls until complete, then writes the transcript.
bash
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a
Defaults:
enenhanced (better accuracy; use standard for faster/cheaper)<input>.txt in the same directorybash
{baseDir}/scripts/transcribe.sh /path/to/audio.ogg --language da
{baseDir}/scripts/transcribe.sh /path/to/meeting.wav --operating-point standard
{baseDir}/scripts/transcribe.sh /path/to/call.mp3 --diarization speaker
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --format json --out /tmp/transcript.json
{baseDir}/scripts/transcribe.sh /path/to/audio.m4a --format srt --out /tmp/subs.srt
{baseDir}/scripts/transcribe.sh /path/to/long.wav --timeout 1800
Formats: txt (default, plain text), json (Speechmatics json-v2 with word timings), srt (subtitles).
The script reads the API key from (in order):
--api-key <key> flagSPEECHMATICS_API_KEY environment variable (set by openclaw from the entry below)skills.entries.speechmatics.apiKey in $OPENCLAW_CONFIG_PATH (default ~/.openclaw/openclaw.json)Configure via openclaw.json:
json5
{
skills: {
entries: {
speechmatics: {
apiKey: "SPEECHMATICS_KEY_HERE",
},
},
},
}
Override the API base (e.g. EU region or a proxy) with --base-url or SPEECHMATICS_BASE_URL. Default: https://asr.api.speechmatics.com/v2.
enhanced; standard is faster.