Skip to content
Mobile
Skill

/speech

Recognize speech on connected glasses and consume partial and final transcriptions on Android

From plugin
meta-wearables-dat-android
41018 skills

Claude Code

$ npx -y skills add meta/meta-wearables-dat-android --skill speech --agent claude-code

SKILL.md

speech.SKILL.md
name: speech
description: Recognize speech on connected glasses and consume partial and final transcriptions on Android

Speech (Android)

Speech is an experimental on-device recognition capability. Enable it for the app in Wearables Developer Center and obtain `Permission.MICROPHONE` before starting it.

Permission flow

Check permission before attaching Speech. Launch `Wearables.RequestPermissionContract` only from a user-initiated action; it opens the Meta AI app. Android `RECORD_AUDIO` is not required for real-glasses recognition. It is needed only when a MockDevice test deliberately uses live phone recognition.

Attach, collect, and start

Call `addSpeech` after `DeviceSessionState.STARTED`. Launch collectors before `start()`.

session.addSpeech().fold(
    onSuccess = { speech ->
        transcriptionJob = lifecycleScope.launch {
            speech.transcriptions.collect { result ->
                result ?: return@collect
                if (result.isFinal) commitTranscript(result.text)
                else showPartialTranscript(result.text)
            }
        }
        speech.start().onFailure { error, _ -> showError(error.description) }
    },
    onFailure = { error, _ -> showError(error.description) },
)

Retain the transcription job while Speech is attached. Collect `state`, `locale`, and `errors` when the app needs lifecycle, locale, or failure updates.

`confidence` is between 0 and 1, or `-1` when unavailable. `errorDetails` is diagnostic text and should not be displayed directly to end users.

Stop and remove

`speech.stop()` is reusable; removal is terminal. Cancel all collection jobs before `session.removeSpeech()`.

Test with MockDeviceKit

After Speech is listening, inject results with calls such as `glasses.services.speech.simulateTranscription("turn left", isFinal = true, confidence = 0.9f)`. The service can also inject locale changes, partial text, completion, and terminal errors. The live-device source and host `RECORD_AUDIO` permission are only for manual MockDevice testing.

Availability

Speech is experimental. Apps can use it for development and beta testing, but cannot publish it to production release channels yet.

Read more
@facebook
Ships withmeta-wearables-dat-android

The Meta Wearables Device Access Toolkit enables developers to utilize Meta's AI glasses to build hands-free wearable experiences into their mobile applications.

Stars on GitHub

Momentum

stars in total
410
Star history of facebook/meta-wearables-dat-android on GitHub, a chart by star-history.com

More skills from other plugins.

deep-code-review

deep-code-review

In-depth design-focused code review - understands codebase context before evaluating PR changes, posts structured feedback to…

expo2w53k
@expo@expoInstall Skill
modlens

modlens

Plug-in vision for text-only models. Hard rule: when a file path or URL with an image extension (.png, .jpg, .jpeg, .webp, .gif,…

modlens4w4.6k
@liustack@liustackInstall Skill
appllama-app-design-skill

appllama-app-design-sk…

Build native-feeling, benchmark-quality mobile app screens (Expo / React Native). Use when designing or implementing any mobile…

appllama2mo3.9k
@appllama@appllamaInstall Skill

Questions about speech.

Which coding agents can use speech?
speech installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.