# Android Local Stt Tts

> Patterns for local Speech-to-Text and Text-to-Speech without cloud latency.

- Skill: `prasad-vennam/android-local-stt-tts` (Agent Skill)
- Install (CLI): `npx skillmds@latest add prasad-vennam/android-local-stt-tts`
- Raw SKILL.md: https://api.skillmd.com/api/skills/prasad-vennam/android-local-stt-tts/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: prasad-vennam (https://skillmd.com/u/prasad-vennam)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/prasad-vennam/android-local-stt-tts

---


# Android On-Device Speech (TTS & STT) 🎤

Implementing accessible voice interfaces.

## ⚡ When to Use
- When handling local voice commands or reading text aloud.

## 🏗️ Core Rules / Pillars

### 1. Standard TTS initialization
- **Pattern**: Initialize `TextToSpeech` and pass `OnInitListener`. Always wait until initialization is successful before calling `.speak()`.

### 2. SpeechRecognizer Intent
- **Pattern**: Use `SpeechRecognizer.createSpeechRecognizer(context)` and `RecognizerIntent.ACTION_RECOGNIZE_SPEECH` for local dictation.

## 🚧 Critical Anti-Hallucination Guards
- **Trap**: Ensure `RECORD_AUDIO` permission is requested *before* initializing the SpeechRecognizer.

