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-code

Installs 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

More from answerzhao/agent-skills

All 3
1fvadicamo avatarcreating-skillsfvadicamo/dev-agent-skillsGuide for creating Claude Code skills following Anthropic's official best practices. Use when user wants to create a new skill, build a skill, write SKILL.md, u208skills.sh installs
2josiahsiegel avatartailwindcss-debuggingjosiahsiegel/claude-plugin-marketplaceTailwind CSS debugging and troubleshooting common issues. PROACTIVELY activate for: (1) classes not applying / no styles in browser, (2) JIT mode not picking up207skills.sh installs
3prompt-security avatarclawtributorprompt-security/clawsecHarness-neutral community incident reporting for AI agents. Contribute to collective security by reporting threats.207skills.sh installs
4samhvw8 avatarui-ux-designsamhvw8/dot-claudeUI/UX design reference database. 50+ styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Ta207skills.sh installs
5bobmatnyc avatarmcpbobmatnyc/claude-mpm-skillsMCP (Model Context Protocol) - Build AI-native servers with tools, resources, and prompts. TypeScript/Python SDKs for Claude Desktop integration.206skills.sh installs
6cjhfff avatarcognitive-memorycjhfff/cjh-skillsIntelligent multi-store memory system with human-like encoding, consolidation, decay, and recall. Use when setting up agent memory, configuring remember/forget 206skills.sh installs