Skip to main content
skill CX Codex

speech-recognition — Claude Code skill: iOS speech to text

A skill that walks your agent through speech-to-text on Apple's Speech framework, from live microphone capture to recognizing recorded files.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add dpearson2699/swift-ios-skills --skill speech-recognition -a claude-code
Open on GitHub

What speech-recognition does

This skill covers speech recognition in iOS apps: microphone capture with AVAudioEngine, recognition of pre-recorded audio files, permission handling, and result processing. Your agent gets working patterns instead of guessing at the API.

Two paths are documented. On iOS 26+ you use SpeechAnalyzer with SpeechTranscriber and DictationTranscriber — locale availability checks, asset installation through AssetInventory, and async result streams. For iOS 10+ targets there is SFSpeechRecognizer with callbacks. A separate section explains when on-device recognition beats the server-backed route, plus a checklist of common mistakes.

You need NSSpeechRecognitionUsageDescription and NSMicrophoneUsageDescription in Info.plist before anything runs — without those keys the system blocks both speech and microphone access. Text analysis after transcription is out of scope: language identification, sentiment, embeddings and translation go to other skills, as does audio playback UI. If your project already configures AVAudioSession itself, expect to adapt the templates, because the sample category setup will overwrite yours.

What it helps with

  • build live microphone transcription on AVAudioEngine
  • recognize an audio file recorded earlier
  • request speech and microphone permissions with the right Info.plist keys
  • decide between on-device and server recognition for a given locale
  • migrate from SFSpeechRecognizer to SpeechAnalyzer on iOS 26+

Example prompts for the agent

  • Help me set up live microphone transcription with AVAudioEngine and SFSpeechRecognizer
  • How do I request speech recognition and microphone permissions on iOS?
  • Move this transcription code to SpeechAnalyzer and SpeechTranscriber for iOS 26+

How to install speech-recognition

1Skills CLI (Vercel)

npx skills add dpearson2699/swift-ios-skills --skill speech-recognition -a claude-code

2Manually: put the files in place

~/.claude/skills/speech-recognition/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/speech-recognition/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about speech-recognition

How do I install speech-recognition in Claude?

Run npx skills add dpearson2699/swift-ios-skills --skill speech-recognition -a claude-code. The skill lands in ~/.claude/skills/speech-recognition/SKILL.md.

What does speech-recognition do?

It gives your agent patterns for iOS speech recognition: live microphone input, recorded files, authorization, and the choice between SpeechAnalyzer and SFSpeechRecognizer.

Which iOS versions does the skill cover?

SpeechAnalyzer and SpeechTranscriber target iOS 26+, while SFSpeechRecognizer covers iOS 10+. Older deployment targets keep the second option.

Similar skills

Everything for Mobile →

From the same set86

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor