Converts speech to text using the z-ai-web-dev-sdk with support for base64 encoded audio files. You can either use the CLI for quick transcriptions (z-ai asr --file audio.wav) or integrate the SDK into backend code for production apps. Handles common formats like WAV and MP3, includes caching examples, and ships with batch processing utilities. The documentation is thorough with real code samples for everything from simple file transcription to building a full ASR service class. Backend only, no client-side usage. If you need to transcribe audio files or build voice input features, this covers the basics and gives you working patterns to extend.
- skills.sh installs
- 208
- GitHub stars
- 26
- last updated
- Aug 21, 2026
Install
$ npx -y skills add answerzhao/agent-skills --skill ASR --agent claude-codeInstalls into .claude/skills of the current project.
Files
ASR (Speech to Text) Skill
This skill guides the implementation of speech-to-text (ASR) functionality using the z-ai-web-dev-sdk package, enabling accurate transcription of spoken audio into text.
Skills Path
Skill Location: {project_path}/skills/ASR
this skill is located at above path in your project.
Reference Scripts: Example test scripts are available in the {Skill Location}/scripts/ directory for quick testing and reference. See {Skill Location}/scripts/asr.ts for a working example.
Overview
Speech-to-Text (ASR - Automatic Speech Recognition) allows you to build applications that convert spoken language in audio files into written text, enabling voice-controlled interfaces, transcription services, and audio content analysis.
IMPORTANT: z-ai-web-dev-sdk MUST be used in backend code only. Never use it in client-side code.
Prerequisites
The z-ai-web-dev-sdk package is already installed. Import it as shown in the examples below.
CLI Usage (For Simple Tasks)
For simple audio transcription tasks, you can use the z-ai CLI instead of writing code. This is ideal for quick transcriptions, testing audio files, or batch processing.
Sponsors
Details
- Repository
- github.com/answerzhao/agent-skills
- Categories
- DevOps & CI/CD, AI & Agent Building, Generative Media
- First seen
- Jun 3, 2026
