speech
Installation
SKILL.md
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().