ASR

Transcribe audio files into text using the z-ai-web-dev-sdk speech recognition API.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/tmtgroupbot/lptracker-deploy --skill asr-tmtgroupbot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ASR
Source: https://github.com/tmtgroupbot/lptracker-deploy/tree/main/skills/ASR
Command: npx skills add https://github.com/tmtgroupbot/lptracker-deploy --skill asr-tmtgroupbot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires z-ai-web-dev-sdk, and includes scripts (resource) components.

What problem does it solve? Converting spoken audio into written text manually is slow and error-prone. This Skill implements automatic speech recognition so you can transcribe audio files, build voice input features, and process recordings programmatically. ## Core Features & Use Cases - Audio Transcription: Convert WAV, MP3, M4A, FLAC, and OGG files into text by sending base64-encoded audio to the z-ai-web-dev-sdk ASR endpoint. - CLI and SDK Modes: Use the z-ai CLI for quick one-off transcriptions or the JavaScript SDK for backend application integration. - Batch Processing & Caching: Transcribe entire directories of recordings, cache results by file hash, and attach metadata like word counts and processing time. - Use Case: Build an Express.js endpoint that accepts uploaded meeting recordings and returns searchable text transcriptions for documentation. ## Quick Start Transcribe the audio file 'meeting.wav' into text using the ASR skill and show me the result.

Frequently Asked Questions about ASR

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I transcribe an audio file to text in JavaScript?

Read the audio file with fs, convert it to base64, and pass it to zai.audio.asr.create from the z-ai-web-dev-sdk. The response text field contains the transcription. For quick tasks, run z-ai asr --file ./audio.wav from the CLI instead.

What audio formats does speech-to-text transcription support?

The ASR service supports WAV, MP3, M4A, FLAC, and OGG formats. For best accuracy, use a sample rate of 16kHz or higher, minimize background noise, and keep individual files under 100MB.

Can I use z-ai-web-dev-sdk in client-side browser code?

No, the z-ai-web-dev-sdk must be used in backend code only and never imported into client-side code. Expose transcription through a server endpoint such as an Express.js route that accepts uploaded audio files.

Why is my audio transcription empty or inaccurate?

Empty or incorrect transcriptions usually result from poor audio quality, unsupported formats, or unclear speech. Verify the file format is supported, check that the audio contains clear speech with minimal background noise, and confirm the base64 encoding is correct.

How do I transcribe multiple audio files at once?

Loop through the file paths, convert each to base64, and call zai.audio.asr.create for each one, collecting per-file success or error results. You can also transcribe an entire directory and write the combined results to a JSON file.