Glassly Miniapp SDK betaThe SDK is in beta, so its APIs may change before general availability.Developing on Mentra Live? We recommend using the
Glassly Bluetooth SDK.The developer tools are available in the Glassly App under Settings →
Miniapp developer settings. To show that row, tap the version number at the
bottom of Settings 10 times.Share feedback with an in-app bug report, on
Discord, or by email at
[email protected].
session.wakeWord tells your miniapp when the wearer says “Hey Glassly”. A
small keyword model on the phone listens to the glasses microphone. No audio
leaves the phone and no speech-to-text runs, so it is the cheap way to wait
until the wearer addresses you. Once it fires, subscribe to
session.transcription
to hear what they say next.
It needs the MICROPHONE permission in your
manifest. Without it the phone drops
the subscription, no events arrive, and onPermissionError fires with PERMISSION_NOT_DECLARED.
Listen for the wake word
on returns a function that unsubscribes. The detector runs while at least one
miniapp is subscribed and stops with the last one. session.wakeWord.stop()
removes every listener your miniapp added.
Each WakeWordData has:
Phones without the detector
session.wakeWord.isAvailable is false on a Glassly App that predates the
wake word and on a host that ships without the model. on then never fires,
so match the phrase in the transcript instead:
What to expect
- One phrase. The detector hears “Hey Glassly” only. Your miniapp cannot register its own phrase.
- At most one event every 2 seconds.
- The next words are kept for you. Speech-to-text takes a moment to start after you subscribe. For 4 seconds after a detection the phone keeps the audio it hears and sends it ahead of live audio once your transcription subscription is active, so a question spoken straight after the phrase is not cut off. The phrase itself is not in the transcript unless you were already transcribing. This covers cloud transcription; on-device and bring-your-own Soniox transcription start from the moment you subscribe.
- False triggers happen. The model is tuned for about one false detection every two hours of speech. Let an empty or unrelated transcript end the interaction quietly.
- Microphone gates still apply. When the wearer’s voice activity detection or loudness Barrier drops quiet audio, the detector never hears it.

