Skip to content

Add in audio glasses experience to sample - #37

Open
trambui09 wants to merge 2 commits into
android:mainfrom
trambui09:tb/add-projected-activity-ads
Open

trambui09 wants to merge 2 commits into
android:mainfrom
trambui09:tb/add-projected-activity-ads

Conversation

@trambui09

Copy link
Copy Markdown

To support audio glasses and show how an app can span mobile, immersive, and augmented, added in:

  • Projected Activity
  • Check for audio glasses connection to launch the projected activity.
  • How to request runtime permissions for the glasses hardware (microphone)
  • Use TextToSpeech and SpeechRecognizer to capture audio commands from users

How to test

  1. Set up the audio glasses emulator
  2. Open the app in non-spatial mode; verify the "Launch on Glasses" FAB appears when the glasses are connected.
  3. Tap "Launch on Glasses" to launch ProjectedActivity on the glasses.
  4. Listen for the initial TTS welcome message on the glasses.
  5. Tap the touchpad/screen to start listening, speak a command (e.g., "scale up Bugdroid").
  6. Verify TTS confirms command capture and that "Last command: " appears on the main app screen in BlockOfContentOne.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant